Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.103/2.103, allocations: 248.6 MB / 255.9 MB, free: 7.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00171/0.001709, allocations: 188.2 kB / 315.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.88/1.88, allocations: 205.1 MB / 0.5658 GB, free: 328 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001356/0.001355, allocations: 95.27 kB / 0.67 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4938/0.4953, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.7331, allocations: 106.3 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8632/1.596, allocations: 133.7 MB / 1.014 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004407/1.597, allocations: 85.19 kB / 1.014 GB, free: 6.516 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.02141/1.618, allocations: 3.054 MB / 1.017 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/1.618, allocations: 8 kB / 1.017 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/1.618, allocations: 11.89 kB / 1.017 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/1.619, allocations: 170.9 kB / 1.017 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/1.619, allocations: 4 kB / 1.017 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/1.619, allocations: 5.125 kB / 1.017 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001669/1.619, allocations: 30.94 kB / 1.017 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/1.619, allocations: 57.41 kB / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.619, allocations: 0 / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/1.619, allocations: 0 / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/1.619, allocations: 7.906 kB / 1.017 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008272/1.62, allocations: 278.7 kB / 1.018 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/1.62, allocations: 41.17 kB / 1.018 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/1.62, allocations: 27.42 kB / 1.018 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/1.621, allocations: 0 / 1.018 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/1.621, allocations: 69.95 kB / 1.018 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 3.306e-06/1.621, allocations: 0 / 1.018 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0004547/1.621, allocations: 88 kB / 1.018 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/1.621, allocations: 55.41 kB / 1.018 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/1.622, allocations: 115.6 kB / 1.018 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/1.622, allocations: 25.7 kB / 1.018 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/1.622, allocations: 84.33 kB / 1.018 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/1.622, allocations: 18.73 kB / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.369e-05/1.622, allocations: 0 / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001904/1.622, allocations: 318.3 kB / 1.018 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.501e-05/1.622, allocations: 18.88 kB / 1.019 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/1.622, allocations: 45.94 kB / 1.019 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/1.622, allocations: 26.64 kB / 1.019 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/1.622, allocations: 4 kB / 1.019 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004145/1.623, allocations: 87.72 kB / 1.019 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/1.623, allocations: 4 kB / 1.019 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.623, allocations: 4.062 kB / 1.019 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/1.623, allocations: 0 / 1.019 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/1.623, allocations: 15.98 kB / 1.019 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/1.623, allocations: 0 / 1.019 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/1.623, allocations: 7.984 kB / 1.019 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/1.624, allocations: 7.312 kB / 1.019 GB, free: 2.23 MB / 0.6355 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 0.0001722/1.624, allocations: 116.8 kB / 1.019 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/1.624, allocations: 7.906 kB / 1.019 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/1.624, allocations: 7.812 kB / 1.019 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/1.624, allocations: 0 / 1.019 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.624, allocations: 4 kB / 1.019 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/1.624, allocations: 3.984 kB / 1.019 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007866/1.625, allocations: 315.6 kB / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/1.625, allocations: 0 / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/1.625, allocations: 4 kB / 1.019 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/1.625, allocations: 8 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/1.625, allocations: 0 / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/1.625, allocations: 0 / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.625, allocations: 7.922 kB / 1.019 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004184/1.625, allocations: 169.6 kB / 1.019 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006088/1.626, allocations: 0.5518 MB / 1.02 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.299e-05/1.626, allocations: 88.53 kB / 1.02 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/1.626, allocations: 3.906 kB / 1.02 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/1.627, allocations: 4 kB / 1.02 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.884e-05/1.627, allocations: 7.984 kB / 1.02 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/1.627, allocations: 4 kB / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001074/1.627, allocations: 92.23 kB / 1.02 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002213/1.629, allocations: 58.38 kB / 1.02 GB, free: 0.7578 MB / 0.6355 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.0008484/1.63, allocations: 170.7 kB / 1.02 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003614/1.63, allocations: 64.22 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.63, allocations: 3.938 kB / 1.02 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/1.631, allocations: 23.12 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/1.631, allocations: 13.05 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/1.632, allocations: 98.42 kB / 1.02 GB, free: 424 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005932/1.632, allocations: 0.6997 MB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of SimCode: time 1.684e-06/1.632, allocations: 4 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB