Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001279/0.001279, allocations: 191 kB / 17.29 MB, free: 5.516 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.244/1.244, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 302.4 kB / 291.4 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9069/0.9069, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 94.42 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1441, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.003444/0.1476, allocations: 1.473 MB / 0.683 GB, free: 5.977 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009581/0.1486, allocations: 455 kB / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.753e-05/0.1487, allocations: 0 / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.1488, allocations: 11.81 kB / 0.6835 GB, free: 5.516 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.206e-05/0.1489, allocations: 19.84 kB / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.1491, allocations: 31.95 kB / 0.6835 GB, free: 5.465 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.1493, allocations: 103.7 kB / 0.6836 GB, free: 5.363 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1495, allocations: 28.14 kB / 0.6836 GB, free: 5.336 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.1496, allocations: 47.84 kB / 0.6837 GB, free: 5.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.1497, allocations: 35.83 kB / 0.6837 GB, free: 5.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.1498, allocations: 12 kB / 0.6837 GB, free: 5.242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.18e-05/0.1498, allocations: 8 kB / 0.6837 GB, free: 5.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.736e-05/0.1499, allocations: 11.97 kB / 0.6838 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.878e-05/0.1499, allocations: 39.8 kB / 0.6838 GB, free: 5.184 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1501, allocations: 79.7 kB / 0.6839 GB, free: 5.105 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1501, allocations: 4 kB / 0.6839 GB, free: 5.102 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1501, allocations: 0 / 0.6839 GB, free: 5.102 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1502, allocations: 0 / 0.6839 GB, free: 5.102 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007769/0.1509, allocations: 446.7 kB / 0.6843 GB, free: 4.605 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.151, allocations: 12.03 kB / 0.6843 GB, free: 4.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.512e-05/0.1511, allocations: 12.83 kB / 0.6843 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.1513, allocations: 192.2 kB / 0.6845 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1513, allocations: 4.375 kB / 0.6845 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.1513, allocations: 4.375 kB / 0.6845 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.1517, allocations: 129.7 kB / 0.6846 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1518, allocations: 0 / 0.6846 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.1518, allocations: 0 / 0.6846 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.1518, allocations: 4 kB / 0.6846 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003913/0.1522, allocations: 83.92 kB / 0.6847 GB, free: 4.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00067/0.1529, allocations: 340.6 kB / 0.685 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.1533, allocations: 106.5 kB / 0.6851 GB, free: 3.633 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.1536, allocations: 72.94 kB / 0.6852 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.1536, allocations: 0 / 0.6852 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.154, allocations: 131.4 kB / 0.6853 GB, free: 3.418 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.154, allocations: 0 / 0.6853 GB, free: 3.418 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008994/0.1549, allocations: 271.1 kB / 0.6856 GB, free: 3.141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.155, allocations: 89.09 kB / 0.6857 GB, free: 3.035 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.1551, allocations: 121.8 kB / 0.6858 GB, free: 2.906 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1551, allocations: 37.7 kB / 0.6858 GB, free: 2.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.755e-05/0.1552, allocations: 99.97 kB / 0.6859 GB, free: 2.762 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.1553, allocations: 15.81 kB / 0.6859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/0.1554, allocations: 33.7 kB / 0.686 GB, free: 2.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1555, allocations: 322.8 kB / 0.6863 GB, free: 2.383 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/0.1558, allocations: 64.2 kB / 0.6863 GB, free: 2.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.156, allocations: 71.89 kB / 0.6864 GB, free: 2.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.1565, allocations: 185.9 kB / 0.6866 GB, free: 2.047 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1565, allocations: 0 / 0.6866 GB, free: 2.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006964/0.1572, allocations: 256.9 kB / 0.6868 GB, free: 1.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.637e-05/0.1573, allocations: 59.41 kB / 0.6869 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1573, allocations: 0 / 0.6869 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1573, allocations: 7.984 kB / 0.6869 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1575, allocations: 19.98 kB / 0.6869 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1575, allocations: 0 / 0.6869 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.1577, allocations: 19.89 kB / 0.6869 GB, free: 1.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.1577, allocations: 7.984 kB / 0.6869 GB, free: 1.652 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: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001436/0.1579, allocations: 163.4 kB / 0.6871 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.1579, allocations: 7.906 kB / 0.6871 GB, free: 1.469 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.158, allocations: 24.34 kB / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.158, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.158, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.158, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.1582, allocations: 197.5 kB / 0.6873 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1582, allocations: 0 / 0.6873 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1583, allocations: 11.98 kB / 0.6873 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1583, allocations: 0 / 0.6873 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.1584, allocations: 11.94 kB / 0.6873 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.1584, allocations: 160 / 0.6873 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1584, allocations: 4 kB / 0.6874 GB, free: 1.176 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006393/0.159, allocations: 250.6 kB / 0.6876 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.1591, allocations: 84.95 kB / 0.6877 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.1592, allocations: 4 kB / 0.6877 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.1593, allocations: 19.97 kB / 0.6877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.1595, allocations: 43.95 kB / 0.6877 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.1595, allocations: 0 / 0.6877 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.375e-05/0.1596, allocations: 105.8 kB / 0.6878 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1596, allocations: 0 / 0.6878 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000373/0.16, allocations: 23.94 kB / 0.6879 GB, free: 0.6133 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: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001088/0.1601, allocations: 107.2 kB / 0.688 GB, free: 0.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006717/0.1608, allocations: 266.7 kB / 0.6882 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1608, allocations: 0 / 0.6882 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.1612, allocations: 151.3 kB / 0.6884 GB, free: 56 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.1615, allocations: 15.98 kB / 0.6884 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2491/0.4106, allocations: 202.5 kB / 0.6886 GB, free: 18.35 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.4107, allocations: 0.6933 MB / 0.6892 GB, free: 17.65 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.96e-05/0.4108, allocations: 9.266 kB / 0.6893 GB, free: 17.65 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.4108, allocations: 11.98 kB / 0.6893 GB, free: 17.65 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4108, allocations: 1.562 kB / 0.6893 GB, free: 17.65 MB / 494.1 MB Notification: Performance of Templates: time 0.004687/0.4155, allocations: 1.851 MB / 0.6911 GB, free: 17.61 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)