Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.SignalRanker,fileNamePrefix="BuildingSystems_BuildingSystems_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.004467/0.004467, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001279/0.001279, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002478/0.002478, allocations: 286.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.066/1.066, allocations: 178.6 MB / 0.5074 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 106 kB / 0.6943 GB, free: 3.652 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4081, allocations: 89.14 MB / 0.7813 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002635/0.4108, allocations: 1.557 MB / 0.7828 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.4118, allocations: 0.5715 MB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.833e-05/0.4119, allocations: 1.438 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.682e-05/0.412, allocations: 11.41 kB / 0.7834 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.899e-05/0.412, allocations: 11.2 kB / 0.7834 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.4124, allocations: 91.53 kB / 0.7835 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.4126, allocations: 100.6 kB / 0.7836 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.4127, allocations: 25 kB / 0.7836 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.4128, allocations: 44.94 kB / 0.7837 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.696e-05/0.4129, allocations: 50.02 kB / 0.7837 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.4129, allocations: 6.406 kB / 0.7837 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.4131, allocations: 98.89 kB / 0.7838 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.4132, allocations: 21.64 kB / 0.7838 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.64e-05/0.4132, allocations: 42.41 kB / 0.7839 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.4135, allocations: 136.1 kB / 0.784 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4135, allocations: 0 / 0.784 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.4135, allocations: 5.062 kB / 0.784 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.4135, allocations: 0 / 0.784 GB, free: 12.1 MB / 0.5606 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.0008288/0.4143, allocations: 459.8 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.4144, allocations: 9.656 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.4144, allocations: 38.83 kB / 0.7845 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.4144, allocations: 9.547 kB / 0.7845 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.4147, allocations: 196.5 kB / 0.7847 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.4147, allocations: 3.312 kB / 0.7847 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.4147, allocations: 5.359 kB / 0.7847 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.415, allocations: 104.2 kB / 0.7848 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.415, allocations: 1.5 kB / 0.7848 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.4151, allocations: 4.656 kB / 0.7848 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.4151, allocations: 4.672 kB / 0.7848 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.4154, allocations: 91.16 kB / 0.7849 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006469/0.4161, allocations: 348 kB / 0.7852 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.4164, allocations: 91.44 kB / 0.7853 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.4167, allocations: 64.06 kB / 0.7854 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.4167, allocations: 1.281 kB / 0.7854 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003297/0.417, allocations: 116.9 kB / 0.7855 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.417, allocations: 1.125 kB / 0.7855 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0006855/0.4177, allocations: 204.1 kB / 0.7857 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.4178, allocations: 65.45 kB / 0.7857 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.4179, allocations: 144.7 kB / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.4179, allocations: 25.7 kB / 0.7859 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.487e-05/0.418, allocations: 100.7 kB / 0.786 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.4181, allocations: 32.22 kB / 0.786 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.144e-05/0.4181, allocations: 30.53 kB / 0.7861 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.4183, allocations: 324.8 kB / 0.7864 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.4185, allocations: 60.7 kB / 0.7864 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.4187, allocations: 53.45 kB / 0.7865 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.4191, allocations: 146.4 kB / 0.7866 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4191, allocations: 0 / 0.7866 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004976/0.4196, allocations: 200.1 kB / 0.7868 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.4197, allocations: 32.55 kB / 0.7868 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4197, allocations: 0.5625 kB / 0.7868 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.4197, allocations: 1.25 kB / 0.7868 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.4198, allocations: 22.36 kB / 0.7869 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.4199, allocations: 9.719 kB / 0.7869 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.42, allocations: 18.81 kB / 0.7869 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.42, allocations: 10.92 kB / 0.7869 GB, free: 9.906 MB / 0.5606 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.0001066/0.4201, allocations: 117.2 kB / 0.787 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.4202, allocations: 9.453 kB / 0.787 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.4202, allocations: 16.39 kB / 0.787 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.4202, allocations: 5 kB / 0.787 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.4202, allocations: 0 / 0.787 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4203, allocations: 0.6094 kB / 0.787 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.4205, allocations: 202.8 kB / 0.7872 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4205, allocations: 0 / 0.7872 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.4206, allocations: 21.02 kB / 0.7873 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4206, allocations: 1 kB / 0.7873 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.4206, allocations: 2.422 kB / 0.7873 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4206, allocations: 0 / 0.7873 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4206, allocations: 1.672 kB / 0.7873 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.4211, allocations: 188.6 kB / 0.7874 GB, free: 9.457 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.4212, allocations: 84.31 kB / 0.7875 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.4212, allocations: 2.203 kB / 0.7875 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.4214, allocations: 14.78 kB / 0.7875 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.4214, allocations: 17.8 kB / 0.7875 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.4214, allocations: 2.703 kB / 0.7876 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.61e-05/0.4215, allocations: 108.4 kB / 0.7877 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4215, allocations: 1.5 kB / 0.7877 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002556/0.4218, allocations: 40.69 kB / 0.7877 GB, free: 9.258 MB / 0.5606 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.0008442/0.4227, allocations: 0.7362 MB / 0.7884 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005043/0.4232, allocations: 187.1 kB / 0.7886 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4232, allocations: 0 / 0.7886 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.4234, allocations: 62.77 kB / 0.7887 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.4236, allocations: 13 kB / 0.7887 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.4262, allocations: 1.719 MB / 0.7903 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.4265, allocations: 0.6975 MB / 0.791 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.286e-05/0.4266, allocations: 15.78 kB / 0.791 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.324e-05/0.4267, allocations: 31.55 kB / 0.7911 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.4267, allocations: 0 / 0.7911 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.4505, allocations: 2.772 MB / 0.7938 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/8.079, allocations: 8.984 kB / 0.7938 GB, free: 6.016 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)