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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001123, allocations: 191.1 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001973/0.001973, allocations: 278.5 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.887/0.887, allocations: 169.2 MB / 0.4977 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 85.36 kB / 0.5946 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.156, allocations: 86.99 MB / 0.6795 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002779/0.1589, allocations: 1.597 MB / 0.6811 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009721/0.1599, allocations: 0.5875 MB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.047e-05/0.1599, allocations: 1.969 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.16, allocations: 7.922 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.563e-05/0.1601, allocations: 23.8 kB / 0.6817 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.1604, allocations: 71.92 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.1605, allocations: 87.64 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1606, allocations: 20.48 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1607, allocations: 47.78 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.822e-05/0.1608, allocations: 47.81 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.1609, allocations: 4 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.161, allocations: 59.89 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.161, allocations: 23.86 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.616e-05/0.1611, allocations: 31.8 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.1613, allocations: 143.5 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1613, allocations: 0 / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1613, allocations: 0 / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.1613, allocations: 0 / 0.6822 GB, free: 14.34 MB / 494.1 MB 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.0007534/0.1621, allocations: 452.8 kB / 0.6827 GB, free: 13.84 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1621, allocations: 12.03 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.1622, allocations: 30.75 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.1622, allocations: 12.75 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.1624, allocations: 200.1 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.118e-06/0.1624, allocations: 4.375 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.1624, allocations: 4.375 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.1627, allocations: 109.7 kB / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.1627, allocations: 4 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.1628, allocations: 4 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.1628, allocations: 4 kB / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.1631, allocations: 79.92 kB / 0.6831 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.1637, allocations: 352.6 kB / 0.6834 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.164, allocations: 94.5 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.1642, allocations: 52.89 kB / 0.6836 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.1642, allocations: 4 kB / 0.6836 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/0.1645, allocations: 119.2 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.1645, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005952/0.1651, allocations: 205.5 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.1652, allocations: 59.39 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.1653, allocations: 139.7 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.1653, allocations: 29.97 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.1654, allocations: 99.98 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.1654, allocations: 31.55 kB / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.296e-05/0.1655, allocations: 29.64 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1656, allocations: 330.8 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.1658, allocations: 55.94 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.166, allocations: 55.95 kB / 0.6847 GB, free: 11.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.1663, allocations: 154.5 kB / 0.6848 GB, free: 11.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1664, allocations: 4 kB / 0.6848 GB, free: 11.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004333/0.1668, allocations: 191.2 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.1668, allocations: 33.69 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1668, allocations: 0 / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/0.1669, allocations: 4 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.167, allocations: 15.98 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.167, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.1672, allocations: 19.97 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.1672, allocations: 11.94 kB / 0.6851 GB, free: 11.13 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.523e-05/0.1673, allocations: 122.4 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.1673, allocations: 7.906 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.1673, allocations: 12.7 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.1674, allocations: 4 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1674, allocations: 0 / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1674, allocations: 0 / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1675, allocations: 213.4 kB / 0.6854 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1676, allocations: 0 / 0.6854 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.1677, allocations: 15.98 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1677, allocations: 0 / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1677, allocations: 3.984 kB / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1677, allocations: 0 / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1677, allocations: 7.938 kB / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004081/0.1681, allocations: 184.8 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.034e-05/0.1682, allocations: 84.95 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.1682, allocations: 8 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.1683, allocations: 12.17 kB / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.1684, allocations: 15.95 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1684, allocations: 11.94 kB / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.169e-05/0.1685, allocations: 117.2 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1685, allocations: 0 / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1688, allocations: 35.98 kB / 0.6859 GB, free: 10.2 MB / 494.1 MB 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007461/0.1695, allocations: 0.7294 MB / 0.6866 GB, free: 9.441 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004292/0.1699, allocations: 183.2 kB / 0.6868 GB, free: 9.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.17, allocations: 0 / 0.6868 GB, free: 9.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002038/0.1702, allocations: 63.95 kB / 0.6869 GB, free: 9.188 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.1704, allocations: 15.94 kB / 0.6869 GB, free: 9.172 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.1726, allocations: 1.724 MB / 0.6886 GB, free: 7.363 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.1729, allocations: 0.7004 MB / 0.6892 GB, free: 6.637 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.266e-05/0.1729, allocations: 15.98 kB / 0.6893 GB, free: 6.621 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.925e-05/0.173, allocations: 27.42 kB / 0.6893 GB, free: 6.594 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.173, allocations: 0 / 0.6893 GB, free: 6.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0117/0.1847, allocations: 2.498 MB / 0.6917 GB, free: 4.219 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/0.1849, allocations: 219.4 kB / 0.6919 GB, free: 3.957 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/1.88, allocations: 0 / 0.6919 GB, free: 3.957 MB / 494.1 MB (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/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)