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.006188/0.006188, allocations: 98.48 kB / 15.73 MB, free: 6.047 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.001605/0.001605, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002498/0.002498, allocations: 294.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.075/1.075, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002819/0.002819, allocations: 92.23 kB / 0.6809 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1653, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002907/0.1682, allocations: 1.536 MB / 0.7674 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1693, allocations: 0.577 MB / 0.7679 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.39e-05/0.1694, allocations: 4 kB / 0.7679 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.1695, allocations: 11.86 kB / 0.7679 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.541e-05/0.1696, allocations: 11.88 kB / 0.768 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.17, allocations: 95.7 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.1702, allocations: 99.67 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1703, allocations: 24.22 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1704, allocations: 47.84 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.294e-05/0.1705, allocations: 43.81 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.1705, allocations: 8 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.1707, allocations: 91.84 kB / 0.7684 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.1708, allocations: 15.92 kB / 0.7684 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.1708, allocations: 43.73 kB / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.1711, allocations: 151.7 kB / 0.7686 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1711, allocations: 0 / 0.7686 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1711, allocations: 0 / 0.7686 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.1711, allocations: 0 / 0.7686 GB, free: 6.164 MB / 0.5606 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.00082/0.1719, allocations: 456.6 kB / 0.769 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.172, allocations: 12.03 kB / 0.769 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.985e-05/0.172, allocations: 30.75 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.1721, allocations: 16.83 kB / 0.769 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.1723, allocations: 204.1 kB / 0.7692 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1723, allocations: 4.375 kB / 0.7692 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.1723, allocations: 4.375 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.1727, allocations: 109.7 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1727, allocations: 0 / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.1728, allocations: 4 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/0.1728, allocations: 7.938 kB / 0.7694 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.1731, allocations: 91.84 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.1738, allocations: 340.7 kB / 0.7698 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.1742, allocations: 98.5 kB / 0.7699 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.1744, allocations: 60.81 kB / 0.7699 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.1744, allocations: 0 / 0.7699 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.1747, allocations: 111.3 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.1748, allocations: 4 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.000663/0.1754, allocations: 205.5 kB / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.1755, allocations: 55.41 kB / 0.7703 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.1756, allocations: 148 kB / 0.7704 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.1757, allocations: 25.7 kB / 0.7705 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.334e-05/0.1757, allocations: 104.1 kB / 0.7706 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.1758, allocations: 23.81 kB / 0.7706 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.218e-05/0.1759, allocations: 29.7 kB / 0.7706 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.176, allocations: 326.8 kB / 0.7709 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1762, allocations: 51.95 kB / 0.771 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.1764, allocations: 55.95 kB / 0.771 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.1768, allocations: 158.8 kB / 0.7712 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1768, allocations: 0 / 0.7712 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005326/0.1773, allocations: 199.2 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.1774, allocations: 29.8 kB / 0.7714 GB, free: 3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1774, allocations: 7.938 kB / 0.7714 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1774, allocations: 4 kB / 0.7714 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1776, allocations: 23.91 kB / 0.7714 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1776, allocations: 0 / 0.7714 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.1777, allocations: 15.92 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.1778, allocations: 15.92 kB / 0.7715 GB, free: 2.934 MB / 0.5606 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.0001177/0.1779, allocations: 126.5 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.1779, allocations: 11.95 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.1779, allocations: 8.719 kB / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.178, allocations: 4 kB / 0.7716 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.178, allocations: 0 / 0.7716 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.178, allocations: 3.984 kB / 0.7716 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.1782, allocations: 201.5 kB / 0.7718 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1783, allocations: 0 / 0.7718 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.1784, allocations: 19.97 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1784, allocations: 0 / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.1784, allocations: 0 / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1784, allocations: 8 kB / 0.7718 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1784, allocations: 4 kB / 0.7718 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004552/0.1789, allocations: 180.9 kB / 0.772 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.179, allocations: 85 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.179, allocations: 8 kB / 0.7721 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.1791, allocations: 19.97 kB / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.1792, allocations: 11.98 kB / 0.7721 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.1792, allocations: 4 kB / 0.7721 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.188e-05/0.1793, allocations: 113.4 kB / 0.7722 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1793, allocations: 0 / 0.7722 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002437/0.1796, allocations: 35.98 kB / 0.7723 GB, free: 2.012 MB / 0.5606 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.0009246/0.1805, allocations: 0.7449 MB / 0.773 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004943/0.181, allocations: 183.2 kB / 0.7732 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.181, allocations: 4 kB / 0.7732 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.1812, allocations: 63.95 kB / 0.7732 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.1814, allocations: 18.42 kB / 0.7732 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2809/0.4624, allocations: 1.696 MB / 0.7749 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.4625, allocations: 0.7028 MB / 0.7756 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.771e-05/0.4626, allocations: 13.72 kB / 0.7756 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.57e-05/0.4627, allocations: 29.95 kB / 0.7756 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/0.4627, allocations: 1.156 kB / 0.7756 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.4858, allocations: 2.764 MB / 0.7783 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.522, allocations: 1.625 kB / 0.7783 GB, free: 13.01 MB / 0.5606 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)