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.8544/0.8544, allocations: 143.3 MB / 158.3 MB, free: 5.785 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001473, allocations: 177.1 kB / 191.5 MB, free: 5.766 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.51/1.51, allocations: 223.2 MB / 447.7 MB, free: 4.84 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.0009245/0.0009244, allocations: 88.38 kB / 0.5187 GB, free: 1.191 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00178/0.001781, allocations: 268.2 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.0004471, allocations: 15.47 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1867, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5827/0.7695, allocations: 110.2 MB / 0.8814 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.7698, allocations: 76.38 kB / 0.8815 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.0102/0.78, allocations: 3.553 MB / 0.885 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.653e-06/0.78, allocations: 0 / 0.885 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.7801, allocations: 2.812 kB / 0.885 GB, free: 31.32 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.0006777/0.7807, allocations: 456.7 kB / 0.8854 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.7808, allocations: 8.906 kB / 0.8854 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.7808, allocations: 46.78 kB / 0.8855 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.7809, allocations: 9.562 kB / 0.8855 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.7811, allocations: 191.9 kB / 0.8856 GB, free: 30.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.7811, allocations: 7.109 kB / 0.8857 GB, free: 30.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.7811, allocations: 5.25 kB / 0.8857 GB, free: 30.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.7815, allocations: 111 kB / 0.8858 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.7815, allocations: 4.562 kB / 0.8858 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.7816, allocations: 6.562 kB / 0.8858 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.7816, allocations: 0 / 0.8858 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.7819, allocations: 108.6 kB / 0.8859 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006806/0.7826, allocations: 368.8 kB / 0.8862 GB, free: 30.31 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.783, allocations: 108.7 kB / 0.8863 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.783, allocations: 5.953 kB / 0.8863 GB, free: 30.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.7833, allocations: 118.1 kB / 0.8865 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.7833, allocations: 0 / 0.8865 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0007542/0.7841, allocations: 319.6 kB / 0.8868 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.7842, allocations: 53.78 kB / 0.8868 GB, free: 30.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.7843, allocations: 127 kB / 0.8869 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.7843, allocations: 28.48 kB / 0.887 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.7843, allocations: 101.9 kB / 0.8871 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.7844, allocations: 28.69 kB / 0.8871 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.7844, allocations: 0 / 0.8871 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.275e-05/0.7845, allocations: 325.3 kB / 0.8874 GB, free: 29.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.7847, allocations: 62.62 kB / 0.8875 GB, free: 29.49 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.7848, allocations: 69.25 kB / 0.8875 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.785, allocations: 93.45 kB / 0.8876 GB, free: 29.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7851, allocations: 0 / 0.8876 GB, free: 29.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004875/0.7856, allocations: 217.1 kB / 0.8878 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.7856, allocations: 34.23 kB / 0.8878 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.7856, allocations: 0 / 0.8878 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.7856, allocations: 4.562 kB / 0.8879 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.7858, allocations: 27.34 kB / 0.8879 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.7858, allocations: 480 / 0.8879 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.786, allocations: 25.08 kB / 0.8879 GB, free: 29.33 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.786, allocations: 6.688 kB / 0.8879 GB, free: 29.33 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 () * Number of clocked 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 9.36e-05/0.7861, allocations: 132.9 kB / 0.888 GB, free: 29.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.7861, allocations: 7.422 kB / 0.888 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005053/0.7866, allocations: 189.7 kB / 0.8882 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.7866, allocations: 0 / 0.8882 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.7867, allocations: 4.469 kB / 0.8882 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.7867, allocations: 3.781 kB / 0.8882 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.7868, allocations: 204.5 kB / 0.8884 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.7869, allocations: 0 / 0.8884 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.787, allocations: 29.17 kB / 0.8885 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.787, allocations: 4 kB / 0.8885 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.787, allocations: 1.406 kB / 0.8885 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.787, allocations: 4.031 kB / 0.8885 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.787, allocations: 0 / 0.8885 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004548/0.7875, allocations: 204.9 kB / 0.8887 GB, free: 28.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.7876, allocations: 85.31 kB / 0.8887 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.7876, allocations: 0.7969 kB / 0.8887 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.7877, allocations: 23.17 kB / 0.8888 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.7878, allocations: 15.44 kB / 0.8888 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.7878, allocations: 3.672 kB / 0.8888 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.759e-05/0.7879, allocations: 113.8 kB / 0.8889 GB, free: 28.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7879, allocations: 0 / 0.8889 GB, free: 28.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002956/0.7882, allocations: 39.95 kB / 0.8889 GB, free: 28.69 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) * Number of clocked states: 0 () * 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.001826/0.7901, allocations: 0.7572 MB / 0.8897 GB, free: 44.08 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0005464/0.7906, allocations: 228.5 kB / 0.8899 GB, free: 43.98 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7906, allocations: 7.5 kB / 0.8899 GB, free: 43.98 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.7909, allocations: 100.1 kB / 0.89 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.7911, allocations: 18.77 kB / 0.89 GB, free: 43.94 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.7927, allocations: 0.828 MB / 0.8908 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.793, allocations: 0.7056 MB / 0.8915 GB, free: 42.84 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.987e-05/0.7931, allocations: 13.31 kB / 0.8915 GB, free: 42.83 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.238e-05/0.7932, allocations: 29.36 kB / 0.8915 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of SimCode: time 3.31e-07/0.7932, allocations: 0 / 0.8915 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.8096, allocations: 2.45 MB / 0.8939 GB, free: 42.61 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.8098, allocations: 193 kB / 0.8941 GB, free: 42.37 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/2.448, allocations: 0 / 0.8941 GB, free: 42.37 MB / 0.5573 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)