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.005734/0.005734, allocations: 99.8 kB / 15.73 MB, free: 6.039 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.001305/0.001305, allocations: 202.5 kB / 16.68 MB, free: 5.965 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7245/0.7245, allocations: 132.2 MB / 422.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.91 kB / 0.5808 GB, free: 8.105 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3744, allocations: 80.21 MB / 0.6592 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.SignalRanker): time 0.002264/0.3768, allocations: 1.533 MB / 0.6607 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008456/0.3776, allocations: 0.5819 MB / 0.6612 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.862e-05/0.3777, allocations: 1.625 kB / 0.6612 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.3778, allocations: 10.22 kB / 0.6612 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.855e-05/0.3779, allocations: 16.31 kB / 0.6613 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.3782, allocations: 95.38 kB / 0.6613 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.3784, allocations: 97.91 kB / 0.6614 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.993e-05/0.3785, allocations: 23.8 kB / 0.6615 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.3786, allocations: 49.25 kB / 0.6615 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.617e-05/0.3787, allocations: 52.78 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.3787, allocations: 7.5 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.3789, allocations: 88.02 kB / 0.6617 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.692e-05/0.3789, allocations: 21.02 kB / 0.6617 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.379, allocations: 37.25 kB / 0.6617 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.3792, allocations: 140 kB / 0.6618 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3792, allocations: 1.719 kB / 0.6618 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3792, allocations: 0 / 0.6618 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.909e-06/0.3793, allocations: 0.6094 kB / 0.6618 GB, free: 8.09 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.0006918/0.38, allocations: 464 kB / 0.6623 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.38, allocations: 9.656 kB / 0.6623 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.437e-05/0.38, allocations: 37.41 kB / 0.6623 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.3801, allocations: 10.08 kB / 0.6623 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.3802, allocations: 195 kB / 0.6625 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3802, allocations: 6.594 kB / 0.6625 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.3803, allocations: 5.094 kB / 0.6625 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.3806, allocations: 113.4 kB / 0.6626 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3806, allocations: 3.938 kB / 0.6626 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3806, allocations: 1.156 kB / 0.6626 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.3806, allocations: 4.562 kB / 0.6627 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.381, allocations: 87.88 kB / 0.6627 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.3815, allocations: 351.7 kB / 0.6631 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.3818, allocations: 91.47 kB / 0.6632 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.382, allocations: 59.42 kB / 0.6632 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.382, allocations: 5.25 kB / 0.6632 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.3824, allocations: 110.5 kB / 0.6633 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.3824, allocations: 0 / 0.6633 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006337/0.383, allocations: 211.5 kB / 0.6635 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.3831, allocations: 52.53 kB / 0.6636 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.407e-05/0.3831, allocations: 135 kB / 0.6637 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.3832, allocations: 28.36 kB / 0.6637 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.3832, allocations: 104 kB / 0.6638 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.3832, allocations: 31.84 kB / 0.6639 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.3833, allocations: 24.67 kB / 0.6639 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.515e-05/0.3833, allocations: 330 kB / 0.6642 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.3835, allocations: 55.95 kB / 0.6643 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3837, allocations: 61.67 kB / 0.6643 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.384, allocations: 138.9 kB / 0.6644 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.384, allocations: 8.938 kB / 0.6645 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004109/0.3845, allocations: 195.3 kB / 0.6646 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3845, allocations: 35.42 kB / 0.6647 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3845, allocations: 0 / 0.6647 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3845, allocations: 9 kB / 0.6647 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.3847, allocations: 21.03 kB / 0.6647 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3847, allocations: 5.219 kB / 0.6647 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.3848, allocations: 21.5 kB / 0.6647 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.3848, allocations: 10.23 kB / 0.6647 GB, free: 5.758 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 6.9e-05/0.3849, allocations: 120.2 kB / 0.6649 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.3849, allocations: 13.83 kB / 0.6649 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.385, allocations: 9.875 kB / 0.6649 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.385, allocations: 8.078 kB / 0.6649 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.385, allocations: 0 / 0.6649 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.385, allocations: 4 kB / 0.6649 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.3851, allocations: 200.4 kB / 0.6651 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3851, allocations: 0 / 0.6651 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.3853, allocations: 18.97 kB / 0.6651 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3853, allocations: 1.469 kB / 0.6651 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.3853, allocations: 5.406 kB / 0.6651 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3853, allocations: 3.938 kB / 0.6651 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3853, allocations: 0 / 0.6651 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.3857, allocations: 181.9 kB / 0.6653 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.617e-05/0.3857, allocations: 88.62 kB / 0.6654 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.3858, allocations: 3.984 kB / 0.6654 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.3859, allocations: 12.98 kB / 0.6654 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.3859, allocations: 12.67 kB / 0.6654 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.386, allocations: 2.312 kB / 0.6654 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.249e-05/0.386, allocations: 121.6 kB / 0.6655 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.386, allocations: 0 / 0.6655 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002669/0.3863, allocations: 40.66 kB / 0.6656 GB, free: 5.016 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.0006019/0.3869, allocations: 0.7356 MB / 0.6663 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004243/0.3873, allocations: 181 kB / 0.6664 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3873, allocations: 0 / 0.6664 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.3875, allocations: 65.53 kB / 0.6665 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.3878, allocations: 19.7 kB / 0.6665 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.3897, allocations: 1.716 MB / 0.6682 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.3898, allocations: 0.707 MB / 0.6689 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.878e-05/0.3899, allocations: 16.08 kB / 0.6689 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.808e-05/0.3899, allocations: 31.3 kB / 0.6689 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.3899, allocations: 0 / 0.6689 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.4093, allocations: 2.741 MB / 0.6716 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/7.788, allocations: 21.78 kB / 0.6716 GB, free: 0.5781 MB / 0.4981 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)