Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.243/2.243, allocations: 248.6 MB / 255.9 MB, free: 7.152 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.001649/0.001649, allocations: 185.2 kB / 315.1 MB, free: 4.285 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.03/2.03, allocations: 205.1 MB / 0.5658 GB, free: 316 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.001273/0.001272, allocations: 87.33 kB / 0.67 GB, free: 5.512 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.489/0.4903, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.7201, allocations: 106.3 MB / 0.8835 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6915/1.412, allocations: 132 MB / 1.012 GB, free: 8.195 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/1.412, allocations: 73.7 kB / 1.012 GB, free: 8.156 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.007686/1.42, allocations: 1.532 MB / 1.014 GB, free: 6.785 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/1.42, allocations: 8 kB / 1.014 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/1.42, allocations: 7.906 kB / 1.014 GB, free: 6.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/1.42, allocations: 170.9 kB / 1.014 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/1.42, allocations: 4 kB / 1.014 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/1.42, allocations: 7.938 kB / 1.014 GB, free: 6.551 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000135/1.42, allocations: 26.25 kB / 1.014 GB, free: 6.535 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/1.421, allocations: 45.62 kB / 1.014 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/1.421, allocations: 0 / 1.014 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/1.421, allocations: 7.984 kB / 1.014 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/1.421, allocations: 0 / 1.014 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005388/1.421, allocations: 251.5 kB / 1.014 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/1.421, allocations: 48.44 kB / 1.014 GB, free: 6.164 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.704e-05/1.421, allocations: 16.61 kB / 1.014 GB, free: 6.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/1.421, allocations: 8.062 kB / 1.015 GB, free: 6.141 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001296/1.422, allocations: 66.11 kB / 1.015 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/1.422, allocations: 0 / 1.015 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002381/1.422, allocations: 64.5 kB / 1.015 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/1.422, allocations: 51.41 kB / 1.015 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/1.422, allocations: 107.4 kB / 1.015 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/1.422, allocations: 25.7 kB / 1.015 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.335e-05/1.422, allocations: 91.5 kB / 1.015 GB, free: 5.723 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/1.422, allocations: 18.62 kB / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/1.422, allocations: 0 / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001729/1.422, allocations: 314.7 kB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.12e-05/1.422, allocations: 11.19 kB / 1.015 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.284e-05/1.423, allocations: 37.38 kB / 1.015 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.177e-05/1.423, allocations: 11.5 kB / 1.015 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.423, allocations: 4 kB / 1.015 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001869/1.423, allocations: 79.83 kB / 1.015 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/1.423, allocations: 6.969 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/1.423, allocations: 0 / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/1.423, allocations: 4 kB / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003091/1.423, allocations: 19.92 kB / 1.015 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/1.423, allocations: 0.7031 kB / 1.015 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/1.423, allocations: 27.86 kB / 1.015 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/1.423, allocations: 4 kB / 1.015 GB, free: 5.203 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: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001137/1.424, allocations: 104.9 kB / 1.016 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/1.424, allocations: 11.09 kB / 1.016 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/1.424, allocations: 80.67 kB / 1.016 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/1.424, allocations: 0 / 1.016 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.424, allocations: 0 / 1.016 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/1.424, allocations: 192 / 1.016 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005325/1.424, allocations: 327.2 kB / 1.016 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/1.424, allocations: 7.938 kB / 1.016 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/1.425, allocations: 15.98 kB / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/1.425, allocations: 0 / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/1.425, allocations: 0 / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/1.425, allocations: 0 / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/1.425, allocations: 3.906 kB / 1.016 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002168/1.425, allocations: 173.9 kB / 1.016 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003505/1.425, allocations: 0.5296 MB / 1.017 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.952e-05/1.425, allocations: 81.11 kB / 1.017 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/1.425, allocations: 3.906 kB / 1.017 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/1.426, allocations: 23.97 kB / 1.017 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.484e-05/1.426, allocations: 4 kB / 1.017 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/1.426, allocations: 3.984 kB / 1.017 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.65e-05/1.426, allocations: 86.91 kB / 1.017 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001201/1.427, allocations: 8 kB / 1.017 GB, free: 3.707 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001698/1.427, allocations: 95.25 kB / 1.017 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000201/1.427, allocations: 50.36 kB / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/1.427, allocations: 0 / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.033e-05/1.428, allocations: 26.61 kB / 1.017 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/1.428, allocations: 7.375 kB / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004443/1.428, allocations: 97.39 kB / 1.017 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/1.429, allocations: 0.715 MB / 1.018 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of SimCode: time 1.523e-06/1.429, allocations: 0 / 1.018 GB, free: 2.691 MB / 0.6355 GB