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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.714/0.714, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 186.1 kB / 187.3 MB, free: 11.91 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 221.3 MB / 441.4 MB, free: 4.594 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000874/0.000874, allocations: 99.8 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001721/0.001721, allocations: 276.4 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.365e-05, allocations: 11.97 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4018, allocations: 82.75 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.5146, allocations: 110.2 MB / 0.8719 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.5148, allocations: 71.95 kB / 0.872 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01059/0.5254, allocations: 3.548 MB / 0.8755 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.284e-06/0.5255, allocations: 0 / 0.8755 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.686e-05/0.5255, allocations: 4 kB / 0.8755 GB, free: 10.77 MB / 0.5417 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.0007266/0.5263, allocations: 436 kB / 0.8759 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/0.5263, allocations: 8.031 kB / 0.8759 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.5264, allocations: 38.56 kB / 0.8759 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.5264, allocations: 7.906 kB / 0.8759 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.5267, allocations: 202.7 kB / 0.8761 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.5267, allocations: 4 kB / 0.8761 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.5268, allocations: 8 kB / 0.8762 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.527, allocations: 77.66 kB / 0.8762 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.527, allocations: 0 / 0.8762 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.527, allocations: 0 / 0.8762 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.5271, allocations: 0 / 0.8762 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.5272, allocations: 43.98 kB / 0.8763 GB, free: 9.859 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006446/0.5278, allocations: 372.6 kB / 0.8766 GB, free: 9.445 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.528, allocations: 58.55 kB / 0.8767 GB, free: 9.379 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.462e-05/0.528, allocations: 36.91 kB / 0.8767 GB, free: 9.34 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.5281, allocations: 0 / 0.8767 GB, free: 9.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.5282, allocations: 91.31 kB / 0.8768 GB, free: 9.238 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.5282, allocations: 0 / 0.8768 GB, free: 9.238 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0002563/0.5285, allocations: 113.5 kB / 0.8769 GB, free: 9.121 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.5285, allocations: 51.41 kB / 0.877 GB, free: 9.059 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.5287, allocations: 135.8 kB / 0.8771 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.5287, allocations: 29.7 kB / 0.8771 GB, free: 8.887 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.5288, allocations: 104 kB / 0.8772 GB, free: 8.781 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.5288, allocations: 23.62 kB / 0.8772 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.5288, allocations: 4 kB / 0.8772 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.5289, allocations: 322.8 kB / 0.8775 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.059e-05/0.529, allocations: 32.09 kB / 0.8776 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.026e-05/0.5291, allocations: 35.94 kB / 0.8776 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.653e-05/0.5292, allocations: 61.69 kB / 0.8777 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5292, allocations: 3.984 kB / 0.8777 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002175/0.5294, allocations: 143.3 kB / 0.8778 GB, free: 8.141 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.5295, allocations: 37.64 kB / 0.8778 GB, free: 8.098 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.5295, allocations: 0 / 0.8778 GB, free: 8.098 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.5295, allocations: 7.953 kB / 0.8779 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.5297, allocations: 23.97 kB / 0.8779 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.5297, allocations: 4 kB / 0.8779 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.5298, allocations: 19.92 kB / 0.8779 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.5298, allocations: 7.984 kB / 0.8779 GB, free: 8.035 MB / 0.5417 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.704e-05/0.5299, allocations: 113 kB / 0.878 GB, free: 7.918 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.53, allocations: 7.906 kB / 0.878 GB, free: 7.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.5302, allocations: 130.2 kB / 0.8781 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.5302, allocations: 3.953 kB / 0.8782 GB, free: 7.773 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5302, allocations: 3.938 kB / 0.8782 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.5302, allocations: 0 / 0.8782 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.5304, allocations: 201.6 kB / 0.8783 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5304, allocations: 0 / 0.8783 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.5305, allocations: 27.97 kB / 0.8784 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.5306, allocations: 4 kB / 0.8784 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.5306, allocations: 3.984 kB / 0.8784 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.5306, allocations: 4 kB / 0.8784 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5306, allocations: 3.953 kB / 0.8784 GB, free: 7.48 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001991/0.5308, allocations: 141.6 kB / 0.8785 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.5308, allocations: 85.02 kB / 0.8786 GB, free: 7.223 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.5309, allocations: 4 kB / 0.8786 GB, free: 7.219 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.531, allocations: 15.98 kB / 0.8786 GB, free: 7.203 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.5311, allocations: 19.97 kB / 0.8786 GB, free: 7.184 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.5311, allocations: 7.953 kB / 0.8787 GB, free: 7.176 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.74e-05/0.5312, allocations: 104.3 kB / 0.8788 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5312, allocations: 0 / 0.8788 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002199/0.5314, allocations: 39.94 kB / 0.8788 GB, free: 7.035 MB / 0.5417 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005249/0.5319, allocations: 0.6943 MB / 0.8795 GB, free: 6.312 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002383/0.5322, allocations: 169 kB / 0.8796 GB, free: 6.129 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5322, allocations: 0 / 0.8796 GB, free: 6.129 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.5323, allocations: 75.66 kB / 0.8797 GB, free: 6.051 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.5325, allocations: 21.31 kB / 0.8797 GB, free: 6.031 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004908/0.533, allocations: 196.9 kB / 0.8799 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.5332, allocations: 0.7004 MB / 0.8806 GB, free: 5.078 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.825e-05/0.5333, allocations: 15.77 kB / 0.8806 GB, free: 5.062 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.5334, allocations: 27.42 kB / 0.8806 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of SimCode: time 3.31e-07/0.5334, allocations: 4 kB / 0.8806 GB, free: 5.031 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.5462, allocations: 2.468 MB / 0.883 GB, free: 2.723 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.5464, allocations: 168.1 kB / 0.8832 GB, free: 2.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.478/2.025, allocations: 4.062 kB / 0.8832 GB, free: 2.496 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_SignalRanker.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)