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.001119/0.001119, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7391/0.7391, allocations: 132.2 MB / 422.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.47 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3295, allocations: 80.21 MB / 0.5802 GB, free: 4.445 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.SignalRanker): time 0.002281/0.3318, allocations: 1.536 MB / 0.5817 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007748/0.3326, allocations: 0.5825 MB / 0.5823 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.957e-05/0.3327, allocations: 4.938 kB / 0.5823 GB, free: 2.965 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.447e-05/0.3328, allocations: 9.859 kB / 0.5823 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-05/0.3328, allocations: 16.94 kB / 0.5823 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.3332, allocations: 94.72 kB / 0.5824 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.3333, allocations: 100.2 kB / 0.5825 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.67e-05/0.3334, allocations: 20.7 kB / 0.5825 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.839e-05/0.3335, allocations: 48.47 kB / 0.5825 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.146e-05/0.3336, allocations: 45.77 kB / 0.5826 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.3336, allocations: 6.969 kB / 0.5826 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.3337, allocations: 59.45 kB / 0.5826 GB, free: 2.785 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.3338, allocations: 21.09 kB / 0.5827 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.829e-05/0.3338, allocations: 45.83 kB / 0.5827 GB, free: 2.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.334, allocations: 137.7 kB / 0.5828 GB, free: 2.695 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.334, allocations: 0 / 0.5828 GB, free: 2.695 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3341, allocations: 0 / 0.5828 GB, free: 2.695 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.3341, allocations: 1.344 kB / 0.5828 GB, free: 2.695 MB / 430.1 MB 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.0006517/0.3347, allocations: 451.2 kB / 0.5833 GB, free: 2.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.3348, allocations: 14.17 kB / 0.5833 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.618e-05/0.3348, allocations: 37.66 kB / 0.5833 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.3348, allocations: 14.19 kB / 0.5833 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.335, allocations: 191.9 kB / 0.5835 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.335, allocations: 3.094 kB / 0.5835 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.335, allocations: 8.984 kB / 0.5835 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.3353, allocations: 109.8 kB / 0.5836 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3353, allocations: 0 / 0.5836 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3353, allocations: 5.422 kB / 0.5836 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.3353, allocations: 8.172 kB / 0.5836 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/0.3357, allocations: 91.2 kB / 0.5837 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005359/0.3362, allocations: 344.8 kB / 0.5841 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.3365, allocations: 95.42 kB / 0.5842 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.3367, allocations: 56.2 kB / 0.5842 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.3367, allocations: 4 kB / 0.5842 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.337, allocations: 121.9 kB / 0.5843 GB, free: 1.488 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.337, allocations: 1 kB / 0.5843 GB, free: 1.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006449/0.3377, allocations: 195.9 kB / 0.5845 GB, free: 1.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.414e-05/0.3377, allocations: 61.33 kB / 0.5846 GB, free: 1.359 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.317e-05/0.3378, allocations: 143.5 kB / 0.5847 GB, free: 1.246 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3378, allocations: 30.62 kB / 0.5847 GB, free: 1.211 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/0.3379, allocations: 99.28 kB / 0.5848 GB, free: 1.117 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.3379, allocations: 26.33 kB / 0.5849 GB, free: 1.098 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.338, allocations: 28.86 kB / 0.5849 GB, free: 1.074 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.941e-05/0.338, allocations: 324.9 kB / 0.5852 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.3382, allocations: 57.17 kB / 0.5853 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3384, allocations: 64.69 kB / 0.5853 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.3387, allocations: 143.7 kB / 0.5855 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3387, allocations: 0 / 0.5855 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004392/0.3392, allocations: 199.2 kB / 0.5856 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.3392, allocations: 32.89 kB / 0.5857 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3392, allocations: 0.7812 kB / 0.5857 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.3392, allocations: 1.562 kB / 0.5857 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.3394, allocations: 17.97 kB / 0.5857 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3394, allocations: 1.797 kB / 0.5857 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.3395, allocations: 21.97 kB / 0.5857 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.3396, allocations: 7.75 kB / 0.5857 GB, free: 0.5195 MB / 430.1 MB 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.489e-05/0.3396, allocations: 123.1 kB / 0.5858 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.3397, allocations: 12.16 kB / 0.5859 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.3397, allocations: 12.52 kB / 0.5859 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.3397, allocations: 13.12 kB / 0.5859 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3397, allocations: 1.094 kB / 0.5859 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3397, allocations: 0.6562 kB / 0.5859 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.3399, allocations: 202.4 kB / 0.5861 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3399, allocations: 0 / 0.5861 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.34, allocations: 25.72 kB / 0.5861 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.34, allocations: 0 / 0.5861 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.34, allocations: 3.266 kB / 0.5861 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.34, allocations: 0 / 0.5861 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.34, allocations: 0 / 0.5861 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/0.3404, allocations: 185.1 kB / 0.5863 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.3405, allocations: 93.16 kB / 0.5864 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.3405, allocations: 2.281 kB / 0.5864 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.3407, allocations: 13.45 kB / 0.5864 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.3407, allocations: 14.16 kB / 0.5864 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.3408, allocations: 3.641 kB / 0.5864 GB, free: 15.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.009e-05/0.3408, allocations: 114 kB / 0.5865 GB, free: 15.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3408, allocations: 1.375 kB / 0.5865 GB, free: 15.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.3411, allocations: 40 kB / 0.5865 GB, free: 15.84 MB / 446.1 MB 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.000764/0.3419, allocations: 0.7305 MB / 0.5873 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.3423, allocations: 193.9 kB / 0.5874 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3424, allocations: 0 / 0.5874 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002063/0.3426, allocations: 62.52 kB / 0.5875 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.3428, allocations: 14.23 kB / 0.5875 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.3451, allocations: 1.701 MB / 0.5892 GB, free: 13.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3453, allocations: 0.7022 MB / 0.5899 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.111e-05/0.3454, allocations: 15.28 kB / 0.5899 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.756e-05/0.3455, allocations: 27.39 kB / 0.5899 GB, free: 13.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3455, allocations: 0 / 0.5899 GB, free: 13.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.3644, allocations: 2.696 MB / 0.5925 GB, free: 12.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.649, allocations: 9.766 kB / 0.5925 GB, free: 12.64 MB / 446.1 MB (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)