Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="Buildings_8_Buildings_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.001534/0.001534, allocations: 109.4 kB / 15.69 MB, free: 128 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.001811/0.001811, allocations: 189 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 222.5 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.68/1.68, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 69.95 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.261, allocations: 114.6 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.004563/0.2656, allocations: 1.55 MB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001816/0.2674, allocations: 0.6252 MB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.802e-05/0.2676, allocations: 4 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.2678, allocations: 7.875 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.941e-05/0.2679, allocations: 19.78 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.2685, allocations: 91.77 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.2687, allocations: 103.6 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.2689, allocations: 16.22 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.2691, allocations: 47.83 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.2693, allocations: 43.83 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.2693, allocations: 12 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.2695, allocations: 83.86 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.504e-05/0.2696, allocations: 27.89 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.094e-05/0.2697, allocations: 35.8 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.2701, allocations: 139.8 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.2701, allocations: 3.984 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.365e-06/0.2701, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.905e-06/0.2701, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 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.001179/0.2713, allocations: 456.7 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.2714, allocations: 8.031 kB / 0.7868 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.624e-05/0.2715, allocations: 42.73 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.2715, allocations: 8.844 kB / 0.7868 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.2718, allocations: 192.2 kB / 0.787 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2718, allocations: 4.375 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.2719, allocations: 4.375 kB / 0.787 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.2724, allocations: 105.7 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2724, allocations: 4 kB / 0.7871 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.2725, allocations: 7.984 kB / 0.7872 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.2725, allocations: 0 / 0.7872 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.2731, allocations: 87.92 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.2741, allocations: 352.6 kB / 0.7876 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.2747, allocations: 90.52 kB / 0.7877 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.275, allocations: 60.88 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2751, allocations: 4.062 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005765/0.2757, allocations: 119.3 kB / 0.7878 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 3.216e-06/0.2757, allocations: 3.938 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.001186/0.2769, allocations: 209.4 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.277, allocations: 55.41 kB / 0.7881 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.2772, allocations: 151.7 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.2772, allocations: 29.7 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.599e-05/0.2773, allocations: 100.1 kB / 0.7884 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.2774, allocations: 27.61 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.609e-05/0.2775, allocations: 25.7 kB / 0.7884 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2777, allocations: 326.9 kB / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.278, allocations: 63.89 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.2784, allocations: 59.94 kB / 0.7888 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000644/0.279, allocations: 134.5 kB / 0.789 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2791, allocations: 0 / 0.789 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0007148/0.2798, allocations: 203.1 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.353e-05/0.2799, allocations: 33.7 kB / 0.7892 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.2799, allocations: 3.984 kB / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.2799, allocations: 0 / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.2802, allocations: 19.98 kB / 0.7892 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.2802, allocations: 0 / 0.7892 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.2805, allocations: 19.83 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.2805, allocations: 11.92 kB / 0.7892 GB, free: 7.191 MB / 0.6075 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 0.0001411/0.2807, allocations: 121.8 kB / 0.7894 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-05/0.2807, allocations: 7.906 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.2808, allocations: 16.7 kB / 0.7894 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.661e-05/0.2808, allocations: 4 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.2808, allocations: 3.938 kB / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2808, allocations: 3.938 kB / 0.7894 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.2811, allocations: 197.5 kB / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2811, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.2813, allocations: 20.45 kB / 0.7896 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2813, allocations: 0 / 0.7896 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.2813, allocations: 4 kB / 0.7896 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.2813, allocations: 0 / 0.7896 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.2813, allocations: 3.984 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.282, allocations: 188.8 kB / 0.7898 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.2821, allocations: 89 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.2821, allocations: 0 / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.2823, allocations: 15.98 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.2824, allocations: 11.98 kB / 0.7899 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.2825, allocations: 7.969 kB / 0.7899 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001075/0.2826, allocations: 115.2 kB / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2826, allocations: 4 kB / 0.79 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00043/0.283, allocations: 39.94 kB / 0.7901 GB, free: 6.254 MB / 0.6075 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.001163/0.2842, allocations: 0.741 MB / 0.7908 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007162/0.285, allocations: 183.2 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.285, allocations: 0 / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.2853, allocations: 67.94 kB / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.2857, allocations: 8 kB / 0.791 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.2889, allocations: 1.708 MB / 0.7927 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.2893, allocations: 0.6924 MB / 0.7934 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000106/0.2894, allocations: 19.92 kB / 0.7934 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.381e-05/0.2895, allocations: 31.42 kB / 0.7934 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of SimCode: time 7.71e-07/0.2895, allocations: 0 / 0.7934 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01844/0.3079, allocations: 2.737 MB / 0.7961 GB, free: 0 / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/8.001, allocations: 3.078 kB / 0.7961 GB, free: 16 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_SignalRanker.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)