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.0008283/0.0008283, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005612/0.005612, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.293/1.293, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001841/0.001841, allocations: 270.5 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9276/0.9276, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004098, allocations: 18.44 kB / 0.5988 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1467, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.001568/0.1483, allocations: 1.255 MB / 0.6864 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.1492, allocations: 0.5836 MB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.841e-05/0.1492, allocations: 0 / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.123e-05/0.1493, allocations: 3.938 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.1494, allocations: 17.03 kB / 0.687 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.1497, allocations: 72.61 kB / 0.6871 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.1498, allocations: 92.83 kB / 0.6872 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.936e-05/0.1499, allocations: 17.78 kB / 0.6872 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.15, allocations: 41.8 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.008e-05/0.1501, allocations: 51.7 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.1501, allocations: 0 / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.597e-05/0.1502, allocations: 59.89 kB / 0.6874 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.1502, allocations: 20.81 kB / 0.6874 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.438e-05/0.1503, allocations: 57.5 kB / 0.6874 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.1505, allocations: 139.5 kB / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1505, allocations: 3.406 kB / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1505, allocations: 0 / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.1505, allocations: 0 / 0.6876 GB, free: 12.55 MB / 494.1 MB 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.00067/0.1512, allocations: 441.4 kB / 0.688 GB, free: 12.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1512, allocations: 12.66 kB / 0.688 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.718e-05/0.1513, allocations: 35.31 kB / 0.688 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.1513, allocations: 16.83 kB / 0.688 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.1515, allocations: 196.4 kB / 0.6882 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1515, allocations: 384 / 0.6882 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.1515, allocations: 4.375 kB / 0.6882 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.1518, allocations: 123.2 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.1518, allocations: 0 / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1519, allocations: 1.719 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.1519, allocations: 4 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.1522, allocations: 113.2 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.1528, allocations: 362 kB / 0.6888 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.1532, allocations: 109.1 kB / 0.6889 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.1534, allocations: 64.88 kB / 0.689 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.1534, allocations: 4 kB / 0.689 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002913/0.1537, allocations: 123.4 kB / 0.6891 GB, free: 10.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.1537, allocations: 4 kB / 0.6891 GB, free: 10.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006451/0.1543, allocations: 229.4 kB / 0.6893 GB, free: 10.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.1544, allocations: 63.39 kB / 0.6894 GB, free: 10.51 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.1545, allocations: 140.1 kB / 0.6895 GB, free: 10.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1545, allocations: 29.7 kB / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.1546, allocations: 104.1 kB / 0.6896 GB, free: 10.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.1546, allocations: 31.5 kB / 0.6897 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.1547, allocations: 17.64 kB / 0.6897 GB, free: 10.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1548, allocations: 326.8 kB / 0.69 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.155, allocations: 67.94 kB / 0.6901 GB, free: 9.773 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.1552, allocations: 67.95 kB / 0.6901 GB, free: 9.707 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.1556, allocations: 166.5 kB / 0.6903 GB, free: 9.535 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1556, allocations: 0 / 0.6903 GB, free: 9.535 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004758/0.1561, allocations: 223.2 kB / 0.6905 GB, free: 9.305 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.1561, allocations: 37.69 kB / 0.6905 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1561, allocations: 0 / 0.6905 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/0.1561, allocations: 4 kB / 0.6905 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.1563, allocations: 19.98 kB / 0.6906 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1563, allocations: 4 kB / 0.6906 GB, free: 9.234 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.1564, allocations: 19.97 kB / 0.6906 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1565, allocations: 11.94 kB / 0.6906 GB, free: 9.203 MB / 494.1 MB 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 8.999e-05/0.1565, allocations: 118.5 kB / 0.6907 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.947e-05/0.1566, allocations: 11.81 kB / 0.6907 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.1566, allocations: 16.7 kB / 0.6907 GB, free: 9.051 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.1566, allocations: 4 kB / 0.6907 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1566, allocations: 0 / 0.6907 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1566, allocations: 0 / 0.6907 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.1568, allocations: 201.5 kB / 0.6909 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1568, allocations: 0 / 0.6909 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.1569, allocations: 27.92 kB / 0.691 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.157, allocations: 0 / 0.691 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.157, allocations: 3.984 kB / 0.691 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.157, allocations: 0 / 0.691 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.157, allocations: 0 / 0.691 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004496/0.1574, allocations: 200.9 kB / 0.6912 GB, free: 8.555 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.1575, allocations: 92.94 kB / 0.6912 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.1575, allocations: 12.11 kB / 0.6913 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.1577, allocations: 23.98 kB / 0.6913 GB, free: 8.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.1577, allocations: 19.91 kB / 0.6913 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.1577, allocations: 4 kB / 0.6913 GB, free: 8.387 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.298e-05/0.1578, allocations: 112.7 kB / 0.6914 GB, free: 8.277 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1578, allocations: 0 / 0.6914 GB, free: 8.277 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.158, allocations: 39.98 kB / 0.6915 GB, free: 8.238 MB / 494.1 MB 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.0007696/0.1588, allocations: 0.7489 MB / 0.6922 GB, free: 7.461 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004631/0.1593, allocations: 207.2 kB / 0.6924 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1593, allocations: 0 / 0.6924 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.1595, allocations: 79.88 kB / 0.6925 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.1597, allocations: 11.94 kB / 0.6925 GB, free: 7.156 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.162, allocations: 1.777 MB / 0.6942 GB, free: 5.289 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.1622, allocations: 0.6965 MB / 0.6949 GB, free: 4.566 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.934e-05/0.1623, allocations: 19.97 kB / 0.6949 GB, free: 4.547 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.1624, allocations: 23.44 kB / 0.6949 GB, free: 4.527 MB / 494.1 MB Notification: Performance of SimCode: time 1.553e-06/0.1624, allocations: 0 / 0.6949 GB, free: 4.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01147/0.1738, allocations: 2.421 MB / 0.6973 GB, free: 2.25 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.174, allocations: 229.7 kB / 0.6975 GB, free: 1.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.783, allocations: 3.938 kB / 0.6975 GB, free: 1.977 MB / 494.1 MB (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/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)