Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.23/2.23, allocations: 248.6 MB / 255.9 MB, free: 356 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001659/0.001659, allocations: 191.3 kB / 315.1 MB, free: 7.746 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.084/2.084, allocations: 205.1 MB / 0.5658 GB, free: 25.45 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001333/0.001333, allocations: 98.44 kB / 0.67 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2776/0.2789, allocations: 112.4 MB / 0.7797 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5175/0.7965, allocations: 106.2 MB / 0.8835 GB, free: 77.26 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2193/1.016, allocations: 132.7 MB / 1.013 GB, free: 8.363 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/1.016, allocations: 75.95 kB / 1.013 GB, free: 8.289 MB / 0.6667 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.0155/1.032, allocations: 3.063 MB / 1.016 GB, free: 5.172 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/1.032, allocations: 8 kB / 1.016 GB, free: 5.164 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/1.032, allocations: 7.906 kB / 1.016 GB, free: 5.156 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/1.032, allocations: 176.5 kB / 1.016 GB, free: 4.945 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/1.032, allocations: 8 kB / 1.016 GB, free: 4.938 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/1.032, allocations: 0 / 1.016 GB, free: 4.938 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001221/1.032, allocations: 23.94 kB / 1.016 GB, free: 4.914 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/1.032, allocations: 57.67 kB / 1.016 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/1.032, allocations: 0 / 1.016 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/1.032, allocations: 0 / 1.016 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/1.032, allocations: 3.906 kB / 1.016 GB, free: 4.848 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/1.033, allocations: 285.4 kB / 1.017 GB, free: 4.531 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/1.033, allocations: 42.48 kB / 1.017 GB, free: 4.48 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.963e-05/1.033, allocations: 28.91 kB / 1.017 GB, free: 4.449 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/1.033, allocations: 7.938 kB / 1.017 GB, free: 4.441 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/1.034, allocations: 67.39 kB / 1.017 GB, free: 4.363 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 2.495e-06/1.034, allocations: 0 / 1.017 GB, free: 4.363 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0003513/1.034, allocations: 77.58 kB / 1.017 GB, free: 4.281 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/1.034, allocations: 55.41 kB / 1.017 GB, free: 4.215 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/1.034, allocations: 112.9 kB / 1.017 GB, free: 4.098 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/1.034, allocations: 25.7 kB / 1.017 GB, free: 4.066 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/1.034, allocations: 88.33 kB / 1.017 GB, free: 3.973 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/1.034, allocations: 15.81 kB / 1.017 GB, free: 3.957 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/1.034, allocations: 4 kB / 1.017 GB, free: 3.953 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001689/1.035, allocations: 322.8 kB / 1.017 GB, free: 3.629 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.343e-05/1.035, allocations: 16 kB / 1.017 GB, free: 3.613 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.882e-05/1.035, allocations: 43.16 kB / 1.018 GB, free: 3.562 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/1.035, allocations: 19.91 kB / 1.018 GB, free: 3.543 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.035, allocations: 3.938 kB / 1.018 GB, free: 3.539 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002876/1.035, allocations: 97.52 kB / 1.018 GB, free: 3.438 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/1.035, allocations: 9.406 kB / 1.018 GB, free: 3.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/1.035, allocations: 160 / 1.018 GB, free: 3.43 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.035, allocations: 0 / 1.018 GB, free: 3.43 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/1.035, allocations: 15.98 kB / 1.018 GB, free: 3.414 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/1.035, allocations: 3.984 kB / 1.018 GB, free: 3.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/1.036, allocations: 4 kB / 1.018 GB, free: 3.406 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/1.036, allocations: 7.984 kB / 1.018 GB, free: 3.398 MB / 0.6667 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.0001142/1.036, allocations: 116.9 kB / 1.018 GB, free: 3.277 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/1.036, allocations: 15.91 kB / 1.018 GB, free: 3.262 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.501e-05/1.036, allocations: 4.375 kB / 1.018 GB, free: 3.258 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/1.036, allocations: 0 / 1.018 GB, free: 3.258 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.036, allocations: 0 / 1.018 GB, free: 3.258 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.036, allocations: 0 / 1.018 GB, free: 3.258 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005974/1.036, allocations: 319 kB / 1.018 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1.037, allocations: 4 kB / 1.018 GB, free: 2.898 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.684e-05/1.037, allocations: 7.984 kB / 1.018 GB, free: 2.891 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/1.037, allocations: 0 / 1.018 GB, free: 2.891 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/1.037, allocations: 8 kB / 1.018 GB, free: 2.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/1.037, allocations: 0 / 1.018 GB, free: 2.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.037, allocations: 3.938 kB / 1.018 GB, free: 2.879 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000289/1.037, allocations: 167.4 kB / 1.018 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004375/1.037, allocations: 0.5544 MB / 1.019 GB, free: 2.125 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/1.038, allocations: 81.11 kB / 1.019 GB, free: 2.027 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/1.038, allocations: 7.891 kB / 1.019 GB, free: 2.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/1.038, allocations: 4 kB / 1.019 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/1.038, allocations: 7.984 kB / 1.019 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/1.038, allocations: 3.938 kB / 1.019 GB, free: 2.004 MB / 0.6667 GB Notification: Performance of sort global known variables: time 8.008e-05/1.038, allocations: 92.7 kB / 1.019 GB, free: 1.914 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00131/1.039, allocations: 59.86 kB / 1.019 GB, free: 1.855 MB / 0.6667 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.0005024/1.04, allocations: 167.1 kB / 1.019 GB, free: 1.699 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002553/1.04, allocations: 55.98 kB / 1.019 GB, free: 1.645 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.04, allocations: 8.062 kB / 1.019 GB, free: 1.637 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/1.04, allocations: 24 kB / 1.019 GB, free: 1.613 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/1.041, allocations: 0 / 1.019 GB, free: 1.613 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004848/1.041, allocations: 99.67 kB / 1.019 GB, free: 1.492 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003668/1.041, allocations: 0.7036 MB / 1.02 GB, free: 0.7617 MB / 0.6667 GB Notification: Performance of SimCode: time 1.212e-06/1.041, allocations: 0 / 1.02 GB, free: 0.7617 MB / 0.6667 GB