Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IDEAS_IDEAS_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.005577/0.005577, allocations: 102 kB / 15.73 MB, free: 5.551 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.001321/0.001321, allocations: 196.2 kB / 16.67 MB, free: 5.477 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8547/0.8547, allocations: 132.2 MB / 422.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 69.16 kB / 0.5808 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1672, allocations: 80.2 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.SignalRanker): time 0.002698/0.1699, allocations: 1.538 MB / 0.6607 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.171, allocations: 0.5843 MB / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.395e-05/0.1711, allocations: 0 / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1713, allocations: 15.86 kB / 0.6612 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.18e-05/0.1713, allocations: 15.75 kB / 0.6613 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.1717, allocations: 91.75 kB / 0.6613 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.1719, allocations: 111.6 kB / 0.6615 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.172, allocations: 20.2 kB / 0.6615 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.1721, allocations: 39.91 kB / 0.6615 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1722, allocations: 47.81 kB / 0.6616 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.242e-05/0.1722, allocations: 12 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.1724, allocations: 83.86 kB / 0.6616 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.88e-05/0.1725, allocations: 19.92 kB / 0.6617 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.74e-05/0.1725, allocations: 43.72 kB / 0.6617 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.1728, allocations: 143.7 kB / 0.6618 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1728, allocations: 0 / 0.6618 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.1728, allocations: 0 / 0.6618 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1728, allocations: 0 / 0.6618 GB, free: 8.016 MB / 0.4981 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.0008584/0.1737, allocations: 460.6 kB / 0.6623 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1738, allocations: 8.031 kB / 0.6623 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.1738, allocations: 42.73 kB / 0.6623 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.1738, allocations: 8.891 kB / 0.6623 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1741, allocations: 192.2 kB / 0.6625 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1741, allocations: 8.375 kB / 0.6625 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.1741, allocations: 8.375 kB / 0.6625 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.1745, allocations: 101.7 kB / 0.6626 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.1745, allocations: 4 kB / 0.6626 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1745, allocations: 0 / 0.6626 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.1745, allocations: 15.92 kB / 0.6627 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.1749, allocations: 83.92 kB / 0.6627 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006752/0.1755, allocations: 352.7 kB / 0.6631 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.1759, allocations: 90.45 kB / 0.6632 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.1761, allocations: 60.88 kB / 0.6632 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.1761, allocations: 0 / 0.6632 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/0.1764, allocations: 111.3 kB / 0.6633 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.933e-06/0.1764, allocations: 0 / 0.6633 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006671/0.1771, allocations: 213.4 kB / 0.6635 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.1772, allocations: 55.41 kB / 0.6636 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1773, allocations: 139.9 kB / 0.6637 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.1773, allocations: 29.78 kB / 0.6637 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.854e-05/0.1774, allocations: 108 kB / 0.6638 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.1775, allocations: 27.8 kB / 0.6639 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.1775, allocations: 21.72 kB / 0.6639 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1777, allocations: 330.7 kB / 0.6642 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.1779, allocations: 59.95 kB / 0.6643 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.1781, allocations: 58.47 kB / 0.6643 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.1784, allocations: 138.5 kB / 0.6645 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1784, allocations: 0 / 0.6645 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004819/0.1789, allocations: 211.2 kB / 0.6647 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/0.179, allocations: 29.7 kB / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.179, allocations: 0 / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.179, allocations: 3.984 kB / 0.6647 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1792, allocations: 15.98 kB / 0.6647 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1792, allocations: 4 kB / 0.6647 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1793, allocations: 19.88 kB / 0.6647 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.1793, allocations: 15.92 kB / 0.6647 GB, free: 4.793 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.0001043/0.1795, allocations: 118.7 kB / 0.6649 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.1795, allocations: 7.953 kB / 0.6649 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.1795, allocations: 16.7 kB / 0.6649 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.1795, allocations: 7.984 kB / 0.6649 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1796, allocations: 0 / 0.6649 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1796, allocations: 0 / 0.6649 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.1798, allocations: 201.5 kB / 0.6651 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1798, allocations: 3.984 kB / 0.6651 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.1799, allocations: 27.92 kB / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1799, allocations: 0 / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.1799, allocations: 0 / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1799, allocations: 0 / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1799, allocations: 480 / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004401/0.1804, allocations: 184.9 kB / 0.6653 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.1805, allocations: 89.05 kB / 0.6654 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.1805, allocations: 4 kB / 0.6654 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.1806, allocations: 23.92 kB / 0.6654 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.543e-05/0.1807, allocations: 7.984 kB / 0.6654 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1807, allocations: 7.984 kB / 0.6654 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.378e-05/0.1808, allocations: 108.9 kB / 0.6655 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1808, allocations: 0 / 0.6655 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002441/0.181, allocations: 35.94 kB / 0.6655 GB, free: 3.863 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.0008463/0.1819, allocations: 0.7488 MB / 0.6663 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004932/0.1824, allocations: 179.3 kB / 0.6664 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1824, allocations: 4 kB / 0.6665 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.1826, allocations: 63.89 kB / 0.6665 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.1829, allocations: 11.98 kB / 0.6665 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.1853, allocations: 1.716 MB / 0.6682 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1856, allocations: 0.7002 MB / 0.6689 GB, free: 304 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.439e-05/0.1857, allocations: 19.77 kB / 0.6689 GB, free: 284 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.86e-05/0.1858, allocations: 27.7 kB / 0.6689 GB, free: 256 kB / 0.4981 GB Notification: Performance of SimCode: time 3.5e-07/0.1858, allocations: 0 / 0.6689 GB, free: 256 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.2095, allocations: 2.749 MB / 0.6716 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.038, allocations: 0 / 0.6716 GB, free: 13.59 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Controls_Continuous_Examples_SignalRanker.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)