Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_RegNonZeroPower",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.027/2.027, allocations: 248.6 MB / 255.9 MB, free: 368 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.001554/0.001554, allocations: 178.5 kB / 315.1 MB, free: 7.766 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.055/2.055, allocations: 205.1 MB / 0.5658 GB, free: 25.48 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.001984/0.001984, allocations: 96.44 kB / 0.67 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3894/0.3914, allocations: 112.4 MB / 0.7797 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5458/0.9373, allocations: 106.2 MB / 0.8835 GB, free: 77.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/1.15, allocations: 131.3 MB / 1.012 GB, free: 9.801 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/1.15, allocations: 75.95 kB / 1.012 GB, free: 9.727 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.02207/1.172, allocations: 4.332 MB / 1.016 GB, free: 5.348 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/1.172, allocations: 12 kB / 1.016 GB, free: 5.336 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.337e-05/1.173, allocations: 4 kB / 1.016 GB, free: 5.332 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/1.173, allocations: 167 kB / 1.016 GB, free: 5.129 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/1.173, allocations: 0 / 1.016 GB, free: 5.129 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/1.173, allocations: 4 kB / 1.016 GB, free: 5.125 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.885e-05/1.173, allocations: 11.94 kB / 1.016 GB, free: 5.113 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.181e-05/1.173, allocations: 33.7 kB / 1.016 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.173, allocations: 3.984 kB / 1.016 GB, free: 5.07 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/1.173, allocations: 4 kB / 1.016 GB, free: 5.066 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/1.173, allocations: 0 / 1.016 GB, free: 5.066 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/1.173, allocations: 253.3 kB / 1.016 GB, free: 4.781 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 7.998e-05/1.174, allocations: 26.58 kB / 1.016 GB, free: 4.746 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.397e-05/1.174, allocations: 16.92 kB / 1.016 GB, free: 4.727 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/1.175, allocations: 457.5 kB / 1.017 GB, free: 4.188 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/1.175, allocations: 38.55 kB / 1.017 GB, free: 4.141 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=2): time 2.214e-06/1.175, allocations: 0 / 1.017 GB, free: 4.141 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2): time 0.0002443/1.175, allocations: 49.53 kB / 1.017 GB, free: 4.086 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/1.175, allocations: 55.44 kB / 1.017 GB, free: 4.02 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.662e-05/1.175, allocations: 101 kB / 1.017 GB, free: 3.914 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/1.175, allocations: 25.7 kB / 1.017 GB, free: 3.883 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/1.175, allocations: 80.14 kB / 1.017 GB, free: 3.801 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/1.175, allocations: 7.906 kB / 1.017 GB, free: 3.793 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/1.175, allocations: 0 / 1.017 GB, free: 3.793 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001166/1.175, allocations: 318.8 kB / 1.018 GB, free: 3.473 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.848e-05/1.175, allocations: 4 kB / 1.018 GB, free: 3.469 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.62e-05/1.175, allocations: 8 kB / 1.018 GB, free: 3.461 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.759e-05/1.175, allocations: 4 kB / 1.018 GB, free: 3.457 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/1.176, allocations: 0 / 1.018 GB, free: 3.457 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001439/1.176, allocations: 45.61 kB / 1.018 GB, free: 3.406 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/1.176, allocations: 10.17 kB / 1.018 GB, free: 3.398 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/1.176, allocations: 0 / 1.018 GB, free: 3.398 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/1.176, allocations: 0 / 1.018 GB, free: 3.398 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/1.176, allocations: 16.09 kB / 1.018 GB, free: 3.383 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.954e-06/1.176, allocations: 0 / 1.018 GB, free: 3.383 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/1.176, allocations: 15.92 kB / 1.018 GB, free: 3.367 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/1.176, allocations: 0 / 1.018 GB, free: 3.367 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.254e-05/1.176, allocations: 101 kB / 1.018 GB, free: 3.262 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/1.176, allocations: 7.906 kB / 1.018 GB, free: 3.254 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001682/1.176, allocations: 57.27 kB / 1.018 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.176, allocations: 0 / 1.018 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/1.176, allocations: 0 / 1.018 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/1.176, allocations: 0 / 1.018 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/1.177, allocations: 146.1 kB / 1.018 GB, free: 3.012 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/1.177, allocations: 0 / 1.018 GB, free: 3.012 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/1.177, allocations: 11.98 kB / 1.018 GB, free: 3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/1.177, allocations: 0 / 1.018 GB, free: 3 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/1.177, allocations: 7.969 kB / 1.018 GB, free: 2.992 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/1.177, allocations: 3.938 kB / 1.018 GB, free: 2.988 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.177, allocations: 4 kB / 1.018 GB, free: 2.984 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001806/1.177, allocations: 139.4 kB / 1.018 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003833/1.177, allocations: 0.5155 MB / 1.019 GB, free: 2.297 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/1.177, allocations: 81.05 kB / 1.019 GB, free: 2.199 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/1.177, allocations: 3.984 kB / 1.019 GB, free: 2.195 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/1.178, allocations: 8 kB / 1.019 GB, free: 2.188 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/1.178, allocations: 0 / 1.019 GB, free: 2.188 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-06/1.178, allocations: 3.984 kB / 1.019 GB, free: 2.184 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.19e-05/1.178, allocations: 87.53 kB / 1.019 GB, free: 2.098 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001132/1.179, allocations: 23.91 kB / 1.019 GB, free: 2.074 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0002247/1.179, allocations: 103.2 kB / 1.019 GB, free: 1.965 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000113/1.179, allocations: 19.92 kB / 1.019 GB, free: 1.945 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.179, allocations: 0 / 1.019 GB, free: 1.945 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 3.924e-05/1.179, allocations: 8 kB / 1.019 GB, free: 1.938 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/1.18, allocations: 10.53 kB / 1.019 GB, free: 1.93 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002904/1.18, allocations: 63.91 kB / 1.019 GB, free: 1.844 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/1.18, allocations: 0.688 MB / 1.02 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of SimCode: time 1.022e-06/1.18, allocations: 0 / 1.02 GB, free: 1.129 MB / 0.6667 GB