Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") [: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.937/1.937, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001009/0.001009, allocations: 180.4 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.262/1.262, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0009423/0.0009421, allocations: 106.1 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.324e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2257, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6482/0.8739, allocations: 150.4 MB / 1.352 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.8742, allocations: 82.98 kB / 1.352 GB, free: 15.79 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.009152/0.8834, allocations: 2.687 MB / 1.355 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.8834, allocations: 0.875 kB / 1.355 GB, free: 15.66 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.0004174/0.8838, allocations: 420.8 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.8839, allocations: 9.688 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.8839, allocations: 7.688 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.03e-05/0.884, allocations: 167.9 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.884, allocations: 2.5 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.8841, allocations: 7.656 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.877e-05/0.8842, allocations: 27.73 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.8843, allocations: 54.94 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.8843, allocations: 3.25 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.8843, allocations: 0 / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.8843, allocations: 0.9688 kB / 1.355 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.8848, allocations: 291.5 kB / 1.356 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.339e-05/0.8848, allocations: 39.56 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.632e-05/0.8849, allocations: 24.36 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.8849, allocations: 1.75 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.409e-05/0.885, allocations: 63.02 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.885, allocations: 4 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002401/0.8853, allocations: 83.62 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.8853, allocations: 52.92 kB / 1.356 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.417e-05/0.8854, allocations: 116 kB / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.8854, allocations: 26.64 kB / 1.356 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.91e-05/0.8855, allocations: 91.61 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.8855, allocations: 19.22 kB / 1.356 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.8855, allocations: 0 / 1.356 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.854e-05/0.8856, allocations: 319.5 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.805e-05/0.8856, allocations: 18.16 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.095e-05/0.8857, allocations: 37.25 kB / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.701e-05/0.8857, allocations: 21.72 kB / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.8857, allocations: 0 / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000165/0.8859, allocations: 90.75 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.8859, allocations: 5.219 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.8859, allocations: 4.922 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.886, allocations: 1.344 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.8861, allocations: 16.38 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.8861, allocations: 5.516 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.8862, allocations: 10.62 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.8862, allocations: 7.734 kB / 1.357 GB, free: 13.96 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 6.095e-05/0.8863, allocations: 108.6 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.8863, allocations: 8.391 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.8863, allocations: 9.766 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.8863, allocations: 1.125 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.8863, allocations: 0.6562 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.8863, allocations: 2.078 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.8866, allocations: 322.5 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.8866, allocations: 1.781 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.8867, allocations: 9.516 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.8867, allocations: 1.922 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.8867, allocations: 4.797 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.8867, allocations: 5.953 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8867, allocations: 0 / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001601/0.8869, allocations: 176.8 kB / 1.357 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.8869, allocations: 84.69 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.8869, allocations: 0.75 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.783e-05/0.887, allocations: 14.09 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.8871, allocations: 4.391 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.8871, allocations: 3.812 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.029e-05/0.8871, allocations: 92.38 kB / 1.358 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003008/0.8874, allocations: 50.53 kB / 1.358 GB, free: 13.23 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.0002967/0.8878, allocations: 172.8 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001376/0.8879, allocations: 55.31 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.8879, allocations: 0 / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.601e-05/0.888, allocations: 23.88 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.8881, allocations: 10.34 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002758/0.8884, allocations: 112.8 kB / 1.358 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.8886, allocations: 0.705 MB / 1.359 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of SimCode: time 2.21e-07/0.8886, allocations: 0 / 1.359 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of Templates: time 0.00422/0.8928, allocations: 1.626 MB / 1.36 GB, free: 12.18 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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