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.00155/0.00155, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 191.3 kB / 16.53 MB, free: 6.391 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002497/0.002497, allocations: 283 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 95.89 kB / 0.5953 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1424, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002674/0.1451, allocations: 1.532 MB / 0.6818 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009543/0.146, allocations: 0.5718 MB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.807e-05/0.1461, allocations: 4 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.023e-05/0.1462, allocations: 11.86 kB / 0.6824 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.474e-05/0.1463, allocations: 19.81 kB / 0.6824 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.1466, allocations: 91.77 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.1468, allocations: 99.62 kB / 0.6826 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1469, allocations: 32.48 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.147, allocations: 39.91 kB / 0.6826 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.394e-05/0.1471, allocations: 51.75 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.1471, allocations: 7.938 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.1473, allocations: 59.95 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.453e-05/0.1473, allocations: 15.98 kB / 0.6828 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.288e-05/0.1474, allocations: 39.73 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.1476, allocations: 151.5 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1476, allocations: 0 / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1476, allocations: 0 / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1476, allocations: 4 kB / 0.6829 GB, free: 13.87 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.0007826/0.1484, allocations: 448.8 kB / 0.6834 GB, free: 13.38 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1484, allocations: 12.03 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.1485, allocations: 34.75 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.87e-05/0.1485, allocations: 12.75 kB / 0.6834 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.1487, allocations: 194.1 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.1488, allocations: 4.375 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.1488, allocations: 8.375 kB / 0.6836 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.1491, allocations: 109.7 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1491, allocations: 4 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.1491, allocations: 7.984 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.1492, allocations: 4 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.1495, allocations: 79.92 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.1502, allocations: 352.6 kB / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1505, allocations: 98.44 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.1507, allocations: 60.88 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1507, allocations: 0 / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.1511, allocations: 115.3 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.1511, allocations: 0 / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006719/0.1517, allocations: 205.4 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.1518, allocations: 55.48 kB / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.1519, allocations: 143.7 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.152, allocations: 29.69 kB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.152, allocations: 99.98 kB / 0.6849 GB, free: 11.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.1521, allocations: 35.55 kB / 0.685 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.766e-05/0.1521, allocations: 25.7 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1523, allocations: 330.8 kB / 0.6853 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.1525, allocations: 55.89 kB / 0.6854 GB, free: 11.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.1527, allocations: 56.47 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.1531, allocations: 146.5 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1531, allocations: 0 / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004959/0.1536, allocations: 199.2 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.1536, allocations: 33.69 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1536, allocations: 0 / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1537, allocations: 4 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.1538, allocations: 19.98 kB / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1538, allocations: 0 / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.154, allocations: 15.97 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.154, allocations: 11.94 kB / 0.6858 GB, free: 10.66 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 0.0001014/0.1541, allocations: 122.5 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.1541, allocations: 7.906 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.1542, allocations: 12.7 kB / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.1542, allocations: 8.469 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1542, allocations: 0 / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1542, allocations: 0 / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.1544, allocations: 209.4 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1544, allocations: 0 / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.1545, allocations: 23.86 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1545, allocations: 0 / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1546, allocations: 7.984 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1546, allocations: 0 / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1546, allocations: 4 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.155, allocations: 180.9 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.1551, allocations: 84.95 kB / 0.6865 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.1551, allocations: 8 kB / 0.6865 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.1553, allocations: 11.98 kB / 0.6865 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/0.1553, allocations: 23.91 kB / 0.6865 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.1553, allocations: 4 kB / 0.6865 GB, free: 9.871 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.013e-05/0.1554, allocations: 113.2 kB / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1554, allocations: 0 / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1557, allocations: 35.98 kB / 0.6866 GB, free: 9.727 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.000827/0.1565, allocations: 0.7333 MB / 0.6874 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.157, allocations: 187.3 kB / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.157, allocations: 3.938 kB / 0.6875 GB, free: 8.766 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.1573, allocations: 63.89 kB / 0.6876 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.1575, allocations: 12 kB / 0.6876 GB, free: 8.691 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.1599, allocations: 1.702 MB / 0.6893 GB, free: 6.906 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.1603, allocations: 0.7009 MB / 0.69 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.383e-05/0.1604, allocations: 19.97 kB / 0.69 GB, free: 6.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.026e-05/0.1604, allocations: 27.42 kB / 0.69 GB, free: 6.137 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1604, allocations: 0 / 0.69 GB, free: 6.137 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.1838, allocations: 2.729 MB / 0.6927 GB, free: 3.504 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.561/7.745, allocations: 6.938 kB / 0.6927 GB, free: 3.5 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)