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: translateModel(BuildingSystems.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker") translateModel(BuildingSystems.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002118/0.002118, allocations: 198.1 kB / 16.14 MB, free: 6.715 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.441/1.441, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002564/0.002564, allocations: 279 kB / 290.2 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.076/1.076, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 99.2 kB / 0.6057 GB, free: 25.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1481, allocations: 89.15 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002779/0.1509, allocations: 1.61 MB / 0.6944 GB, free: 3.223 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.152, allocations: 0.5939 MB / 0.6949 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.15e-05/0.152, allocations: 3.938 kB / 0.6949 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.107e-05/0.1521, allocations: 3.938 kB / 0.6949 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.095e-05/0.1522, allocations: 23.84 kB / 0.695 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.1525, allocations: 71.86 kB / 0.695 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.1526, allocations: 83.7 kB / 0.6951 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.1527, allocations: 20.23 kB / 0.6951 GB, free: 2.418 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1528, allocations: 43.83 kB / 0.6952 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.286e-05/0.1529, allocations: 43.77 kB / 0.6952 GB, free: 2.332 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.153, allocations: 8 kB / 0.6952 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1531, allocations: 55.89 kB / 0.6953 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.1531, allocations: 19.92 kB / 0.6953 GB, free: 2.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.148e-05/0.1532, allocations: 39.78 kB / 0.6953 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.1534, allocations: 135.8 kB / 0.6955 GB, free: 2.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1534, allocations: 0 / 0.6955 GB, free: 2.078 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1534, allocations: 0 / 0.6955 GB, free: 2.078 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.758e-06/0.1535, allocations: 4 kB / 0.6955 GB, free: 2.074 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.0008268/0.1543, allocations: 452.7 kB / 0.6959 GB, free: 1.578 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.1543, allocations: 8.031 kB / 0.6959 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.1544, allocations: 8.844 kB / 0.6959 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.1546, allocations: 196.1 kB / 0.6961 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1546, allocations: 4.375 kB / 0.6961 GB, free: 1.328 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.1546, allocations: 4.375 kB / 0.6961 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.155, allocations: 117.8 kB / 0.6962 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.155, allocations: 0 / 0.6962 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.155, allocations: 0 / 0.6962 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.1551, allocations: 4 kB / 0.6962 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.1554, allocations: 91.92 kB / 0.6963 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006726/0.1561, allocations: 344.6 kB / 0.6966 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.1565, allocations: 98.5 kB / 0.6967 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.1567, allocations: 60.88 kB / 0.6968 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.1567, allocations: 3.984 kB / 0.6968 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.157, allocations: 115.3 kB / 0.6969 GB, free: 436 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.157, allocations: 0 / 0.6969 GB, free: 436 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000687/0.1577, allocations: 205.5 kB / 0.6971 GB, free: 224 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.1578, allocations: 55.41 kB / 0.6972 GB, free: 156 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1579, allocations: 147.4 kB / 0.6973 GB, free: 0 / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.158, allocations: 29.75 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.113e-05/0.1581, allocations: 100.1 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.1581, allocations: 23.61 kB / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-05/0.1582, allocations: 29.7 kB / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1583, allocations: 326.8 kB / 0.6978 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.1586, allocations: 55.95 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.1588, allocations: 55.95 kB / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.1592, allocations: 146.5 kB / 0.698 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1592, allocations: 0 / 0.698 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000505/0.1597, allocations: 199.2 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.1597, allocations: 37.69 kB / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1598, allocations: 480 / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.1598, allocations: 0 / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.1599, allocations: 19.98 kB / 0.6983 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1599, allocations: 0 / 0.6983 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.1601, allocations: 23.91 kB / 0.6983 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.1601, allocations: 7.938 kB / 0.6983 GB, free: 14.91 MB / 0.4981 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.0001148/0.1602, allocations: 121.7 kB / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.1603, allocations: 15.81 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.1603, allocations: 16.7 kB / 0.6985 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.1603, allocations: 8 kB / 0.6985 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1604, allocations: 0 / 0.6985 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1604, allocations: 0 / 0.6985 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.1606, allocations: 201.5 kB / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1606, allocations: 0 / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.1607, allocations: 15.98 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1607, allocations: 4 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1607, allocations: 3.984 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1607, allocations: 4 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1608, allocations: 0 / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.1612, allocations: 184.8 kB / 0.6989 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.1613, allocations: 85.02 kB / 0.6989 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.1613, allocations: 0 / 0.6989 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1615, allocations: 19.98 kB / 0.699 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.1616, allocations: 15.97 kB / 0.699 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1616, allocations: 0 / 0.699 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.628e-05/0.1617, allocations: 113.2 kB / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1617, allocations: 0 / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002543/0.1619, allocations: 51.86 kB / 0.6991 GB, free: 13.97 MB / 0.4981 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.000183/0.1621, allocations: 115.2 kB / 0.6992 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004997/0.1626, allocations: 187.2 kB / 0.6994 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1626, allocations: 0 / 0.6994 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.1629, allocations: 63.95 kB / 0.6995 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.1631, allocations: 9.438 kB / 0.6995 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000568/0.1637, allocations: 261.3 kB / 0.6997 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1641, allocations: 0.7043 MB / 0.7004 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.559e-05/0.1641, allocations: 11.98 kB / 0.7004 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.1642, allocations: 11.44 kB / 0.7004 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1642, allocations: 0 / 0.7004 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of Templates: time 0.004144/0.1683, allocations: 1.276 MB / 0.7017 GB, free: 11.28 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)