Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.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.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect") translateModel(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect") [: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 2.041/2.041, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001282, allocations: 177.3 kB / 487 MB, free: 5.395 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.401/1.401, allocations: 221.3 MB / 0.7819 GB, free: 1.406 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.0009984/0.0009985, allocations: 104.2 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.478e-06/9.768e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2831, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6819/0.9651, allocations: 156.9 MB / 1.358 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.9654, allocations: 99.97 kB / 1.359 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02897/0.9944, allocations: 12.52 MB / 1.371 GB, free: 7.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.972e-05/0.9945, allocations: 12 kB / 1.371 GB, free: 7.578 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006512/0.9951, allocations: 0.7009 MB / 1.371 GB, free: 6.859 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.9952, allocations: 8.031 kB / 1.371 GB, free: 6.852 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.975e-05/0.9952, allocations: 67.16 kB / 1.372 GB, free: 6.785 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006098/0.9959, allocations: 475.6 kB / 1.372 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.9959, allocations: 0 / 1.372 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.9959, allocations: 4 kB / 1.372 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.771e-05/0.996, allocations: 37.92 kB / 1.372 GB, free: 6.301 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.9961, allocations: 94.61 kB / 1.372 GB, free: 6.207 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.9962, allocations: 3.938 kB / 1.372 GB, free: 6.203 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.9962, allocations: 0 / 1.372 GB, free: 6.203 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.9962, allocations: 0 / 1.372 GB, free: 6.203 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.9967, allocations: 0.5108 MB / 1.373 GB, free: 5.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.997, allocations: 106.8 kB / 1.373 GB, free: 5.656 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.702e-05/0.9971, allocations: 35.78 kB / 1.373 GB, free: 5.629 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.9971, allocations: 0 / 1.373 GB, free: 5.629 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.588e-05/0.9972, allocations: 78.7 kB / 1.373 GB, free: 5.551 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.9972, allocations: 0 / 1.373 GB, free: 5.551 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002196/0.9974, allocations: 147 kB / 1.373 GB, free: 5.414 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.9975, allocations: 102.8 kB / 1.373 GB, free: 5.289 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007283/0.9982, allocations: 0.765 MB / 1.374 GB, free: 4.695 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.9982, allocations: 25.7 kB / 1.374 GB, free: 4.664 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.787e-05/0.9983, allocations: 162.9 kB / 1.374 GB, free: 4.527 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.9984, allocations: 27.27 kB / 1.374 GB, free: 4.504 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.9984, allocations: 4 kB / 1.374 GB, free: 4.5 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.708e-05/0.9984, allocations: 308.6 kB / 1.374 GB, free: 4.195 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4e-05/0.9985, allocations: 23.86 kB / 1.374 GB, free: 4.18 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.274e-05/0.9985, allocations: 74.78 kB / 1.374 GB, free: 4.105 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.914e-05/0.9986, allocations: 35.11 kB / 1.374 GB, free: 4.082 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9986, allocations: 4 kB / 1.374 GB, free: 4.078 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001735/0.9988, allocations: 162.2 kB / 1.375 GB, free: 3.93 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.9988, allocations: 8 kB / 1.375 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.9988, allocations: 0 / 1.375 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.9988, allocations: 0 / 1.375 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.563e-05/0.9989, allocations: 19.86 kB / 1.375 GB, free: 3.906 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.9989, allocations: 0 / 1.375 GB, free: 3.906 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.9991, allocations: 15.83 kB / 1.375 GB, free: 3.891 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.9991, allocations: 8 kB / 1.375 GB, free: 3.883 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.sta.combiTimeTable.nextTimeEvent,speSel.stage,sta.combiTimeTable.nextTimeEvent,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.304e-05/0.9992, allocations: 114.8 kB / 1.375 GB, free: 3.766 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.9992, allocations: 63.16 kB / 1.375 GB, free: 3.703 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002758/0.9995, allocations: 167.7 kB / 1.375 GB, free: 3.562 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.9995, allocations: 0 / 1.375 GB, free: 3.562 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9995, allocations: 3.984 kB / 1.375 GB, free: 3.559 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.9995, allocations: 0 / 1.375 GB, free: 3.559 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002998/0.9998, allocations: 368.7 kB / 1.375 GB, free: 3.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.9998, allocations: 4 kB / 1.375 GB, free: 3.227 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.433e-05/0.9999, allocations: 14.98 kB / 1.375 GB, free: 3.215 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.9999, allocations: 4 kB / 1.375 GB, free: 3.211 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.9999, allocations: 0 / 1.375 GB, free: 3.211 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.9999, allocations: 0 / 1.375 GB, free: 3.211 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1, allocations: 0 / 1.375 GB, free: 3.211 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001835/1, allocations: 179.1 kB / 1.376 GB, free: 3.035 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/1, allocations: 144.1 kB / 1.376 GB, free: 2.879 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/1, allocations: 11.86 kB / 1.376 GB, free: 2.871 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/1, allocations: 4 kB / 1.376 GB, free: 2.867 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.756e-05/1.001, allocations: 7.984 kB / 1.376 GB, free: 2.859 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/1.001, allocations: 4 kB / 1.376 GB, free: 2.855 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0006388/1.001, allocations: 0.621 MB / 1.376 GB, free: 2.398 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003536/1.002, allocations: 88.39 kB / 1.376 GB, free: 2.32 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: 4 ($whenCondition1,speSel.stage,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001099/1.003, allocations: 0.4898 MB / 1.377 GB, free: 1.941 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002062/1.003, allocations: 81.5 kB / 1.377 GB, free: 1.883 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.003, allocations: 0 / 1.377 GB, free: 1.883 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.95e-05/1.003, allocations: 37.75 kB / 1.377 GB, free: 1.855 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006405/1.004, allocations: 130.6 kB / 1.377 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/1.005, allocations: 0.864 MB / 1.378 GB, free: 0.9883 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005419/1.006, allocations: 1.013 MB / 1.379 GB, free: 12 kB / 0.8073 GB Notification: Performance of SimCode: time 4.41e-07/1.006, allocations: 0 / 1.379 GB, free: 12 kB / 0.8073 GB Notification: Performance of Templates: time 0.01223/1.018, allocations: 5.481 MB / 1.384 GB, free: 10.62 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches