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: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",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 9.1.1-maint.9.1.x/package.mo): time 2.076/2.076, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001247/0.001247, allocations: 173.3 kB / 487 MB, free: 5.328 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.3/1.3, allocations: 221.3 MB / 0.7819 GB, free: 1.32 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.0009213/0.000921, allocations: 101.7 kB / 0.9213 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.552/0.5529, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.7787, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6702/1.449, allocations: 150.4 MB / 1.352 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/1.449, allocations: 80.78 kB / 1.352 GB, free: 15.75 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: 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.01012/1.459, allocations: 3.107 MB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.459, allocations: 9.5 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.434e-05/1.459, allocations: 9.75 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/1.46, allocations: 168.1 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/1.46, allocations: 1.781 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/1.46, allocations: 5.141 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.806e-05/1.46, allocations: 23.12 kB / 1.355 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/1.46, allocations: 59.28 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/1.46, allocations: 4 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/1.46, allocations: 4.844 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/1.46, allocations: 0.875 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/1.46, allocations: 275.9 kB / 1.356 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.785e-05/1.46, allocations: 43.94 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.84e-05/1.46, allocations: 24.02 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/1.461, allocations: 12.59 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.901e-05/1.461, allocations: 67.39 kB / 1.356 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/1.461, allocations: 3.938 kB / 1.356 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002445/1.461, allocations: 75.16 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/1.461, allocations: 60.12 kB / 1.356 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.588e-05/1.461, allocations: 112.6 kB / 1.356 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/1.461, allocations: 26.39 kB / 1.356 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.901e-05/1.461, allocations: 89.36 kB / 1.356 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/1.461, allocations: 9.969 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/1.461, allocations: 3.656 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.753e-05/1.461, allocations: 319.7 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.939e-05/1.461, allocations: 14.03 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.982e-05/1.461, allocations: 42.95 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.584e-05/1.461, allocations: 24.2 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.461, allocations: 0 / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001856/1.461, allocations: 90.56 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/1.462, allocations: 4.844 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/1.462, allocations: 0.9688 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/1.462, allocations: 2.391 kB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/1.462, allocations: 20.36 kB / 1.357 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/1.462, allocations: 5.641 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.405e-05/1.462, allocations: 10.75 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/1.462, allocations: 6.734 kB / 1.357 GB, free: 13.91 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 7.033e-05/1.462, allocations: 105.3 kB / 1.357 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/1.462, allocations: 7.984 kB / 1.357 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/1.462, allocations: 14.86 kB / 1.357 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/1.462, allocations: 1.828 kB / 1.357 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.462, allocations: 0 / 1.357 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.462, allocations: 3.938 kB / 1.357 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/1.462, allocations: 322.7 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.462, allocations: 0.5625 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.976e-05/1.462, allocations: 6.141 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/1.462, allocations: 1.531 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/1.462, allocations: 9.516 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/1.462, allocations: 5.453 kB / 1.357 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.462, allocations: 0 / 1.357 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001758/1.463, allocations: 174.1 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002048/1.463, allocations: 0.5439 MB / 1.358 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.044e-05/1.463, allocations: 88.03 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/1.463, allocations: 0.8125 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.949e-05/1.463, allocations: 6.078 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/1.463, allocations: 8.172 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/1.463, allocations: 8.703 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.287e-05/1.463, allocations: 89.73 kB / 1.358 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009435/1.464, allocations: 58.17 kB / 1.358 GB, free: 12.67 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.0003491/1.464, allocations: 177 kB / 1.358 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001542/1.465, allocations: 48.75 kB / 1.358 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/1.465, allocations: 0.9375 kB / 1.358 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.034e-05/1.465, allocations: 28.83 kB / 1.358 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/1.465, allocations: 2.828 kB / 1.358 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000335/1.465, allocations: 100.6 kB / 1.359 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/1.465, allocations: 0.7088 MB / 1.359 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/1.465, allocations: 0 / 1.359 GB, free: 11.78 MB / 0.8073 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1)