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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001282/0.001281, allocations: 183.3 kB / 498.1 MB, free: 5.73 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.513/1.513, allocations: 223.2 MB / 0.7948 GB, free: 18.85 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.0008823/0.0008825, allocations: 98.36 kB / 0.9346 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004034, allocations: 10.25 kB / 1.084 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3368, allocations: 142.4 MB / 1.223 GB, free: 89.59 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.5436, allocations: 150.7 MB / 1.37 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.5439, allocations: 95.94 kB / 1.37 GB, free: 2.641 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004388/0.5483, allocations: 1.549 MB / 1.372 GB, free: 1.086 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.833e-06/0.5483, allocations: 0 / 1.372 GB, free: 1.086 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.172e-05/0.5484, allocations: 0 / 1.372 GB, free: 1.086 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.0005121/0.5489, allocations: 387.1 kB / 1.372 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.5489, allocations: 8.031 kB / 1.372 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.549, allocations: 15.86 kB / 1.372 GB, free: 0.6367 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.5492, allocations: 174.9 kB / 1.372 GB, free: 436 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.5492, allocations: 4 kB / 1.372 GB, free: 432 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.5492, allocations: 4 kB / 1.372 GB, free: 428 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002469/0.5495, allocations: 99.31 kB / 1.372 GB, free: 316 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.5495, allocations: 3.938 kB / 1.372 GB, free: 312 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.5495, allocations: 3.984 kB / 1.372 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.5495, allocations: 0 / 1.372 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.5497, allocations: 55.97 kB / 1.372 GB, free: 252 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.5503, allocations: 332.6 kB / 1.373 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.5505, allocations: 54.56 kB / 1.373 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.5505, allocations: 3.984 kB / 1.373 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.5506, allocations: 42.67 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.5506, allocations: 0 / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4): time 0.0003729/0.5509, allocations: 117.5 kB / 1.373 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.551, allocations: 77.11 kB / 1.373 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.5511, allocations: 127.7 kB / 1.373 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.5512, allocations: 29.7 kB / 1.373 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.631e-05/0.5512, allocations: 92.14 kB / 1.373 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.5513, allocations: 15.8 kB / 1.373 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.5513, allocations: 0 / 1.373 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.5514, allocations: 318.8 kB / 1.373 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.874e-05/0.5515, allocations: 27.98 kB / 1.374 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.733e-05/0.5516, allocations: 53.62 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.031e-05/0.5517, allocations: 28.02 kB / 1.374 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5517, allocations: 0 / 1.374 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000188/0.5519, allocations: 89.58 kB / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.5519, allocations: 8 kB / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.5519, allocations: 0 / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.552, allocations: 3.953 kB / 1.374 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5521, allocations: 19.98 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.5521, allocations: 0 / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.243e-05/0.5522, allocations: 15.98 kB / 1.374 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.5522, allocations: 0 / 1.374 GB, free: 14.69 MB / 0.8855 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.187e-05/0.5523, allocations: 117.8 kB / 1.374 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.5523, allocations: 7.906 kB / 1.374 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.5524, allocations: 16.23 kB / 1.374 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5524, allocations: 7.953 kB / 1.374 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.5524, allocations: 0 / 1.374 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.5524, allocations: 0 / 1.374 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.5526, allocations: 193.6 kB / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5526, allocations: 3.938 kB / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.917e-05/0.5527, allocations: 8 kB / 1.374 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5527, allocations: 0 / 1.374 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.5527, allocations: 3.984 kB / 1.374 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.5527, allocations: 3.984 kB / 1.374 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5527, allocations: 11.95 kB / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.553, allocations: 179.4 kB / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.941e-05/0.553, allocations: 81.11 kB / 1.374 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.553, allocations: 0 / 1.374 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.5531, allocations: 19.98 kB / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.5532, allocations: 15.92 kB / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.5532, allocations: 4.141 kB / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.168e-05/0.5533, allocations: 99.25 kB / 1.374 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5533, allocations: 0 / 1.374 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002106/0.5535, allocations: 19.91 kB / 1.374 GB, free: 13.81 MB / 0.8855 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.000132/0.5536, allocations: 108.3 kB / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002015/0.5539, allocations: 63.97 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5539, allocations: 3.938 kB / 1.375 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.862e-05/0.554, allocations: 31.92 kB / 1.375 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.5542, allocations: 17.7 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.5546, allocations: 186.8 kB / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.5548, allocations: 0.6965 MB / 1.376 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.938e-05/0.5549, allocations: 8 kB / 1.376 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.763e-05/0.5549, allocations: 15.42 kB / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of SimCode: time 1.683e-06/0.5549, allocations: 0 / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of Templates: time 0.002785/0.5577, allocations: 0.7158 MB / 1.376 GB, free: 11.93 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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 & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches