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.001634/0.001634, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001378/0.001378, allocations: 191.9 kB / 16.25 MB, free: 6.621 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.415/1.415, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002553/0.002553, allocations: 286.5 kB / 290.4 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.066/1.066, allocations: 178.6 MB / 0.5069 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 105.3 kB / 0.6059 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1471, allocations: 89.15 MB / 0.693 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002764/0.1499, allocations: 1.601 MB / 0.6945 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009653/0.1508, allocations: 0.5726 MB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.317e-05/0.1509, allocations: 0 / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.489e-05/0.151, allocations: 11.92 kB / 0.6951 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-05/0.1511, allocations: 11.86 kB / 0.6951 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1514, allocations: 83.84 kB / 0.6952 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.1516, allocations: 99.64 kB / 0.6953 GB, free: 2.297 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.1517, allocations: 28.22 kB / 0.6953 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1518, allocations: 35.91 kB / 0.6954 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.213e-05/0.1519, allocations: 47.77 kB / 0.6954 GB, free: 2.184 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.1519, allocations: 12 kB / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.842e-05/0.152, allocations: 59.89 kB / 0.6955 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.609e-05/0.1521, allocations: 23.91 kB / 0.6955 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.486e-05/0.1521, allocations: 39.8 kB / 0.6955 GB, free: 2.051 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.1523, allocations: 135.8 kB / 0.6957 GB, free: 1.918 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1523, allocations: 3.938 kB / 0.6957 GB, free: 1.914 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1523, allocations: 0 / 0.6957 GB, free: 1.914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.1524, allocations: 0 / 0.6957 GB, free: 1.914 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.0007843/0.1531, allocations: 456.7 kB / 0.6961 GB, free: 1.414 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.1532, allocations: 8.031 kB / 0.6961 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.72e-05/0.1532, allocations: 12.84 kB / 0.6961 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.1534, allocations: 192.2 kB / 0.6963 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-06/0.1534, allocations: 384 / 0.6963 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.1535, allocations: 12.38 kB / 0.6963 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.1538, allocations: 109.9 kB / 0.6964 GB, free: 1.043 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1538, allocations: 0 / 0.6964 GB, free: 1.043 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1539, allocations: 4 kB / 0.6964 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.1539, allocations: 4 kB / 0.6964 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1542, allocations: 83.92 kB / 0.6965 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000659/0.1549, allocations: 356.6 kB / 0.6968 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.1552, allocations: 98.42 kB / 0.6969 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1554, allocations: 56.88 kB / 0.697 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.1554, allocations: 0 / 0.697 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.1558, allocations: 123.2 kB / 0.6971 GB, free: 264 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.1558, allocations: 0 / 0.6971 GB, free: 264 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006668/0.1565, allocations: 201.4 kB / 0.6973 GB, free: 56 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.1565, allocations: 59.41 kB / 0.6974 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1567, allocations: 140.1 kB / 0.6975 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.1567, allocations: 33.69 kB / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.1568, allocations: 100.1 kB / 0.6976 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.1568, allocations: 23.61 kB / 0.6976 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.1569, allocations: 29.77 kB / 0.6977 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.157, allocations: 322.8 kB / 0.698 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1573, allocations: 63.94 kB / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1575, allocations: 63.89 kB / 0.6981 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003745/0.1578, allocations: 138.5 kB / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1578, allocations: 0 / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004829/0.1583, allocations: 199.3 kB / 0.6984 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.837e-05/0.1584, allocations: 39.25 kB / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1584, allocations: 0 / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1585, allocations: 3.938 kB / 0.6985 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1586, allocations: 15.98 kB / 0.6985 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1586, allocations: 0 / 0.6985 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.1588, allocations: 27.91 kB / 0.6985 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.1588, allocations: 0 / 0.6985 GB, free: 14.75 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.0001072/0.1589, allocations: 125.9 kB / 0.6986 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.1589, allocations: 11.81 kB / 0.6986 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.376e-05/0.159, allocations: 16.7 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.159, allocations: 0 / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.159, allocations: 4 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.159, allocations: 0 / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.1592, allocations: 193.5 kB / 0.6988 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1592, allocations: 480 / 0.6988 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.1593, allocations: 19.98 kB / 0.6989 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1593, allocations: 0 / 0.6989 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.1594, allocations: 11.98 kB / 0.6989 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1594, allocations: 3.938 kB / 0.6989 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1594, allocations: 3.938 kB / 0.6989 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.1598, allocations: 184.9 kB / 0.6991 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.1599, allocations: 85.02 kB / 0.6991 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.1599, allocations: 4 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.1601, allocations: 15.98 kB / 0.6992 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.1601, allocations: 11.97 kB / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.1602, allocations: 4 kB / 0.6992 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.226e-05/0.1602, allocations: 117.2 kB / 0.6993 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1602, allocations: 0 / 0.6993 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002789/0.1605, allocations: 47.88 kB / 0.6993 GB, free: 13.81 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.0001576/0.1607, allocations: 114 kB / 0.6994 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004963/0.1612, allocations: 199.2 kB / 0.6996 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1612, allocations: 0 / 0.6996 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.1614, allocations: 67.94 kB / 0.6997 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.1616, allocations: 8.25 kB / 0.6997 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005488/0.1622, allocations: 259.7 kB / 0.6999 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.1625, allocations: 0.704 MB / 0.7006 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.305e-05/0.1626, allocations: 11.98 kB / 0.7006 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.197e-05/0.1626, allocations: 11.44 kB / 0.7007 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.1626, allocations: 0 / 0.7007 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of Templates: time 0.004116/0.1668, allocations: 1.334 MB / 0.702 GB, free: 11.05 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)