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.001749/0.001749, allocations: 108 kB / 15.61 MB, free: 152 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.001973/0.001973, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.469/1.469, 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.002617/0.002617, allocations: 294.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.087/1.087, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00277/0.00277, allocations: 101.9 kB / 0.6065 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1511, allocations: 89.14 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002774/0.1539, allocations: 1.548 MB / 0.6951 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009644/0.1549, allocations: 0.5827 MB / 0.6957 GB, free: 2.105 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.596e-05/0.155, allocations: 0 / 0.6957 GB, free: 2.105 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.523e-05/0.1551, allocations: 14.95 kB / 0.6957 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.024e-05/0.1551, allocations: 11.88 kB / 0.6957 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.1555, allocations: 95.75 kB / 0.6958 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.1557, allocations: 95.64 kB / 0.6959 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.1558, allocations: 22.72 kB / 0.6959 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.1559, allocations: 47.84 kB / 0.6959 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.166e-05/0.156, allocations: 55.75 kB / 0.696 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.156, allocations: 8 kB / 0.696 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.1561, allocations: 63.89 kB / 0.6961 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.1562, allocations: 19.92 kB / 0.6961 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.1563, allocations: 35.8 kB / 0.6961 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.1565, allocations: 139.8 kB / 0.6962 GB, free: 1.508 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1565, allocations: 4 kB / 0.6963 GB, free: 1.504 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1565, allocations: 0 / 0.6963 GB, free: 1.504 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1565, allocations: 0 / 0.6963 GB, free: 1.504 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.0008272/0.1573, allocations: 456.7 kB / 0.6967 GB, free: 1.004 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1574, allocations: 8.031 kB / 0.6967 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.1574, allocations: 38.75 kB / 0.6967 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.1575, allocations: 8.844 kB / 0.6967 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.1577, allocations: 194.7 kB / 0.6969 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.1577, allocations: 4.375 kB / 0.6969 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.1577, allocations: 4.375 kB / 0.6969 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.158, allocations: 109.7 kB / 0.697 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1581, allocations: 0 / 0.697 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1581, allocations: 0 / 0.697 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.1581, allocations: 4 kB / 0.697 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.1585, allocations: 91.91 kB / 0.6971 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000695/0.1592, allocations: 352.5 kB / 0.6975 GB, free: 108 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1595, allocations: 94.5 kB / 0.6976 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.1597, allocations: 60.88 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.1598, allocations: 4 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.1601, allocations: 115.2 kB / 0.6977 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.1601, allocations: 0 / 0.6977 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006923/0.1608, allocations: 209.3 kB / 0.6979 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.1609, allocations: 55.41 kB / 0.698 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.161, allocations: 137.8 kB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.161, allocations: 29.7 kB / 0.6981 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.1611, allocations: 100.1 kB / 0.6982 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.1612, allocations: 27.67 kB / 0.6983 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.1612, allocations: 29.7 kB / 0.6983 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1614, allocations: 326.8 kB / 0.6986 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.1616, allocations: 55.95 kB / 0.6987 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.1618, allocations: 55.95 kB / 0.6987 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.1622, allocations: 146.5 kB / 0.6988 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1622, allocations: 0 / 0.6988 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004913/0.1627, allocations: 199.2 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.1627, allocations: 33.7 kB / 0.6991 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1627, allocations: 0 / 0.6991 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1627, allocations: 0 / 0.6991 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.1629, allocations: 27.97 kB / 0.6991 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1629, allocations: 8.062 kB / 0.6991 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.1631, allocations: 23.83 kB / 0.6991 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1631, allocations: 3.938 kB / 0.6991 GB, free: 14.29 MB / 0.4981 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 (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.0001038/0.1632, allocations: 122.4 kB / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.1632, allocations: 11.89 kB / 0.6993 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.1633, allocations: 12.72 kB / 0.6993 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.1633, allocations: 8 kB / 0.6993 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1633, allocations: 0 / 0.6993 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1633, allocations: 4 kB / 0.6993 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.1635, allocations: 197.5 kB / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1635, allocations: 4.469 kB / 0.6995 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.1636, allocations: 11.98 kB / 0.6995 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1637, allocations: 3.984 kB / 0.6995 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1637, allocations: 4 kB / 0.6995 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1637, allocations: 0 / 0.6995 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1637, allocations: 3.938 kB / 0.6995 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004693/0.1642, allocations: 192.8 kB / 0.6997 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.1642, allocations: 88.95 kB / 0.6998 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.1643, allocations: 0 / 0.6998 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.1644, allocations: 15.97 kB / 0.6998 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.1645, allocations: 15.98 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1645, allocations: 0 / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.154e-05/0.1646, allocations: 116.5 kB / 0.6999 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1646, allocations: 0 / 0.6999 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002456/0.1648, allocations: 39.98 kB / 0.6999 GB, free: 13.36 MB / 0.4981 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) * 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.0008496/0.1657, allocations: 0.7372 MB / 0.7007 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000502/0.1662, allocations: 191.2 kB / 0.7009 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1662, allocations: 0 / 0.7009 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.1664, allocations: 63.95 kB / 0.7009 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.1667, allocations: 15.98 kB / 0.7009 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.1693, allocations: 1.69 MB / 0.7026 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1696, allocations: 0.7001 MB / 0.7033 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.692e-05/0.1697, allocations: 15.98 kB / 0.7033 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.419e-05/0.1698, allocations: 35.36 kB / 0.7033 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1698, allocations: 0 / 0.7033 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.1936, allocations: 2.729 MB / 0.706 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/7.95, allocations: 4.688 kB / 0.706 GB, free: 7.133 MB / 0.4981 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 & 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)