Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ac.TIn|ac.occ|ac.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom") translateModel(Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ac.TIn|ac.occ|ac.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom") [: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 10.0.0-master/package.mo): time 2.03/2.03, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001074/0.001075, allocations: 193.2 kB / 490.8 MB, free: 1.957 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.268/1.268, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0009927/0.0009926, allocations: 91.73 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/8.957e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2346, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6295/0.8641, allocations: 151.3 MB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.8644, allocations: 84.52 kB / 1.359 GB, free: 17.29 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.01121/0.8756, allocations: 3.16 MB / 1.363 GB, free: 17.11 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.8757, allocations: 2.438 kB / 1.363 GB, free: 17.11 MB / 0.823 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.0007229/0.8764, allocations: 471.1 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.8764, allocations: 8.906 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.8765, allocations: 7.656 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.8766, allocations: 179.5 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.8767, allocations: 2.719 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.8767, allocations: 5.391 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001063/0.8768, allocations: 32.77 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.8769, allocations: 65.12 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.877, allocations: 0 / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.877, allocations: 10.59 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.877, allocations: 2.219 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.8775, allocations: 292.6 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.8776, allocations: 68.3 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.151e-05/0.8777, allocations: 32.58 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.8777, allocations: 0 / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001106/0.8778, allocations: 78.5 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.8778, allocations: 0 / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.000387/0.8782, allocations: 109.3 kB / 1.364 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.8783, allocations: 62.7 kB / 1.364 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.8784, allocations: 123.8 kB / 1.364 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.8784, allocations: 26.83 kB / 1.364 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.8785, allocations: 92.11 kB / 1.364 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.8785, allocations: 13.16 kB / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-06/0.8785, allocations: 0 / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.8786, allocations: 322.4 kB / 1.364 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.75e-05/0.8787, allocations: 14.47 kB / 1.364 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.707e-05/0.8787, allocations: 61.59 kB / 1.365 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.007e-05/0.8788, allocations: 27.23 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8788, allocations: 3.938 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001539/0.879, allocations: 101 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.879, allocations: 9.562 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.879, allocations: 6.406 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.879, allocations: 5.406 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.822e-05/0.8791, allocations: 18.86 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.8791, allocations: 2.5 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.9e-05/0.8792, allocations: 7.484 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.8792, allocations: 8.156 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.ac.curSeed,ac.curSeed,$PRE.ac.pOff,ac.pOff,$PRE.ac.pOn,ac.pOn,$PRE.ac.on,ac.on,ac.occ,$whenCondition1,ac.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.186e-05/0.8793, allocations: 117 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.8794, allocations: 15.56 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.8794, allocations: 9.062 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.8794, allocations: 1.562 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.8794, allocations: 0 / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.8794, allocations: 1.547 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000466/0.8799, allocations: 372.1 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8799, allocations: 1.188 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.867e-05/0.88, allocations: 5.828 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.88, allocations: 0 / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.88, allocations: 6.703 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.88, allocations: 5.312 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.88, allocations: 1.359 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003306/0.8803, allocations: 208.3 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.55e-05/0.8804, allocations: 82.33 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.8804, allocations: 6.828 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.8805, allocations: 11.3 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.8806, allocations: 5.375 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.8806, allocations: 3.781 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.543e-05/0.8807, allocations: 98.61 kB / 1.366 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000343/0.881, allocations: 67.36 kB / 1.366 GB, free: 30.58 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (ac.sampleTrigger,$whenCondition1,ac.occ,ac.on,ac.pOn,ac.pOff,ac.curSeed) * Number of discrete states: 1 (ac.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004048/0.8814, allocations: 181.6 kB / 1.366 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.8816, allocations: 65.42 kB / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8816, allocations: 1.344 kB / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.139e-05/0.8817, allocations: 37.11 kB / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.8819, allocations: 5.75 kB / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.8822, allocations: 115.2 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.8825, allocations: 0.7115 MB / 1.367 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.8825, allocations: 0 / 1.367 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of Templates: time 0.00508/0.8876, allocations: 2.058 MB / 1.369 GB, free: 29.5 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.sim & ./Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_AirConditioning_Validation_Ren2014ACLivingroom.csv","../files/Buildings_latest_Buildings.Occupants.Residential.AirConditioning.Validation.Ren2014ACLivingroom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,ac.TIn,ac.occ,ac.on Variables in the result:Tin.amplitude,Tin.f,Tin.offset,Tin.phase,Tin.startTime,Tin.y,ac.L1,ac.L2,ac.TIn,ac.k1,ac.k2,ac.occ,ac.on,ac.samplePeriod,ac.seed,ac.t0,ac.u1,ac.u2,occ.startTime,occ.startValue,time