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.008587/0.008587, allocations: 96.11 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.001595/0.001595, allocations: 202 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.562/1.562, 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/IDEAS 3.0.0-master/package.mo): time 1.033/1.033, allocations: 135.6 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 0.5857 GB, free: 3.266 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5098/0.5118, allocations: 81.02 MB / 0.6648 GB, free: 7 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.SignalRanker): time 0.002173/0.514, allocations: 1.538 MB / 0.6663 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008229/0.5148, allocations: 0.573 MB / 0.6669 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.628e-05/0.5149, allocations: 1.438 kB / 0.6669 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.515, allocations: 15.8 kB / 0.6669 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.672e-05/0.5151, allocations: 14.62 kB / 0.6669 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.5155, allocations: 90.42 kB / 0.667 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.5156, allocations: 112.3 kB / 0.6671 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.5157, allocations: 13.83 kB / 0.6671 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.5158, allocations: 44.22 kB / 0.6672 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.299e-05/0.5159, allocations: 54.16 kB / 0.6672 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.5159, allocations: 6.312 kB / 0.6672 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.5161, allocations: 93.22 kB / 0.6673 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.5161, allocations: 16.33 kB / 0.6673 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.244e-05/0.5162, allocations: 36.64 kB / 0.6674 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.5164, allocations: 146.2 kB / 0.6675 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5164, allocations: 4 kB / 0.6675 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5164, allocations: 0 / 0.6675 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.5164, allocations: 1.062 kB / 0.6675 GB, free: 4.914 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.0007065/0.5171, allocations: 456.4 kB / 0.668 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.5172, allocations: 9.062 kB / 0.668 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.634e-05/0.5172, allocations: 37.69 kB / 0.668 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.5173, allocations: 13.81 kB / 0.668 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.5174, allocations: 188.2 kB / 0.6682 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.5174, allocations: 7.281 kB / 0.6682 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.5174, allocations: 8.188 kB / 0.6682 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.5177, allocations: 114.9 kB / 0.6683 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.5177, allocations: 0 / 0.6683 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.5177, allocations: 1.25 kB / 0.6683 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.5178, allocations: 7.031 kB / 0.6683 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.5181, allocations: 86.41 kB / 0.6684 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.5186, allocations: 349.6 kB / 0.6687 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.5189, allocations: 88.84 kB / 0.6688 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.5191, allocations: 60.12 kB / 0.6689 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.5192, allocations: 1.281 kB / 0.6689 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.5195, allocations: 112.9 kB / 0.669 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.5195, allocations: 0 / 0.669 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006417/0.5201, allocations: 216.1 kB / 0.6692 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.5202, allocations: 56.83 kB / 0.6692 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.237e-05/0.5202, allocations: 136.5 kB / 0.6694 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.5203, allocations: 30.95 kB / 0.6694 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.5203, allocations: 104.1 kB / 0.6695 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.5203, allocations: 28.81 kB / 0.6695 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.5204, allocations: 29.08 kB / 0.6696 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.5205, allocations: 325.2 kB / 0.6699 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.5207, allocations: 61.36 kB / 0.6699 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.5208, allocations: 56.7 kB / 0.67 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.5212, allocations: 143.1 kB / 0.6701 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5212, allocations: 5.281 kB / 0.6701 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004323/0.5216, allocations: 203.9 kB / 0.6703 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.5217, allocations: 31.95 kB / 0.6704 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5217, allocations: 4 kB / 0.6704 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.5217, allocations: 0 / 0.6704 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.5219, allocations: 21.59 kB / 0.6704 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.5219, allocations: 0 / 0.6704 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.522, allocations: 26 kB / 0.6704 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.522, allocations: 6.531 kB / 0.6704 GB, free: 2.41 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.907e-05/0.5221, allocations: 123.4 kB / 0.6705 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.5221, allocations: 9.203 kB / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.5222, allocations: 11.16 kB / 0.6705 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.5222, allocations: 2.375 kB / 0.6705 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5222, allocations: 5.422 kB / 0.6706 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5222, allocations: 0 / 0.6706 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.5223, allocations: 196.2 kB / 0.6707 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5223, allocations: 4 kB / 0.6707 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.5224, allocations: 27.03 kB / 0.6708 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5224, allocations: 5.391 kB / 0.6708 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.5225, allocations: 0 / 0.6708 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5225, allocations: 2 kB / 0.6708 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5225, allocations: 0 / 0.6708 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.5229, allocations: 190.1 kB / 0.671 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.5229, allocations: 87.75 kB / 0.671 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.523, allocations: 3.938 kB / 0.671 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.5231, allocations: 21.81 kB / 0.6711 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.5232, allocations: 8.547 kB / 0.6711 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.5232, allocations: 6.875 kB / 0.6711 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.21e-05/0.5232, allocations: 113.1 kB / 0.6712 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5232, allocations: 4 kB / 0.6712 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002619/0.5235, allocations: 35.78 kB / 0.6712 GB, free: 1.668 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.0006571/0.5242, allocations: 0.7247 MB / 0.6719 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004543/0.5246, allocations: 185.3 kB / 0.6721 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5246, allocations: 0 / 0.6721 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.5248, allocations: 69.47 kB / 0.6722 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.5251, allocations: 12.7 kB / 0.6722 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.5275, allocations: 1.714 MB / 0.6739 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.5279, allocations: 0.7077 MB / 0.6746 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.145e-05/0.5279, allocations: 14.73 kB / 0.6746 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.591e-05/0.528, allocations: 27.7 kB / 0.6746 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of SimCode: time 2.81e-07/0.528, allocations: 3.938 kB / 0.6746 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.5519, allocations: 2.751 MB / 0.6773 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.439, allocations: 15.03 kB / 0.6773 GB, free: 13.21 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)