Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",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.175/2.175, allocations: 248.6 MB / 255.9 MB, free: 7.18 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.001641/0.001641, allocations: 189.2 kB / 315.1 MB, free: 4.281 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.9/1.9, allocations: 205.1 MB / 0.5658 GB, free: 376 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.001352/0.001352, allocations: 96.81 kB / 0.67 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4674/0.4688, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.7325, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7931/1.526, allocations: 133.8 MB / 1.014 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003853/1.526, allocations: 73.02 kB / 1.014 GB, free: 6.418 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.02259/1.549, allocations: 3.607 MB / 1.018 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/1.549, allocations: 8 kB / 1.018 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.084e-05/1.549, allocations: 23.8 kB / 1.018 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/1.549, allocations: 217.8 kB / 1.018 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/1.549, allocations: 4 kB / 1.018 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/1.55, allocations: 11.31 kB / 1.018 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002256/1.55, allocations: 38.73 kB / 1.018 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003946/1.55, allocations: 114.1 kB / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/1.55, allocations: 0 / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/1.55, allocations: 11.61 kB / 1.018 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/1.55, allocations: 0 / 1.018 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/1.552, allocations: 0.7102 MB / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/1.552, allocations: 33.14 kB / 1.019 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/1.553, allocations: 16.67 kB / 1.019 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-05/1.553, allocations: 8 kB / 1.019 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002639/1.553, allocations: 104.2 kB / 1.019 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 4.228e-06/1.553, allocations: 0 / 1.019 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0004897/1.553, allocations: 98.8 kB / 1.019 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/1.554, allocations: 128.7 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/1.554, allocations: 171.1 kB / 1.019 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/1.554, allocations: 29.45 kB / 1.019 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/1.554, allocations: 114.3 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.928e-05/1.554, allocations: 30.73 kB / 1.019 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.386e-05/1.554, allocations: 0 / 1.019 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002085/1.554, allocations: 334.2 kB / 1.02 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/1.555, allocations: 20.12 kB / 1.02 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/1.555, allocations: 122.7 kB / 1.02 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/1.555, allocations: 42.3 kB / 1.02 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/1.555, allocations: 8 kB / 1.02 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006079/1.556, allocations: 150.3 kB / 1.02 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/1.556, allocations: 4 kB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/1.556, allocations: 4.5 kB / 1.02 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.072e-05/1.556, allocations: 12.75 kB / 1.02 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/1.556, allocations: 39.09 kB / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.991e-05/1.556, allocations: 12 kB / 1.02 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/1.557, allocations: 27.98 kB / 1.02 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/1.557, allocations: 8 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001742/1.557, allocations: 121.4 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/1.557, allocations: 15.81 kB / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/1.557, allocations: 24.36 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/1.557, allocations: 7.938 kB / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/1.557, allocations: 0 / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/1.557, allocations: 0 / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/1.559, allocations: 468.9 kB / 1.021 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/1.559, allocations: 0 / 1.021 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/1.559, allocations: 28.14 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/1.559, allocations: 0 / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/1.559, allocations: 4 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/1.559, allocations: 3.938 kB / 1.021 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.559, allocations: 0 / 1.021 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00065/1.56, allocations: 350 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009866/1.561, allocations: 0.7376 MB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/1.561, allocations: 88.92 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.228e-05/1.561, allocations: 4 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005447/1.562, allocations: 23.05 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.811e-05/1.562, allocations: 11.92 kB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/1.562, allocations: 7.984 kB / 1.022 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000214/1.562, allocations: 124.1 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002425/1.564, allocations: 31.84 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003148/1.565, allocations: 103.2 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004361/1.565, allocations: 76.47 kB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/1.565, allocations: 3.938 kB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001918/1.566, allocations: 37.36 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/1.567, allocations: 51.95 kB / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/1.568, allocations: 249.4 kB / 1.023 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/1.569, allocations: 0.7473 MB / 1.023 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of SimCode: time 1.022e-06/1.569, allocations: 0 / 1.023 GB, free: 13.32 MB / 0.6511 GB