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.001059/0.001059, allocations: 111 kB / 16.37 MB, free: 6.012 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.001014/0.001014, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.239/1.239, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002064/0.002064, allocations: 283.7 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8894/0.8894, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 94.42 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1406, allocations: 86.97 MB / 0.6816 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002485/0.1431, allocations: 1.54 MB / 0.6831 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008622/0.144, allocations: 0.5773 MB / 0.6837 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.1441, allocations: 4 kB / 0.6837 GB, free: 5.305 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.239e-05/0.1441, allocations: 11.81 kB / 0.6837 GB, free: 5.293 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.706e-05/0.1442, allocations: 19.8 kB / 0.6837 GB, free: 5.273 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.1445, allocations: 87.77 kB / 0.6838 GB, free: 5.188 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.1447, allocations: 95.7 kB / 0.6839 GB, free: 5.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1448, allocations: 36.12 kB / 0.6839 GB, free: 5.055 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.747e-05/0.1449, allocations: 39.84 kB / 0.6839 GB, free: 5.016 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.795e-05/0.145, allocations: 43.83 kB / 0.684 GB, free: 4.973 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.145, allocations: 8 kB / 0.684 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1452, allocations: 95.83 kB / 0.6841 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.106e-05/0.1452, allocations: 19.92 kB / 0.6841 GB, free: 4.852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.022e-05/0.1453, allocations: 43.8 kB / 0.6841 GB, free: 4.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.1455, allocations: 143.5 kB / 0.6843 GB, free: 4.668 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1455, allocations: 0 / 0.6843 GB, free: 4.668 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1455, allocations: 0 / 0.6843 GB, free: 4.668 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1455, allocations: 0 / 0.6843 GB, free: 4.668 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.000692/0.1462, allocations: 452.7 kB / 0.6847 GB, free: 4.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1462, allocations: 12.03 kB / 0.6847 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.1463, allocations: 12.75 kB / 0.6847 GB, free: 4.148 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.1465, allocations: 193.6 kB / 0.6849 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.1465, allocations: 4.375 kB / 0.6849 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.1465, allocations: 8.375 kB / 0.6849 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.1468, allocations: 101.9 kB / 0.685 GB, free: 3.805 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1468, allocations: 0 / 0.685 GB, free: 3.805 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1468, allocations: 3.984 kB / 0.685 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.1468, allocations: 8 kB / 0.685 GB, free: 3.793 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.1471, allocations: 87.92 kB / 0.6851 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005786/0.1477, allocations: 348.6 kB / 0.6855 GB, free: 3.316 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.148, allocations: 94.45 kB / 0.6856 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.1482, allocations: 56.88 kB / 0.6856 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1482, allocations: 4 kB / 0.6856 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.1485, allocations: 111.3 kB / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.1485, allocations: 0 / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005865/0.1491, allocations: 217.3 kB / 0.6859 GB, free: 2.812 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.1491, allocations: 51.41 kB / 0.686 GB, free: 2.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.845e-05/0.1492, allocations: 135.4 kB / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.1492, allocations: 33.7 kB / 0.6861 GB, free: 2.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.1493, allocations: 108 kB / 0.6862 GB, free: 2.461 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.1493, allocations: 31.7 kB / 0.6863 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.1494, allocations: 21.72 kB / 0.6863 GB, free: 2.402 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.673e-05/0.1495, allocations: 322.8 kB / 0.6866 GB, free: 2.078 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1497, allocations: 59.95 kB / 0.6867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.1499, allocations: 67.92 kB / 0.6867 GB, free: 1.953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.1502, allocations: 138.5 kB / 0.6868 GB, free: 1.809 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1502, allocations: 0 / 0.6868 GB, free: 1.809 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004118/0.1506, allocations: 199.1 kB / 0.687 GB, free: 1.602 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.1507, allocations: 33.7 kB / 0.6871 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1507, allocations: 7.922 kB / 0.6871 GB, free: 1.555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.1507, allocations: 4 kB / 0.6871 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.1508, allocations: 15.98 kB / 0.6871 GB, free: 1.535 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.1508, allocations: 4 kB / 0.6871 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.151, allocations: 11.98 kB / 0.6871 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.151, allocations: 7.984 kB / 0.6871 GB, free: 1.512 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.281e-05/0.1511, allocations: 121.8 kB / 0.6872 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.963e-05/0.1511, allocations: 11.91 kB / 0.6872 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.1512, allocations: 20.7 kB / 0.6873 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.1512, allocations: 4 kB / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1512, allocations: 0 / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1512, allocations: 0 / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.1513, allocations: 205.4 kB / 0.6875 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.1514, allocations: 0 / 0.6875 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.1515, allocations: 19.92 kB / 0.6875 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1515, allocations: 4 kB / 0.6875 GB, free: 1.074 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.1515, allocations: 0 / 0.6875 GB, free: 1.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1515, allocations: 3.938 kB / 0.6875 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1515, allocations: 8.453 kB / 0.6875 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.1519, allocations: 180.8 kB / 0.6877 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/0.152, allocations: 92.94 kB / 0.6878 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.152, allocations: 0 / 0.6878 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.1521, allocations: 19.98 kB / 0.6878 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.916e-05/0.1522, allocations: 11.98 kB / 0.6878 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.1522, allocations: 7.984 kB / 0.6878 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.648e-05/0.1523, allocations: 113.4 kB / 0.6879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1523, allocations: 0 / 0.6879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.1525, allocations: 35.94 kB / 0.6879 GB, free: 0.5742 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.0001389/0.1526, allocations: 123.2 kB / 0.6881 GB, free: 456 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004345/0.1531, allocations: 183.3 kB / 0.6882 GB, free: 260 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1531, allocations: 3.938 kB / 0.6882 GB, free: 256 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.1533, allocations: 63.94 kB / 0.6883 GB, free: 192 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.1535, allocations: 8 kB / 0.6883 GB, free: 184 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2254/0.3789, allocations: 211.9 kB / 0.6885 GB, free: 18.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.3791, allocations: 0.6994 MB / 0.6892 GB, free: 18.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.481e-05/0.3792, allocations: 11.92 kB / 0.6892 GB, free: 18.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.3792, allocations: 16.44 kB / 0.6892 GB, free: 18.17 MB / 494.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3792, allocations: 1.562 kB / 0.6892 GB, free: 18.17 MB / 494.1 MB Notification: Performance of Templates: time 0.004434/0.3837, allocations: 1.413 MB / 0.6906 GB, free: 18.15 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)