Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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.Nicol2001HeatingEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU") [: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.001/2.001, 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.001028/0.001028, allocations: 180.5 kB / 487 MB, free: 5.371 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.276/1.276, 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.0009126/0.0009126, allocations: 102.4 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.891e-06/5.901e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2232, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5693/0.7926, allocations: 150.4 MB / 1.352 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.7929, allocations: 79.78 kB / 1.352 GB, free: 15.72 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.00935/0.8022, allocations: 2.697 MB / 1.355 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.8023, allocations: 1.625 kB / 1.355 GB, free: 15.58 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.0004439/0.8027, allocations: 414.8 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.8028, allocations: 8.969 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.8028, allocations: 8.203 kB / 1.355 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.267e-05/0.8029, allocations: 172 kB / 1.355 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.803, allocations: 6.234 kB / 1.355 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.803, allocations: 3.406 kB / 1.355 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.783e-05/0.8031, allocations: 24.47 kB / 1.355 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.8032, allocations: 53.25 kB / 1.355 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.8032, allocations: 0 / 1.355 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.8032, allocations: 1.688 kB / 1.355 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.8032, allocations: 5 kB / 1.355 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004269/0.8037, allocations: 282.8 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.432e-05/0.8037, allocations: 41.06 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.8038, allocations: 27.52 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.8038, allocations: 1.391 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.243e-05/0.8039, allocations: 69.78 kB / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.8039, allocations: 0 / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002499/0.8042, allocations: 82.7 kB / 1.356 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/0.8042, allocations: 57.02 kB / 1.356 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.751e-05/0.8043, allocations: 111.1 kB / 1.356 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.8043, allocations: 30.64 kB / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.789e-05/0.8044, allocations: 88.03 kB / 1.356 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.8044, allocations: 15.78 kB / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.8044, allocations: 0 / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.8044, allocations: 319.6 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.8045, allocations: 17.66 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.881e-05/0.8045, allocations: 36.55 kB / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.638e-05/0.8046, allocations: 26.14 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.8046, allocations: 0.625 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001702/0.8048, allocations: 90.27 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.8048, allocations: 5.281 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.8048, allocations: 0.8438 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.8049, allocations: 1.562 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.805, allocations: 16.17 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.805, allocations: 5.062 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.192e-05/0.8051, allocations: 16.77 kB / 1.357 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.8051, allocations: 2.812 kB / 1.357 GB, free: 13.88 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.926e-05/0.8051, allocations: 105.7 kB / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.8052, allocations: 7.281 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.8052, allocations: 14.52 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.8052, allocations: 1.281 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.8052, allocations: 5.125 kB / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.8052, allocations: 0 / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.8055, allocations: 323.1 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.8055, allocations: 0.75 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.8056, allocations: 6.141 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.8056, allocations: 6.641 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.8056, allocations: 1 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.8056, allocations: 4.141 kB / 1.357 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.8056, allocations: 3.406 kB / 1.357 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001668/0.8058, allocations: 177.2 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.787e-05/0.8058, allocations: 84.84 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.8059, allocations: 1.344 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.412e-05/0.806, allocations: 6.312 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.806, allocations: 7.203 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.806, allocations: 8.141 kB / 1.357 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.146e-05/0.8061, allocations: 92.98 kB / 1.358 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003261/0.8064, allocations: 51.59 kB / 1.358 GB, free: 13.15 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.0003518/0.8068, allocations: 164 kB / 1.358 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001521/0.8069, allocations: 53.33 kB / 1.358 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8069, allocations: 4.125 kB / 1.358 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.98e-05/0.807, allocations: 28.12 kB / 1.358 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.8072, allocations: 10.22 kB / 1.358 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003164/0.8075, allocations: 100.8 kB / 1.358 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.8077, allocations: 0.7021 MB / 1.359 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of SimCode: time 2.2e-07/0.8077, allocations: 0 / 1.359 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of Templates: time 0.004355/0.812, allocations: 1.645 MB / 1.36 GB, free: 12.09 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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