Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) [: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 1.881/1.881, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009828/0.0009828, allocations: 187.6 kB / 490.8 MB, free: 1.953 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.248/1.248, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008648/0.0008654, allocations: 90.48 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5451/0.546, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.7772, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6489/1.426, allocations: 151.2 MB / 1.359 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/1.427, allocations: 81.92 kB / 1.359 GB, free: 17.16 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: 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.009494/1.436, allocations: 3.108 MB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/1.436, allocations: 8.875 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/1.436, allocations: 8.312 kB / 1.362 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/1.436, allocations: 168.1 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/1.436, allocations: 6.875 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/1.436, allocations: 6.438 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.924e-05/1.436, allocations: 22.25 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/1.437, allocations: 54.66 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/1.437, allocations: 4 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/1.437, allocations: 5.484 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/1.437, allocations: 1.25 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004544/1.437, allocations: 278.8 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.541e-05/1.437, allocations: 46.05 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.434e-05/1.437, allocations: 24.22 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/1.437, allocations: 2.125 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.189e-05/1.437, allocations: 64.17 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/1.437, allocations: 1.125 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002163/1.438, allocations: 80.97 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/1.438, allocations: 55.3 kB / 1.363 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.219e-05/1.438, allocations: 116.2 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/1.438, allocations: 25.7 kB / 1.363 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/1.438, allocations: 91.5 kB / 1.363 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/1.438, allocations: 16.42 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/1.438, allocations: 0 / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.754e-05/1.438, allocations: 318.8 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.116e-05/1.438, allocations: 14.28 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.852e-05/1.438, allocations: 43.52 kB / 1.364 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.799e-05/1.438, allocations: 24 kB / 1.364 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/1.438, allocations: 3.938 kB / 1.364 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001661/1.438, allocations: 87.55 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/1.438, allocations: 4.906 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/1.438, allocations: 5.156 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/1.438, allocations: 1.281 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/1.438, allocations: 23.47 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/1.438, allocations: 2.312 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.25e-05/1.438, allocations: 10.62 kB / 1.364 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/1.439, allocations: 2.406 kB / 1.364 GB, free: 31.31 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 6.612e-05/1.439, allocations: 106.8 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/1.439, allocations: 6.625 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/1.439, allocations: 15.73 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/1.439, allocations: 1.25 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/1.439, allocations: 1.25 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/1.439, allocations: 1.219 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/1.439, allocations: 322.1 kB / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/1.439, allocations: 0 / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-05/1.439, allocations: 6.016 kB / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/1.439, allocations: 2.5 kB / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/1.439, allocations: 1.094 kB / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/1.439, allocations: 5.219 kB / 1.364 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.439, allocations: 5.062 kB / 1.364 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000174/1.439, allocations: 176.6 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002943/1.44, allocations: 0.5498 MB / 1.365 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/1.44, allocations: 87.75 kB / 1.365 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/1.44, allocations: 1.312 kB / 1.365 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.711e-05/1.44, allocations: 6.75 kB / 1.365 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/1.44, allocations: 8.562 kB / 1.365 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/1.44, allocations: 2.688 kB / 1.365 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.636e-05/1.44, allocations: 89.91 kB / 1.365 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008567/1.441, allocations: 54.91 kB / 1.365 GB, free: 30.07 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.0003425/1.441, allocations: 177.1 kB / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001371/1.441, allocations: 51.84 kB / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.441, allocations: 0 / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.765e-05/1.441, allocations: 29.66 kB / 1.366 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001796/1.441, allocations: 11.16 kB / 1.366 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002993/1.442, allocations: 102.8 kB / 1.366 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/1.442, allocations: 0.7047 MB / 1.366 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.442, allocations: 0 / 1.366 GB, free: 29.17 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1)