Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="IBPSA_latest_IBPSA_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.001234/0.001234, allocations: 108.1 kB / 16.27 MB, free: 5.934 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.001132/0.001132, allocations: 192.5 kB / 17.2 MB, free: 5.57 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.228/1.228, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7158/0.7158, allocations: 122.9 MB / 413.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.89 kB / 0.4912 GB, free: 7.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2789, allocations: 77.93 MB / 0.5673 GB, free: 32.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.SignalRanker): time 0.002246/0.2812, allocations: 1.536 MB / 0.5688 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007484/0.282, allocations: 0.5791 MB / 0.5693 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.409e-05/0.282, allocations: 1.062 kB / 0.5693 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.012e-05/0.2821, allocations: 10.08 kB / 0.5694 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.617e-05/0.2822, allocations: 16.16 kB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.2825, allocations: 87.33 kB / 0.5695 GB, free: 31.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.2826, allocations: 104.7 kB / 0.5696 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.293e-05/0.2827, allocations: 19.02 kB / 0.5696 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.36e-05/0.2828, allocations: 49.61 kB / 0.5696 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.675e-05/0.2829, allocations: 45.5 kB / 0.5697 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.283, allocations: 6.781 kB / 0.5697 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2831, allocations: 66.05 kB / 0.5697 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.276e-05/0.2831, allocations: 17.23 kB / 0.5697 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.022e-05/0.2832, allocations: 37.58 kB / 0.5698 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.2834, allocations: 140.6 kB / 0.5699 GB, free: 30.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2834, allocations: 2.812 kB / 0.5699 GB, free: 30.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2834, allocations: 0 / 0.5699 GB, free: 30.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2834, allocations: 0 / 0.5699 GB, free: 30.97 MB / 446.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.0006749/0.2841, allocations: 449.5 kB / 0.5703 GB, free: 30.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2841, allocations: 10.38 kB / 0.5704 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.118e-05/0.2842, allocations: 40.31 kB / 0.5704 GB, free: 30.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.2842, allocations: 8.812 kB / 0.5704 GB, free: 30.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2843, allocations: 205.1 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.2844, allocations: 3.031 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.2844, allocations: 8.797 kB / 0.5706 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.2847, allocations: 107.1 kB / 0.5707 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.2847, allocations: 0.5 kB / 0.5707 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.2847, allocations: 6.062 kB / 0.5707 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.2847, allocations: 4.234 kB / 0.5707 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.2851, allocations: 85.33 kB / 0.5708 GB, free: 30.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005859/0.2857, allocations: 349.7 kB / 0.5711 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.286, allocations: 90.61 kB / 0.5712 GB, free: 29.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.2862, allocations: 64.05 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.2862, allocations: 1.094 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.2865, allocations: 115.7 kB / 0.5714 GB, free: 29.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.674e-06/0.2865, allocations: 0 / 0.5714 GB, free: 29.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006242/0.2871, allocations: 212.2 kB / 0.5716 GB, free: 29.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.2872, allocations: 58.19 kB / 0.5717 GB, free: 29.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.868e-05/0.2873, allocations: 137.8 kB / 0.5718 GB, free: 29.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.2873, allocations: 31.33 kB / 0.5718 GB, free: 29.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.038e-05/0.2873, allocations: 99.5 kB / 0.5719 GB, free: 29.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.2874, allocations: 26.39 kB / 0.5719 GB, free: 29.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.2874, allocations: 26.52 kB / 0.572 GB, free: 29.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.413e-05/0.2875, allocations: 329.9 kB / 0.5723 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.2877, allocations: 52.84 kB / 0.5723 GB, free: 29.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2878, allocations: 59.41 kB / 0.5724 GB, free: 29.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.2882, allocations: 144.6 kB / 0.5725 GB, free: 28.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2882, allocations: 5.531 kB / 0.5725 GB, free: 28.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004214/0.2886, allocations: 198 kB / 0.5727 GB, free: 28.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2887, allocations: 33.84 kB / 0.5727 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2887, allocations: 1.625 kB / 0.5727 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2887, allocations: 5.625 kB / 0.5728 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.2888, allocations: 18.61 kB / 0.5728 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2888, allocations: 1.688 kB / 0.5728 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.289, allocations: 20.2 kB / 0.5728 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.289, allocations: 12 kB / 0.5728 GB, free: 28.82 MB / 446.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.543e-05/0.2891, allocations: 119.3 kB / 0.5729 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.2891, allocations: 11.3 kB / 0.5729 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.2891, allocations: 12.66 kB / 0.5729 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.2892, allocations: 3.188 kB / 0.5729 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2892, allocations: 0.875 kB / 0.5729 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2892, allocations: 2.578 kB / 0.5729 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.2893, allocations: 208.5 kB / 0.5731 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2893, allocations: 0 / 0.5731 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.2894, allocations: 16.94 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2894, allocations: 0 / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.2895, allocations: 7.75 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2895, allocations: 3.938 kB / 0.5732 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2895, allocations: 1.312 kB / 0.5732 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.2899, allocations: 183.3 kB / 0.5734 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/0.2899, allocations: 84.78 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.2899, allocations: 5.922 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.2901, allocations: 14.56 kB / 0.5735 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.2902, allocations: 16.02 kB / 0.5735 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.2902, allocations: 3.016 kB / 0.5735 GB, free: 28.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.145e-05/0.2902, allocations: 112.7 kB / 0.5736 GB, free: 28.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2902, allocations: 0 / 0.5736 GB, free: 28.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.2905, allocations: 40.67 kB / 0.5736 GB, free: 28.17 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.0006054/0.2911, allocations: 0.7334 MB / 0.5743 GB, free: 27.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004349/0.2915, allocations: 196.8 kB / 0.5745 GB, free: 27.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2916, allocations: 0 / 0.5745 GB, free: 27.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.2918, allocations: 59.3 kB / 0.5746 GB, free: 27.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.292, allocations: 11.52 kB / 0.5746 GB, free: 27.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.2939, allocations: 1.701 MB / 0.5762 GB, free: 26.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.294, allocations: 0.7075 MB / 0.5769 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.373e-05/0.2941, allocations: 18.64 kB / 0.577 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.2941, allocations: 27.45 kB / 0.577 GB, free: 25.41 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2941, allocations: 0 / 0.577 GB, free: 25.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.3108, allocations: 2.717 MB / 0.5796 GB, free: 24.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/7.131, allocations: 16.08 kB / 0.5797 GB, free: 24.82 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Controls_Continuous_Examples_SignalRanker.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)