Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.669/1.669, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 71.31 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2591, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003036/0.2622, allocations: 1.666 MB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008806/0.2631, allocations: 496.7 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.2632, allocations: 0 / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.627e-05/0.2633, allocations: 7.922 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.403e-05/0.2634, allocations: 11.81 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.2636, allocations: 27.95 kB / 0.7856 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.2637, allocations: 91.66 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.2639, allocations: 24.27 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.264, allocations: 35.92 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.2641, allocations: 39.77 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.2641, allocations: 8 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.004e-05/0.2641, allocations: 8 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.2642, allocations: 15.98 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.948e-05/0.2642, allocations: 35.8 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.2644, allocations: 83.69 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2644, allocations: 0 / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.427e-06/0.2644, allocations: 0 / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.2644, allocations: 3.938 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000575/0.265, allocations: 387.1 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2651, allocations: 8.031 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.291e-05/0.2651, allocations: 46.73 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.845e-05/0.2651, allocations: 8.844 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.2653, allocations: 176.2 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.2653, allocations: 8.375 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.2654, allocations: 8.375 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.2656, allocations: 103.4 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2656, allocations: 0 / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.2656, allocations: 0 / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2656, allocations: 4 kB / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.2658, allocations: 47.97 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.2663, allocations: 328.6 kB / 0.787 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.2664, allocations: 54.56 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.915e-05/0.2665, allocations: 24.94 kB / 0.7871 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.2665, allocations: 4 kB / 0.7871 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.2666, allocations: 34.55 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.173e-06/0.2666, allocations: 0 / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003409/0.2669, allocations: 109.6 kB / 0.7872 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.267, allocations: 81.11 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2671, allocations: 128.6 kB / 0.7874 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.2671, allocations: 29.7 kB / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.2672, allocations: 99.97 kB / 0.7876 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2672, allocations: 7.906 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.2673, allocations: 25.7 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.2674, allocations: 318.8 kB / 0.7879 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.41e-05/0.2675, allocations: 23.98 kB / 0.7879 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.789e-05/0.2676, allocations: 37.7 kB / 0.788 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.2677, allocations: 48.83 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2677, allocations: 0 / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001885/0.2679, allocations: 89.53 kB / 0.7881 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2679, allocations: 12.94 kB / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.2679, allocations: 0 / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.268, allocations: 0 / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.2681, allocations: 11.98 kB / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.2681, allocations: 3.938 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.737e-05/0.2682, allocations: 15.92 kB / 0.7881 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.2682, allocations: 4 kB / 0.7881 GB, free: 8.34 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.434e-05/0.2683, allocations: 114.5 kB / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.2683, allocations: 11.91 kB / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2684, allocations: 8.25 kB / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2684, allocations: 4 kB / 0.7883 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2684, allocations: 192 / 0.7883 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2684, allocations: 3.938 kB / 0.7883 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.2686, allocations: 185.6 kB / 0.7885 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2686, allocations: 3.938 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.2687, allocations: 15.92 kB / 0.7885 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.2687, allocations: 0 / 0.7885 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.2687, allocations: 4 kB / 0.7885 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2687, allocations: 4 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2687, allocations: 0 / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.269, allocations: 183.4 kB / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.106e-05/0.269, allocations: 88.94 kB / 0.7887 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.2691, allocations: 0 / 0.7887 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.2692, allocations: 11.98 kB / 0.7888 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.594e-05/0.2693, allocations: 15.98 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.2693, allocations: 3.938 kB / 0.7888 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.112e-05/0.2694, allocations: 99.27 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2694, allocations: 0 / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002282/0.2696, allocations: 12 kB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005201/0.2701, allocations: 0.7123 MB / 0.7896 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002344/0.2704, allocations: 56.23 kB / 0.7896 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2704, allocations: 0 / 0.7896 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.594e-05/0.2705, allocations: 31.92 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.2708, allocations: 10.38 kB / 0.7897 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.2724, allocations: 1.438 MB / 0.7911 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.2726, allocations: 0.6885 MB / 0.7917 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.362e-05/0.2727, allocations: 15.88 kB / 0.7918 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.676e-05/0.2728, allocations: 23.42 kB / 0.7918 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of SimCode: time 3.8e-07/0.2728, allocations: 0 / 0.7918 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.2924, allocations: 2.046 MB / 0.7938 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/7.463, allocations: 10.73 kB / 0.7938 GB, free: 2.461 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)