Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.156/2.156, allocations: 248.6 MB / 255.9 MB, free: 348 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.00207/0.00207, allocations: 179.7 kB / 315.1 MB, free: 7.762 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.154/2.154, allocations: 205.1 MB / 0.5658 GB, free: 25.5 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.001242/0.001242, allocations: 94.42 kB / 0.67 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3205/0.3218, allocations: 112.4 MB / 0.7797 GB, free: 2.461 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5725/0.8943, allocations: 106.2 MB / 0.8835 GB, free: 77.28 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2258/1.12, allocations: 130.9 MB / 1.011 GB, free: 10.17 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/1.121, allocations: 71.95 kB / 1.011 GB, free: 10.1 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.005915/1.126, allocations: 1.208 MB / 1.013 GB, free: 8.852 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/1.127, allocations: 8 kB / 1.013 GB, free: 8.844 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.188e-05/1.127, allocations: 7.906 kB / 1.013 GB, free: 8.836 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/1.127, allocations: 170.9 kB / 1.013 GB, free: 8.629 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/1.127, allocations: 4 kB / 1.013 GB, free: 8.625 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/1.127, allocations: 8 kB / 1.013 GB, free: 8.617 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001402/1.127, allocations: 27.88 kB / 1.013 GB, free: 8.59 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/1.127, allocations: 57.67 kB / 1.013 GB, free: 8.527 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/1.127, allocations: 3.906 kB / 1.013 GB, free: 8.523 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/1.127, allocations: 0 / 1.013 GB, free: 8.523 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/1.127, allocations: 4 kB / 1.013 GB, free: 8.52 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005297/1.128, allocations: 269.3 kB / 1.013 GB, free: 8.219 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/1.128, allocations: 50.5 kB / 1.013 GB, free: 8.16 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/1.128, allocations: 24.98 kB / 1.013 GB, free: 8.133 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/1.128, allocations: 7.922 kB / 1.013 GB, free: 8.125 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/1.128, allocations: 63.39 kB / 1.013 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=8): time 2.395e-06/1.128, allocations: 0 / 1.013 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of matching and sorting (n=8): time 0.0002642/1.129, allocations: 69.59 kB / 1.013 GB, free: 7.977 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/1.129, allocations: 59.41 kB / 1.013 GB, free: 7.906 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/1.129, allocations: 113 kB / 1.013 GB, free: 7.785 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/1.129, allocations: 25.7 kB / 1.013 GB, free: 7.754 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 5.024e-05/1.129, allocations: 88.14 kB / 1.014 GB, free: 7.664 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/1.129, allocations: 27.64 kB / 1.014 GB, free: 7.637 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-06/1.129, allocations: 0 / 1.014 GB, free: 7.637 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001243/1.129, allocations: 310.8 kB / 1.014 GB, free: 7.324 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.873e-05/1.129, allocations: 16 kB / 1.014 GB, free: 7.309 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.206e-05/1.129, allocations: 56.33 kB / 1.014 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.704e-05/1.129, allocations: 16 kB / 1.014 GB, free: 7.223 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/1.129, allocations: 0 / 1.014 GB, free: 7.223 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002434/1.13, allocations: 97.55 kB / 1.014 GB, free: 7.121 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.13, allocations: 8 kB / 1.014 GB, free: 7.113 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/1.13, allocations: 0 / 1.014 GB, free: 7.113 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/1.13, allocations: 4 kB / 1.014 GB, free: 7.109 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/1.13, allocations: 15.98 kB / 1.014 GB, free: 7.094 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/1.13, allocations: 4 kB / 1.014 GB, free: 7.09 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/1.13, allocations: 23.92 kB / 1.014 GB, free: 7.066 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/1.13, allocations: 4 kB / 1.014 GB, free: 7.062 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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.0001047/1.13, allocations: 115.7 kB / 1.014 GB, free: 6.945 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.262e-05/1.13, allocations: 3.906 kB / 1.014 GB, free: 6.941 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/1.131, allocations: 82.03 kB / 1.014 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/1.131, allocations: 4 kB / 1.014 GB, free: 6.852 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/1.131, allocations: 3.984 kB / 1.014 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.131, allocations: 0 / 1.014 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005836/1.131, allocations: 333.5 kB / 1.015 GB, free: 6.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.131, allocations: 0 / 1.015 GB, free: 6.48 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/1.131, allocations: 19.98 kB / 1.015 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.131, allocations: 384 / 1.015 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/1.131, allocations: 0 / 1.015 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/1.131, allocations: 0 / 1.015 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.131, allocations: 3.906 kB / 1.015 GB, free: 6.457 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002663/1.132, allocations: 171.4 kB / 1.015 GB, free: 6.273 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000477/1.132, allocations: 0.547 MB / 1.015 GB, free: 5.707 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.828e-05/1.132, allocations: 81.02 kB / 1.015 GB, free: 5.609 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/1.132, allocations: 4 kB / 1.015 GB, free: 5.605 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/1.133, allocations: 19.98 kB / 1.015 GB, free: 5.586 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/1.133, allocations: 7.984 kB / 1.015 GB, free: 5.578 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/1.133, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.731e-05/1.133, allocations: 91.27 kB / 1.016 GB, free: 5.488 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00128/1.134, allocations: 15.91 kB / 1.016 GB, free: 5.473 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 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0001665/1.134, allocations: 101.4 kB / 1.016 GB, free: 5.367 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000226/1.134, allocations: 59.98 kB / 1.016 GB, free: 5.309 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.134, allocations: 3.938 kB / 1.016 GB, free: 5.305 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 9.369e-05/1.135, allocations: 27.92 kB / 1.016 GB, free: 5.277 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/1.135, allocations: 10.19 kB / 1.016 GB, free: 5.27 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006689/1.136, allocations: 101.3 kB / 1.016 GB, free: 5.148 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005961/1.136, allocations: 0.7155 MB / 1.017 GB, free: 4.406 MB / 0.6667 GB Notification: Performance of SimCode: time 1.193e-06/1.136, allocations: 0 / 1.017 GB, free: 4.406 MB / 0.6667 GB