Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.711/1.711, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009511/0.0009511, allocations: 189.2 kB / 487 MB, free: 5.375 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.069/1.069, allocations: 221.3 MB / 0.7819 GB, free: 1.527 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000837/0.000837, allocations: 96.75 kB / 0.9213 GB, free: 2.766 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.769e-06/4.789e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1649, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4491/0.614, allocations: 152 MB / 1.354 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.6142, allocations: 94.69 kB / 1.354 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01219/0.6264, allocations: 5.093 MB / 1.359 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.253e-05/0.6265, allocations: 3.75 kB / 1.359 GB, free: 15.48 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003613/0.6268, allocations: 0.4924 MB / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.6269, allocations: 9.234 kB / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.998e-05/0.6269, allocations: 33.59 kB / 1.359 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.6275, allocations: 424.2 kB / 1.36 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.6275, allocations: 1.781 kB / 1.36 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.6275, allocations: 7.469 kB / 1.36 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.557e-05/0.6276, allocations: 36.8 kB / 1.36 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.914e-05/0.6277, allocations: 66.97 kB / 1.36 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.311e-06/0.6277, allocations: 0 / 1.36 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.6277, allocations: 0.6875 kB / 1.36 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.6277, allocations: 1.062 kB / 1.36 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000573/0.6283, allocations: 485.5 kB / 1.36 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.821e-05/0.6284, allocations: 40.56 kB / 1.36 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.647e-05/0.6284, allocations: 14.19 kB / 1.36 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.6285, allocations: 1.344 kB / 1.36 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.6285, allocations: 36.17 kB / 1.36 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.6285, allocations: 4 kB / 1.36 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001691/0.6287, allocations: 77.42 kB / 1.36 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.541e-05/0.6287, allocations: 52.06 kB / 1.36 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/0.6292, allocations: 493.2 kB / 1.361 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.903e-06/0.6292, allocations: 25.7 kB / 1.361 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.899e-05/0.6292, allocations: 125.7 kB / 1.361 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.31e-05/0.6293, allocations: 5.219 kB / 1.361 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.6293, allocations: 0 / 1.361 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.6293, allocations: 349.1 kB / 1.361 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.68e-05/0.6293, allocations: 8.031 kB / 1.361 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.423e-05/0.6294, allocations: 8.891 kB / 1.361 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.124e-05/0.6294, allocations: 9.156 kB / 1.361 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6294, allocations: 0.5156 kB / 1.361 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.329e-05/0.6295, allocations: 80.84 kB / 1.362 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.664e-06/0.6295, allocations: 4.797 kB / 1.362 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.6295, allocations: 0 / 1.362 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.6295, allocations: 3.906 kB / 1.362 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.953e-05/0.6296, allocations: 14.06 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-06/0.6296, allocations: 3.938 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.6297, allocations: 5.453 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.6297, allocations: 0 / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 3.331e-05/0.6297, allocations: 105.8 kB / 1.362 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.6298, allocations: 35.56 kB / 1.362 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.6299, allocations: 86.16 kB / 1.362 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.63, allocations: 0.6094 kB / 1.362 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.63, allocations: 8 kB / 1.362 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.63, allocations: 3.938 kB / 1.362 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.6302, allocations: 276.2 kB / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.6302, allocations: 0 / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.063e-05/0.6302, allocations: 9.828 kB / 1.362 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.6303, allocations: 0.5625 kB / 1.362 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.6303, allocations: 0 / 1.362 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6303, allocations: 4.703 kB / 1.362 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6303, allocations: 240 / 1.362 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001077/0.6304, allocations: 181.2 kB / 1.362 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-05/0.6305, allocations: 137 kB / 1.362 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.6305, allocations: 4 kB / 1.362 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.723e-05/0.6306, allocations: 5.312 kB / 1.362 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.6307, allocations: 5.453 kB / 1.362 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.6307, allocations: 0 / 1.362 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0003056/0.631, allocations: 384.2 kB / 1.363 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002363/0.6312, allocations: 40.91 kB / 1.363 GB, free: 12.41 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000423/0.6316, allocations: 277.8 kB / 1.363 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.54e-05/0.6317, allocations: 17.78 kB / 1.363 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.6317, allocations: 0 / 1.363 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.068e-05/0.6317, allocations: 12.61 kB / 1.363 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.632, allocations: 37.33 kB / 1.363 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.6326, allocations: 401 kB / 1.363 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.6328, allocations: 0.8181 MB / 1.364 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of SimCode: time 2.41e-07/0.6329, allocations: 0 / 1.364 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of Templates: time 0.004402/0.6373, allocations: 1.979 MB / 1.366 GB, free: 9.773 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches