Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.131/2.131, allocations: 390.3 MB / 405.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 179.5 kB / 498.1 MB, free: 5.809 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 0.7948 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009424/0.0009423, allocations: 110.5 kB / 0.9346 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004009/0.000401, allocations: 10.47 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2839, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.4679, allocations: 150.7 MB / 1.37 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.4683, allocations: 91.94 kB / 1.37 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004616/0.4729, allocations: 1.554 MB / 1.372 GB, free: 9.758 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.619e-06/0.4729, allocations: 0 / 1.372 GB, free: 9.758 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.4729, allocations: 7.938 kB / 1.372 GB, free: 9.75 MB / 0.8698 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.0004888/0.4734, allocations: 391.1 kB / 1.372 GB, free: 9.32 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.4735, allocations: 8.031 kB / 1.372 GB, free: 9.312 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.4735, allocations: 30.56 kB / 1.372 GB, free: 9.273 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.4736, allocations: 15.86 kB / 1.372 GB, free: 9.258 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.4738, allocations: 178.9 kB / 1.372 GB, free: 9.043 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.4738, allocations: 0 / 1.372 GB, free: 9.043 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.4738, allocations: 4 kB / 1.372 GB, free: 9.039 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.474, allocations: 99.31 kB / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.474, allocations: 0 / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.4741, allocations: 0 / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.4741, allocations: 0 / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.4742, allocations: 63.95 kB / 1.372 GB, free: 8.867 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.4747, allocations: 328.6 kB / 1.373 GB, free: 8.496 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.4749, allocations: 58.55 kB / 1.373 GB, free: 8.43 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.4749, allocations: 0 / 1.373 GB, free: 8.43 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.475, allocations: 38.52 kB / 1.373 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.475, allocations: 0 / 1.373 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4): time 0.0003659/0.4753, allocations: 121.7 kB / 1.373 GB, free: 8.258 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.4754, allocations: 77.11 kB / 1.373 GB, free: 8.164 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.611e-05/0.4755, allocations: 119.7 kB / 1.373 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.4755, allocations: 33.64 kB / 1.373 GB, free: 8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.766e-05/0.4756, allocations: 100 kB / 1.373 GB, free: 7.898 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.4756, allocations: 7.906 kB / 1.373 GB, free: 7.891 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.4756, allocations: 4 kB / 1.373 GB, free: 7.887 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4757, allocations: 318.8 kB / 1.374 GB, free: 7.566 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.458e-05/0.4758, allocations: 31.92 kB / 1.374 GB, free: 7.535 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.4759, allocations: 41.7 kB / 1.374 GB, free: 7.488 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.045e-05/0.476, allocations: 28.02 kB / 1.374 GB, free: 7.461 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.476, allocations: 0 / 1.374 GB, free: 7.461 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002064/0.4762, allocations: 97.52 kB / 1.374 GB, free: 7.359 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.4763, allocations: 8 kB / 1.374 GB, free: 7.352 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4763, allocations: 8.125 kB / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.4763, allocations: 4 kB / 1.374 GB, free: 7.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.4764, allocations: 12 kB / 1.374 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.4764, allocations: 0 / 1.374 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.648e-05/0.4765, allocations: 15.98 kB / 1.374 GB, free: 7.312 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.4765, allocations: 0 / 1.374 GB, free: 7.312 MB / 0.8698 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.708e-05/0.4766, allocations: 117.8 kB / 1.374 GB, free: 7.188 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.4767, allocations: 12.09 kB / 1.374 GB, free: 7.176 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.524e-05/0.4767, allocations: 16.23 kB / 1.374 GB, free: 7.156 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.4767, allocations: 3.953 kB / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4767, allocations: 0 / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4767, allocations: 0 / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.4769, allocations: 189.6 kB / 1.374 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4769, allocations: 0 / 1.374 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.351e-05/0.477, allocations: 15.92 kB / 1.374 GB, free: 6.902 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.477, allocations: 0 / 1.374 GB, free: 6.902 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.477, allocations: 0 / 1.374 GB, free: 6.902 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4771, allocations: 4 kB / 1.374 GB, free: 6.898 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4771, allocations: 7.953 kB / 1.374 GB, free: 6.891 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.4773, allocations: 179.4 kB / 1.374 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.4773, allocations: 88.95 kB / 1.374 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.4774, allocations: 4 kB / 1.374 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.4775, allocations: 15.98 kB / 1.374 GB, free: 6.574 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.918e-05/0.4776, allocations: 19.92 kB / 1.374 GB, free: 6.555 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.4776, allocations: 0 / 1.374 GB, free: 6.555 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.455e-05/0.4776, allocations: 99.2 kB / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4776, allocations: 0 / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002239/0.4779, allocations: 16 kB / 1.375 GB, free: 6.441 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005058/0.4784, allocations: 0.7202 MB / 1.375 GB, free: 5.695 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.4786, allocations: 63.95 kB / 1.375 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4786, allocations: 0 / 1.375 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.064e-05/0.4787, allocations: 35.92 kB / 1.375 GB, free: 5.598 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.4789, allocations: 9.812 kB / 1.375 GB, free: 5.59 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.4799, allocations: 0.5816 MB / 1.376 GB, free: 4.957 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.4802, allocations: 0.6926 MB / 1.377 GB, free: 4.238 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.55e-05/0.4802, allocations: 4 kB / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.93e-05/0.4803, allocations: 27.42 kB / 1.377 GB, free: 4.207 MB / 0.8698 GB Notification: Performance of SimCode: time 4.01e-07/0.4803, allocations: 4 kB / 1.377 GB, free: 4.203 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0134/0.4937, allocations: 1.693 MB / 1.378 GB, free: 2.684 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.494, allocations: 208.1 kB / 1.379 GB, free: 2.449 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.152, allocations: 0 / 1.379 GB, free: 2.449 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat