Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IDEAS_dev_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.01032/0.01032, allocations: 95.36 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.002289/0.002289, allocations: 197.2 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.521/1.521, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.008/1.008, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.89 kB / 0.5851 GB, free: 3.918 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4855/0.4869, allocations: 80.93 MB / 0.6641 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.SignalRanker): time 0.002473/0.4894, allocations: 1.554 MB / 0.6656 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.4903, allocations: 0.5698 MB / 0.6662 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.4904, allocations: 0 / 0.6662 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.4905, allocations: 13.14 kB / 0.6662 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.257e-05/0.4906, allocations: 14.58 kB / 0.6662 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.491, allocations: 97.98 kB / 0.6663 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000147/0.4912, allocations: 95.94 kB / 0.6664 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.4913, allocations: 22.06 kB / 0.6664 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.4914, allocations: 49.16 kB / 0.6665 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.758e-05/0.4915, allocations: 45.92 kB / 0.6665 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.4915, allocations: 6.781 kB / 0.6665 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.4916, allocations: 96.17 kB / 0.6666 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.4917, allocations: 19.77 kB / 0.6666 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.507e-05/0.4918, allocations: 37.14 kB / 0.6667 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.492, allocations: 141.7 kB / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.492, allocations: 1.438 kB / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.492, allocations: 0 / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.492, allocations: 0 / 0.6668 GB, free: 5.219 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.0007336/0.4927, allocations: 460 kB / 0.6672 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.4928, allocations: 13.62 kB / 0.6673 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.725e-05/0.4928, allocations: 37.5 kB / 0.6673 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.4929, allocations: 13.22 kB / 0.6673 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.493, allocations: 189.5 kB / 0.6675 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.493, allocations: 6.062 kB / 0.6675 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.4931, allocations: 8.562 kB / 0.6675 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.4933, allocations: 103.8 kB / 0.6676 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.4934, allocations: 0 / 0.6676 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.4934, allocations: 4 kB / 0.6676 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.4934, allocations: 16.12 kB / 0.6676 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.4937, allocations: 89.84 kB / 0.6677 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.4943, allocations: 348.4 kB / 0.668 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.4946, allocations: 98.83 kB / 0.6681 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.4948, allocations: 55.75 kB / 0.6682 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.4948, allocations: 0 / 0.6682 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.4951, allocations: 114 kB / 0.6683 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.4951, allocations: 0 / 0.6683 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006285/0.4958, allocations: 203 kB / 0.6685 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.4958, allocations: 57.55 kB / 0.6685 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.4959, allocations: 145.2 kB / 0.6687 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.4959, allocations: 26.95 kB / 0.6687 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.607e-05/0.496, allocations: 99.67 kB / 0.6688 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.496, allocations: 32.81 kB / 0.6688 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.4961, allocations: 24.95 kB / 0.6689 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.4961, allocations: 329.8 kB / 0.6692 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.4963, allocations: 51.98 kB / 0.6692 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.4965, allocations: 61.67 kB / 0.6693 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.4968, allocations: 143.1 kB / 0.6694 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4968, allocations: 1.203 kB / 0.6694 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004249/0.4973, allocations: 207.2 kB / 0.6696 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.4973, allocations: 32.64 kB / 0.6696 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.4973, allocations: 0 / 0.6696 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.4973, allocations: 1.25 kB / 0.6696 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.4975, allocations: 23.91 kB / 0.6697 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.4975, allocations: 1.281 kB / 0.6697 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.4977, allocations: 21.16 kB / 0.6697 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.4977, allocations: 11.03 kB / 0.6697 GB, free: 2.711 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 7.512e-05/0.4978, allocations: 123.3 kB / 0.6698 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.4978, allocations: 13.62 kB / 0.6698 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.4978, allocations: 14.09 kB / 0.6698 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.4978, allocations: 3.625 kB / 0.6699 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4978, allocations: 3.984 kB / 0.6699 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4979, allocations: 1.156 kB / 0.6699 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.498, allocations: 200.2 kB / 0.67 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.498, allocations: 0 / 0.67 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.4981, allocations: 18.78 kB / 0.6701 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4981, allocations: 5.25 kB / 0.6701 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.4981, allocations: 1.156 kB / 0.6701 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4981, allocations: 0 / 0.6701 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4982, allocations: 1.125 kB / 0.6701 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004027/0.4986, allocations: 184.5 kB / 0.6702 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.4986, allocations: 87.78 kB / 0.6703 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.4986, allocations: 10.25 kB / 0.6703 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.4988, allocations: 19.81 kB / 0.6704 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.4988, allocations: 13.55 kB / 0.6704 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.4989, allocations: 1.656 kB / 0.6704 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.497e-05/0.4989, allocations: 113.6 kB / 0.6705 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4989, allocations: 0 / 0.6705 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002488/0.4992, allocations: 36.06 kB / 0.6705 GB, free: 1.973 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.0006337/0.4998, allocations: 0.7339 MB / 0.6712 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004498/0.5003, allocations: 193.1 kB / 0.6714 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5003, allocations: 192 / 0.6714 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.5005, allocations: 66.55 kB / 0.6715 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.5007, allocations: 15.64 kB / 0.6715 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.5028, allocations: 1.713 MB / 0.6732 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.5031, allocations: 0.6987 MB / 0.6739 GB, free: 15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.496e-05/0.5031, allocations: 23.3 kB / 0.6739 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.917e-05/0.5032, allocations: 28.02 kB / 0.6739 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.5032, allocations: 0 / 0.6739 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.5221, allocations: 2.736 MB / 0.6766 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/8.322, allocations: 16.05 kB / 0.6766 GB, free: 13.52 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_Continuous_Examples_SignalRanker.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)