Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") [: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.129/2.129, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001053/0.001053, allocations: 174.6 kB / 490.8 MB, free: 1.91 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.405/1.405, allocations: 221.4 MB / 0.7863 GB, free: 13.71 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.0009158/0.0009157, allocations: 87.67 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.941e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6379/0.8604, allocations: 151.2 MB / 1.359 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.8607, allocations: 80.58 kB / 1.359 GB, free: 17.25 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.008953/0.8697, allocations: 2.699 MB / 1.362 GB, free: 17.11 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.8697, allocations: 0.6875 kB / 1.362 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000506/0.8703, allocations: 416.2 kB / 1.362 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.8703, allocations: 9.062 kB / 1.362 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.409e-05/0.8704, allocations: 7.062 kB / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.8705, allocations: 173.2 kB / 1.363 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.8705, allocations: 5.062 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.8705, allocations: 4.453 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.606e-05/0.8706, allocations: 19.53 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.8707, allocations: 58.48 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.8707, allocations: 0 / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.8708, allocations: 5.484 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.8708, allocations: 1.938 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.8712, allocations: 282.6 kB / 1.363 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.221e-05/0.8713, allocations: 36.41 kB / 1.363 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.709e-05/0.8713, allocations: 22.8 kB / 1.363 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.8714, allocations: 1.062 kB / 1.363 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.701e-05/0.8715, allocations: 70.95 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.8715, allocations: 3.938 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002333/0.8717, allocations: 78.2 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.8718, allocations: 55.58 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.144e-05/0.8718, allocations: 111.8 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.8719, allocations: 26.83 kB / 1.363 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.693e-05/0.8719, allocations: 90.48 kB / 1.363 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.8719, allocations: 19.2 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.8719, allocations: 0 / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.82e-05/0.8721, allocations: 319.5 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.807e-05/0.8721, allocations: 14.75 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.567e-05/0.8722, allocations: 40.91 kB / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.333e-05/0.8722, allocations: 22.47 kB / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8722, allocations: 0 / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001798/0.8724, allocations: 97.22 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.8724, allocations: 13.53 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.8725, allocations: 0 / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.8725, allocations: 1.375 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.8726, allocations: 20.12 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.8726, allocations: 0.9062 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.079e-05/0.8727, allocations: 12.22 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.8727, allocations: 7.047 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.067e-05/0.8728, allocations: 107.3 kB / 1.364 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.8728, allocations: 9.281 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.8728, allocations: 9.125 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.8728, allocations: 5.016 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8728, allocations: 1.25 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.8728, allocations: 5.484 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.8731, allocations: 326.7 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.8731, allocations: 0 / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-05/0.8732, allocations: 5.422 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.8732, allocations: 1.625 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.8732, allocations: 5.078 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.8732, allocations: 2.781 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.8732, allocations: 0 / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001747/0.8734, allocations: 187.2 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.283e-05/0.8735, allocations: 82.92 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.8735, allocations: 2.562 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.755e-05/0.8736, allocations: 5.969 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.8736, allocations: 4.516 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.8736, allocations: 2.594 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.523e-05/0.8737, allocations: 89.98 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000316/0.874, allocations: 54.05 kB / 1.365 GB, free: 30.67 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: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003256/0.8743, allocations: 165.1 kB / 1.365 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001425/0.8745, allocations: 58.55 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.8745, allocations: 1.281 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.329e-05/0.8746, allocations: 23.03 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001761/0.8747, allocations: 7.484 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.875, allocations: 102.5 kB / 1.365 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.8753, allocations: 0.7014 MB / 1.366 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/0.8753, allocations: 0 / 1.366 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of Templates: time 0.003933/0.8793, allocations: 1.64 MB / 1.367 GB, free: 29.62 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time