Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.903/1.903, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001245/0.001245, 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.305/1.305, allocations: 221.3 MB / 0.7819 GB, free: 1.445 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.001026/0.001026, allocations: 100.8 kB / 0.9213 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.923e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2301, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5847/0.8149, allocations: 150.4 MB / 1.352 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.8152, allocations: 81.17 kB / 1.352 GB, free: 15.93 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.009005/0.8242, allocations: 2.695 MB / 1.355 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.8242, allocations: 0.9062 kB / 1.355 GB, free: 15.79 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004388/0.8247, allocations: 418.3 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.8247, allocations: 9.75 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.8247, allocations: 10 kB / 1.355 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.535e-05/0.8249, allocations: 172.2 kB / 1.355 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.8249, allocations: 5.797 kB / 1.355 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.8249, allocations: 4.109 kB / 1.355 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.237e-05/0.825, allocations: 22.88 kB / 1.355 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.8251, allocations: 56.09 kB / 1.355 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.8251, allocations: 0 / 1.355 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.8252, allocations: 0 / 1.355 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.8252, allocations: 1.75 kB / 1.355 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004025/0.8256, allocations: 286 kB / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.243e-05/0.8257, allocations: 39.58 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.959e-05/0.8257, allocations: 30.27 kB / 1.356 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.8257, allocations: 1.188 kB / 1.356 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.949e-05/0.8258, allocations: 69.84 kB / 1.356 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.8258, allocations: 1.219 kB / 1.356 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002253/0.8261, allocations: 77.95 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.8261, allocations: 53 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.247e-05/0.8262, allocations: 112 kB / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.8262, allocations: 30.45 kB / 1.356 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.8262, allocations: 91.89 kB / 1.356 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.8263, allocations: 15.41 kB / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.213e-05/0.8263, allocations: 0 / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.056e-05/0.8263, allocations: 319.8 kB / 1.357 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.892e-05/0.8264, allocations: 16.34 kB / 1.357 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.524e-05/0.8264, allocations: 35.27 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.941e-05/0.8265, allocations: 25.09 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.8265, allocations: 1.281 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001728/0.8267, allocations: 94.72 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.8267, allocations: 4.469 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.8267, allocations: 0.875 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.8268, allocations: 0.9688 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.8269, allocations: 17.36 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.8269, allocations: 1.5 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.252e-05/0.827, allocations: 18.16 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.827, allocations: 2.938 kB / 1.357 GB, free: 14.09 MB / 0.8073 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 8.112e-05/0.8271, allocations: 109.4 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.8271, allocations: 7.094 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.8271, allocations: 7.469 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.8271, allocations: 4.906 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.8271, allocations: 1 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.8272, allocations: 5.406 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.8274, allocations: 323.8 kB / 1.357 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.8274, allocations: 0 / 1.357 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.673e-05/0.8275, allocations: 6.828 kB / 1.357 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.8275, allocations: 0.6875 kB / 1.357 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.8275, allocations: 2.828 kB / 1.357 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.8275, allocations: 5.406 kB / 1.357 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8275, allocations: 240 / 1.357 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001563/0.8277, allocations: 179.3 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.8277, allocations: 84.77 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.8278, allocations: 1.188 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.986e-05/0.8279, allocations: 10.72 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.8279, allocations: 12.31 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.8279, allocations: 3 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.218e-05/0.828, allocations: 92.38 kB / 1.358 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003031/0.8283, allocations: 55.14 kB / 1.358 GB, free: 13.35 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: 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.0003094/0.8286, allocations: 167.5 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001443/0.8288, allocations: 58.25 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.8288, allocations: 4.125 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.514e-05/0.8288, allocations: 23.53 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.829, allocations: 7.203 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002883/0.8293, allocations: 98.44 kB / 1.358 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.8295, allocations: 0.7092 MB / 1.359 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of SimCode: time 2.21e-07/0.8295, allocations: 0 / 1.359 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of Templates: time 0.004414/0.8339, allocations: 1.631 MB / 1.36 GB, free: 12.3 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","../files/Buildings_9_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