Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.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.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker",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.724/0.724, allocations: 141.8 MB / 149.1 MB, free: 14.8 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.001016/0.001016, allocations: 175.3 kB / 182 MB, free: 11.25 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.268/1.268, allocations: 221.3 MB / 436 MB, free: 3.82 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.0009418/0.0009421, allocations: 92.22 kB / 0.507 GB, free: 18.5 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001814/0.001814, allocations: 273.9 kB / 0.5885 GB, free: 5.234 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3868/0.3886, allocations: 89.63 MB / 0.676 GB, free: 138 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.5291, allocations: 82.78 MB / 0.7568 GB, free: 85.75 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.6571, allocations: 109.4 MB / 0.8637 GB, free: 8.168 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.6574, allocations: 73.52 kB / 0.8638 GB, free: 8.098 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.01133/0.6688, allocations: 3.656 MB / 0.8673 GB, free: 4.383 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.6688, allocations: 12 kB / 0.8673 GB, free: 4.371 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.6689, allocations: 19.81 kB / 0.8674 GB, free: 4.352 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.6691, allocations: 190.9 kB / 0.8676 GB, free: 4.125 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.6692, allocations: 4 kB / 0.8676 GB, free: 4.121 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.6692, allocations: 4 kB / 0.8676 GB, free: 4.117 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000134/0.6693, allocations: 39.98 kB / 0.8676 GB, free: 4.078 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.6695, allocations: 77.59 kB / 0.8677 GB, free: 3.996 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.6695, allocations: 0 / 0.8677 GB, free: 3.996 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.6695, allocations: 3.938 kB / 0.8677 GB, free: 3.992 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.6696, allocations: 4 kB / 0.8677 GB, free: 3.988 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006791/0.6702, allocations: 353.1 kB / 0.868 GB, free: 3.605 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.6704, allocations: 50.58 kB / 0.8681 GB, free: 3.547 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.672e-05/0.6705, allocations: 32.91 kB / 0.8681 GB, free: 3.512 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.6705, allocations: 3.938 kB / 0.8681 GB, free: 3.508 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001214/0.6706, allocations: 87.38 kB / 0.8682 GB, free: 3.41 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.6706, allocations: 0 / 0.8682 GB, free: 3.41 MB / 0.5419 GB Notification: Performance of matching and sorting (n=9): time 0.0002756/0.6709, allocations: 97.52 kB / 0.8683 GB, free: 3.309 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.671, allocations: 59.41 kB / 0.8683 GB, free: 3.238 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.6711, allocations: 120.9 kB / 0.8684 GB, free: 3.113 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.6711, allocations: 25.7 kB / 0.8685 GB, free: 3.082 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.376e-05/0.6712, allocations: 96.06 kB / 0.8686 GB, free: 2.984 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.6712, allocations: 27.61 kB / 0.8686 GB, free: 2.957 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.6712, allocations: 4 kB / 0.8686 GB, free: 2.953 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.6714, allocations: 322.8 kB / 0.8689 GB, free: 2.629 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.6714, allocations: 28 kB / 0.8689 GB, free: 2.602 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.072e-05/0.6715, allocations: 35.98 kB / 0.869 GB, free: 2.566 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.771e-05/0.6716, allocations: 32.05 kB / 0.869 GB, free: 2.535 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6716, allocations: 4 kB / 0.869 GB, free: 2.531 MB / 0.5419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002174/0.6718, allocations: 117.7 kB / 0.8691 GB, free: 2.41 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.6719, allocations: 11.89 kB / 0.8691 GB, free: 2.398 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.6719, allocations: 0 / 0.8691 GB, free: 2.398 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.6719, allocations: 0 / 0.8691 GB, free: 2.398 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.6721, allocations: 31.92 kB / 0.8691 GB, free: 2.367 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.6721, allocations: 0 / 0.8691 GB, free: 2.367 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.6723, allocations: 31.91 kB / 0.8692 GB, free: 2.336 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.6723, allocations: 4 kB / 0.8692 GB, free: 2.332 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: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.92e-05/0.6724, allocations: 108.9 kB / 0.8693 GB, free: 2.219 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.6724, allocations: 7.906 kB / 0.8693 GB, free: 2.211 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.6727, allocations: 118.2 kB / 0.8694 GB, free: 2.086 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.6727, allocations: 4 kB / 0.8694 GB, free: 2.082 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.6727, allocations: 4 kB / 0.8694 GB, free: 2.078 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.6727, allocations: 0 / 0.8694 GB, free: 2.078 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.6728, allocations: 178.1 kB / 0.8696 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.6729, allocations: 0 / 0.8696 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.673, allocations: 23.98 kB / 0.8696 GB, free: 1.844 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.673, allocations: 0 / 0.8696 GB, free: 1.844 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.673, allocations: 7.984 kB / 0.8696 GB, free: 1.836 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.673, allocations: 4 kB / 0.8696 GB, free: 1.832 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.673, allocations: 0 / 0.8696 GB, free: 1.832 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002158/0.6733, allocations: 128.9 kB / 0.8697 GB, free: 1.688 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003261/0.6736, allocations: 0.5051 MB / 0.8702 GB, free: 1.16 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.6737, allocations: 93 kB / 0.8703 GB, free: 1.051 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.6737, allocations: 7.984 kB / 0.8703 GB, free: 1.043 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.6739, allocations: 15.98 kB / 0.8703 GB, free: 1.027 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.6739, allocations: 23.91 kB / 0.8704 GB, free: 1.004 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.674, allocations: 4 kB / 0.8704 GB, free: 1 MB / 0.5419 GB Notification: Performance of sort global known variables: time 7.511e-05/0.674, allocations: 105 kB / 0.8705 GB, free: 0.8984 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008253/0.6749, allocations: 43.84 kB / 0.8705 GB, free: 0.8555 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001947/0.6751, allocations: 115.2 kB / 0.8706 GB, free: 0.7344 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002377/0.6753, allocations: 139.3 kB / 0.8708 GB, free: 0.5859 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6753, allocations: 4.188 kB / 0.8708 GB, free: 0.582 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 9.583e-05/0.6754, allocations: 69.69 kB / 0.8708 GB, free: 0.5078 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.6756, allocations: 12.41 kB / 0.8708 GB, free: 0.4961 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004437/0.6761, allocations: 135.3 kB / 0.871 GB, free: 348 kB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2233/0.8994, allocations: 0.7238 MB / 0.8717 GB, free: 165.1 MB / 0.5419 GB Notification: Performance of SimCode: time 7.01e-07/0.8994, allocations: 0 / 0.8717 GB, free: 165.1 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)