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.8604/0.8604, allocations: 141.8 MB / 149.3 MB, free: 9.184 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.001089/0.001089, allocations: 184.9 kB / 182.2 MB, free: 9.426 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.501/1.501, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0009793/0.0009793, allocations: 96.05 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001972/0.001972, allocations: 284.2 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.663e-05/1.678e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.4542, allocations: 82.77 MB / 0.7574 GB, free: 31.99 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.5975, allocations: 109.5 MB / 0.8644 GB, free: 2.336 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.5978, allocations: 71.95 kB / 0.8645 GB, free: 2.266 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0103/0.6081, allocations: 3.531 MB / 0.8679 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6082, allocations: 0 / 0.8679 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.6082, allocations: 4 kB / 0.8679 GB, free: 14.72 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.0007112/0.6089, allocations: 432 kB / 0.8683 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.609, allocations: 8.031 kB / 0.8683 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.55e-05/0.609, allocations: 15.91 kB / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.6093, allocations: 198.7 kB / 0.8685 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.6093, allocations: 7.984 kB / 0.8685 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.6093, allocations: 4 kB / 0.8685 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001305/0.6095, allocations: 32 kB / 0.8686 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.6096, allocations: 81.58 kB / 0.8687 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.6096, allocations: 0 / 0.8687 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.6097, allocations: 0 / 0.8687 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.6097, allocations: 4 kB / 0.8687 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.6103, allocations: 345.2 kB / 0.869 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.6104, allocations: 58.56 kB / 0.869 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.291e-05/0.6105, allocations: 36.91 kB / 0.8691 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.6105, allocations: 0 / 0.8691 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001441/0.6107, allocations: 87.31 kB / 0.8692 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.6107, allocations: 0 / 0.8692 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0002932/0.611, allocations: 105.5 kB / 0.8693 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.611, allocations: 55.41 kB / 0.8693 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.6112, allocations: 126.7 kB / 0.8694 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.6112, allocations: 29.7 kB / 0.8695 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.6112, allocations: 104 kB / 0.8696 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.6113, allocations: 23.62 kB / 0.8696 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.906e-06/0.6113, allocations: 0 / 0.8696 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.6114, allocations: 318.8 kB / 0.8699 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.6115, allocations: 35.98 kB / 0.8699 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.725e-05/0.6115, allocations: 32.05 kB / 0.87 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.653e-05/0.6116, allocations: 43.91 kB / 0.87 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6116, allocations: 0 / 0.87 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000206/0.6119, allocations: 117.6 kB / 0.8701 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.6119, allocations: 34.95 kB / 0.8701 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.6119, allocations: 0 / 0.8701 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.6119, allocations: 0 / 0.8701 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.6121, allocations: 27.97 kB / 0.8702 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.6121, allocations: 3.953 kB / 0.8702 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.6123, allocations: 23.92 kB / 0.8702 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.6123, allocations: 4 kB / 0.8702 GB, free: 12.16 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 8.103e-05/0.6124, allocations: 108.9 kB / 0.8703 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001876/0.6126, allocations: 109.5 kB / 0.8704 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.6126, allocations: 8.094 kB / 0.8704 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.6128, allocations: 126.2 kB / 0.8705 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.6129, allocations: 7.953 kB / 0.8705 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.6129, allocations: 0 / 0.8705 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.6129, allocations: 3.938 kB / 0.8705 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.613, allocations: 182.2 kB / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.613, allocations: 0 / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.6132, allocations: 19.98 kB / 0.8707 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.6132, allocations: 0 / 0.8707 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.6132, allocations: 3.984 kB / 0.8707 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.6132, allocations: 4 kB / 0.8707 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6132, allocations: 4 kB / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.6134, allocations: 132.9 kB / 0.8709 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.792e-05/0.6135, allocations: 85.02 kB / 0.871 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.6135, allocations: 0 / 0.871 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.6136, allocations: 19.98 kB / 0.871 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.6137, allocations: 19.97 kB / 0.871 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.6137, allocations: 4 kB / 0.871 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.089e-05/0.6138, allocations: 104.9 kB / 0.8711 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6138, allocations: 0 / 0.8711 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002671/0.6141, allocations: 47.84 kB / 0.8711 GB, free: 11.1 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.0005502/0.6147, allocations: 0.6904 MB / 0.8718 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.6149, allocations: 168.9 kB / 0.872 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.6149, allocations: 0 / 0.872 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.615, allocations: 69.69 kB / 0.872 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001994/0.6152, allocations: 15.94 kB / 0.8721 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000522/0.6158, allocations: 181.8 kB / 0.8722 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.6161, allocations: 0.7041 MB / 0.8729 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.505e-05/0.6162, allocations: 19.75 kB / 0.8729 GB, free: 9.141 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.187e-05/0.6162, allocations: 27.42 kB / 0.873 GB, free: 9.113 MB / 0.5417 GB Notification: Performance of SimCode: time 2.61e-07/0.6162, allocations: 0 / 0.873 GB, free: 9.113 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.6388, allocations: 2.099 MB / 0.875 GB, free: 7.039 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/0.6392, allocations: 164.7 kB / 0.8752 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/2.224, allocations: 0 / 0.8752 GB, free: 6.832 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)