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.001476/0.001476, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 282.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9123/0.9123, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 98.52 kB / 0.5952 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1386, allocations: 86.99 MB / 0.6802 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002578/0.1412, allocations: 1.467 MB / 0.6816 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007726/0.142, allocations: 458.4 kB / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.299e-05/0.1421, allocations: 0 / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.366e-05/0.1422, allocations: 7.938 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.676e-05/0.1422, allocations: 11.86 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.1424, allocations: 40.55 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.1426, allocations: 97.58 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1427, allocations: 23 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.1429, allocations: 47.83 kB / 0.6823 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.584e-05/0.1429, allocations: 47.77 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.861e-05/0.143, allocations: 8 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.042e-05/0.143, allocations: 8 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.437e-05/0.1431, allocations: 11.98 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.1431, allocations: 44.56 kB / 0.6824 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.1433, allocations: 80 kB / 0.6825 GB, free: 14.37 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1433, allocations: 1.719 kB / 0.6825 GB, free: 14.37 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1433, allocations: 0 / 0.6825 GB, free: 14.37 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1433, allocations: 0 / 0.6825 GB, free: 14.37 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.0007168/0.144, allocations: 453.4 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1441, allocations: 8.031 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.687e-05/0.1442, allocations: 13.47 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.1444, allocations: 192.7 kB / 0.6831 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1444, allocations: 5.438 kB / 0.6831 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.1444, allocations: 8.375 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.1447, allocations: 110.8 kB / 0.6832 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1447, allocations: 4 kB / 0.6832 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.1447, allocations: 8 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1448, allocations: 0 / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.1451, allocations: 87.92 kB / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005346/0.1456, allocations: 332.6 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.1459, allocations: 110.5 kB / 0.6837 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.1461, allocations: 68.94 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.1461, allocations: 0 / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.1465, allocations: 127.4 kB / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.1465, allocations: 7.938 kB / 0.6839 GB, free: 12.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.000698/0.1472, allocations: 275.1 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.1473, allocations: 85.11 kB / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.95e-05/0.1474, allocations: 131.9 kB / 0.6844 GB, free: 12.17 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.1474, allocations: 29.7 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.1475, allocations: 99.98 kB / 0.6845 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.1475, allocations: 19.8 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.414e-05/0.1476, allocations: 25.72 kB / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1477, allocations: 326.8 kB / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.1479, allocations: 63.95 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.1481, allocations: 63.95 kB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.1484, allocations: 193.9 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1484, allocations: 0 / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005027/0.1489, allocations: 256.9 kB / 0.6854 GB, free: 11.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.028e-05/0.149, allocations: 67.39 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.149, allocations: 0 / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.149, allocations: 0 / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.1491, allocations: 20.17 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1492, allocations: 4 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.1493, allocations: 23.97 kB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.1494, allocations: 8 kB / 0.6855 GB, free: 10.92 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.0001407/0.1495, allocations: 152.8 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.1495, allocations: 11.91 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.1496, allocations: 8.375 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1496, allocations: 4 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1496, allocations: 4 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1496, allocations: 0 / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.1498, allocations: 197.5 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1498, allocations: 4 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.074e-05/0.1499, allocations: 11.98 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1499, allocations: 0 / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.1499, allocations: 0 / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1499, allocations: 4 kB / 0.6859 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.15, allocations: 7.969 kB / 0.6859 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004786/0.1504, allocations: 250.5 kB / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.1505, allocations: 85.02 kB / 0.6862 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.1505, allocations: 11.94 kB / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1507, allocations: 19.97 kB / 0.6863 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.1508, allocations: 31.97 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.1508, allocations: 8 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.649e-05/0.1509, allocations: 96.81 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1509, allocations: 3.938 kB / 0.6864 GB, free: 9.918 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.1511, allocations: 35.92 kB / 0.6864 GB, free: 9.883 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 8.95e-05/0.1512, allocations: 95.41 kB / 0.6865 GB, free: 9.781 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.1517, allocations: 278.6 kB / 0.6868 GB, free: 9.484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1517, allocations: 0 / 0.6868 GB, free: 9.484 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.152, allocations: 143.3 kB / 0.6869 GB, free: 9.332 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.1522, allocations: 12 kB / 0.687 GB, free: 9.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004784/0.1527, allocations: 219.3 kB / 0.6872 GB, free: 9.078 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.1529, allocations: 0.6924 MB / 0.6878 GB, free: 8.359 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.988e-05/0.153, allocations: 4 kB / 0.6878 GB, free: 8.355 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.153, allocations: 11.44 kB / 0.6879 GB, free: 8.344 MB / 494.1 MB Notification: Performance of SimCode: time 5.31e-07/0.153, allocations: 4 kB / 0.6879 GB, free: 8.34 MB / 494.1 MB Notification: Performance of Templates: time 0.004209/0.1572, allocations: 1.855 MB / 0.6897 GB, free: 6.504 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)