Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.9237/0.9237, allocations: 141.8 MB / 149.1 MB, free: 13.53 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 183.1 kB / 181.9 MB, free: 10.17 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 221.3 MB / 436 MB, free: 2.746 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000959/0.0009589, allocations: 94.23 kB / 0.507 GB, free: 17.73 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 274.1 kB / 0.5884 GB, free: 4.215 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3169/0.3187, allocations: 89.64 MB / 0.676 GB, free: 137 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.4459, allocations: 82.78 MB / 0.7568 GB, free: 83.94 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.5564, allocations: 108.5 MB / 0.8627 GB, free: 7.32 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.5566, allocations: 72.78 kB / 0.8628 GB, free: 7.25 MB / 0.5419 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.01319/0.5698, allocations: 4.361 MB / 0.8671 GB, free: 2.84 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.5699, allocations: 12 kB / 0.8671 GB, free: 2.828 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.5699, allocations: 7.906 kB / 0.8671 GB, free: 2.82 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.5701, allocations: 167.1 kB / 0.8672 GB, free: 2.617 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.5701, allocations: 0 / 0.8672 GB, free: 2.617 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.5701, allocations: 0 / 0.8672 GB, free: 2.617 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.546e-05/0.5702, allocations: 15.94 kB / 0.8673 GB, free: 2.602 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.562e-05/0.5702, allocations: 37.59 kB / 0.8673 GB, free: 2.559 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.5702, allocations: 0 / 0.8673 GB, free: 2.559 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.5703, allocations: 0 / 0.8673 GB, free: 2.559 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.5703, allocations: 0 / 0.8673 GB, free: 2.559 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.5706, allocations: 249.5 kB / 0.8675 GB, free: 2.277 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.212e-05/0.5707, allocations: 26.5 kB / 0.8676 GB, free: 2.242 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.5707, allocations: 16.83 kB / 0.8676 GB, free: 2.223 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006264/0.5714, allocations: 461.5 kB / 0.868 GB, free: 1.68 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.5714, allocations: 38.48 kB / 0.8681 GB, free: 1.633 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.5714, allocations: 0 / 0.8681 GB, free: 1.633 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0001723/0.5716, allocations: 41.7 kB / 0.8681 GB, free: 1.586 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.5716, allocations: 51.41 kB / 0.8681 GB, free: 1.523 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.572e-05/0.5717, allocations: 105 kB / 0.8682 GB, free: 1.414 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.5717, allocations: 25.7 kB / 0.8683 GB, free: 1.383 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.408e-05/0.5718, allocations: 92.12 kB / 0.8684 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.5718, allocations: 7.844 kB / 0.8684 GB, free: 1.281 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.5718, allocations: 0 / 0.8684 GB, free: 1.281 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 8.566e-05/0.5719, allocations: 310.8 kB / 0.8687 GB, free: 0.9688 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.5719, allocations: 8 kB / 0.8687 GB, free: 0.9609 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.298e-05/0.5719, allocations: 4 kB / 0.8687 GB, free: 0.957 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.355e-05/0.572, allocations: 4.062 kB / 0.8687 GB, free: 0.9531 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.572, allocations: 7.906 kB / 0.8687 GB, free: 0.9453 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001007/0.5721, allocations: 45.62 kB / 0.8687 GB, free: 0.8945 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.5721, allocations: 8 kB / 0.8687 GB, free: 0.8867 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5721, allocations: 3.984 kB / 0.8687 GB, free: 0.8828 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.5721, allocations: 0 / 0.8687 GB, free: 0.8828 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.367e-05/0.5722, allocations: 11.98 kB / 0.8687 GB, free: 0.8711 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.5722, allocations: 0 / 0.8687 GB, free: 0.8711 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.5723, allocations: 16.03 kB / 0.8688 GB, free: 0.8555 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-06/0.5723, allocations: 0 / 0.8688 GB, free: 0.8555 MB / 0.5419 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 5.552e-05/0.5724, allocations: 108.8 kB / 0.8689 GB, free: 0.7422 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.203e-05/0.5724, allocations: 4 kB / 0.8689 GB, free: 0.7383 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.5725, allocations: 45.31 kB / 0.8689 GB, free: 0.6875 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.5726, allocations: 7.969 kB / 0.8689 GB, free: 0.6797 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.5726, allocations: 11.89 kB / 0.8689 GB, free: 0.668 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.5726, allocations: 0 / 0.8689 GB, free: 0.668 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.5727, allocations: 134.2 kB / 0.8691 GB, free: 0.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.5727, allocations: 0 / 0.8691 GB, free: 0.5 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.5728, allocations: 11.98 kB / 0.8691 GB, free: 500 kB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.5728, allocations: 4 kB / 0.8691 GB, free: 496 kB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.5728, allocations: 0 / 0.8691 GB, free: 496 kB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5728, allocations: 3.938 kB / 0.8691 GB, free: 492 kB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5728, allocations: 4 kB / 0.8691 GB, free: 488 kB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001342/0.573, allocations: 143.5 kB / 0.8692 GB, free: 328 kB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002318/0.5732, allocations: 0.5037 MB / 0.8697 GB, free: 15.8 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.496e-05/0.5732, allocations: 85.16 kB / 0.8698 GB, free: 15.7 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.5733, allocations: 7.906 kB / 0.8698 GB, free: 15.69 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.988e-05/0.5734, allocations: 4 kB / 0.8698 GB, free: 15.68 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.5734, allocations: 11.98 kB / 0.8698 GB, free: 15.67 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.5734, allocations: 0 / 0.8698 GB, free: 15.67 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.68e-05/0.5735, allocations: 79.53 kB / 0.8699 GB, free: 15.59 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0008062/0.5743, allocations: 12 kB / 0.8699 GB, free: 15.58 MB / 0.5575 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.0001606/0.5744, allocations: 119.2 kB / 0.87 GB, free: 15.46 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 7.637e-05/0.5745, allocations: 16 kB / 0.87 GB, free: 15.44 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.5745, allocations: 0 / 0.87 GB, free: 15.44 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.188e-05/0.5746, allocations: 8 kB / 0.87 GB, free: 15.43 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/0.5747, allocations: 2.922 kB / 0.87 GB, free: 15.43 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001976/0.5749, allocations: 63.86 kB / 0.8701 GB, free: 15.35 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.5752, allocations: 0.6959 MB / 0.8708 GB, free: 14.62 MB / 0.5575 GB Notification: Performance of SimCode: time 2.41e-07/0.5752, allocations: 0 / 0.8708 GB, free: 14.62 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)