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.001234/0.001234, 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.001259/0.001259, allocations: 199.2 kB / 16.14 MB, free: 6.707 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.294/1.294, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 280.2 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9323/0.9323, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 94.42 kB / 0.5945 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1284, allocations: 86.99 MB / 0.6794 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002381/0.1308, allocations: 1.52 MB / 0.6809 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006793/0.1315, allocations: 466.7 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.538e-05/0.1315, allocations: 0 / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.526e-05/0.1316, allocations: 8.641 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.336e-05/0.1317, allocations: 9.188 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.1318, allocations: 39.91 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.1319, allocations: 79.83 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.176e-05/0.132, allocations: 25.52 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1322, allocations: 43.84 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.2e-05/0.1322, allocations: 39.83 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1323, allocations: 4 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.923e-05/0.1323, allocations: 8 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.015e-05/0.1323, allocations: 11.92 kB / 0.6816 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.882e-05/0.1324, allocations: 35.84 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.1325, allocations: 79.98 kB / 0.6817 GB, free: 14.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1325, allocations: 0 / 0.6817 GB, free: 14.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1325, allocations: 0 / 0.6817 GB, free: 14.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.1326, allocations: 0 / 0.6817 GB, free: 14.82 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.0006188/0.1332, allocations: 446.7 kB / 0.6822 GB, free: 14.33 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.1332, allocations: 8.031 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.1333, allocations: 12.84 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.1334, allocations: 198.6 kB / 0.6824 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1335, allocations: 8.375 kB / 0.6824 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.1335, allocations: 8.312 kB / 0.6824 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.1338, allocations: 117.7 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.1338, allocations: 4 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1338, allocations: 4 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1338, allocations: 0 / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003117/0.1342, allocations: 87.92 kB / 0.6826 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005038/0.1347, allocations: 332.7 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.135, allocations: 106.5 kB / 0.683 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.1352, allocations: 68.94 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.1352, allocations: 0 / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.1355, allocations: 127.3 kB / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.1355, allocations: 0 / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006901/0.1362, allocations: 279.1 kB / 0.6835 GB, free: 12.87 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.1363, allocations: 81.11 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.97e-05/0.1364, allocations: 136.5 kB / 0.6837 GB, free: 12.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.1364, allocations: 29.7 kB / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.1365, allocations: 108 kB / 0.6838 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.1365, allocations: 19.75 kB / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.1366, allocations: 25.7 kB / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.1367, allocations: 322.8 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1369, allocations: 68.19 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1371, allocations: 67.95 kB / 0.6843 GB, free: 11.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.1374, allocations: 189.8 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1374, allocations: 0 / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005098/0.138, allocations: 256.9 kB / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/0.138, allocations: 63.41 kB / 0.6848 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.138, allocations: 4.156 kB / 0.6848 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.138, allocations: 0 / 0.6848 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.1382, allocations: 11.98 kB / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1382, allocations: 15.91 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.1383, allocations: 19.98 kB / 0.6848 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.1384, allocations: 4 kB / 0.6848 GB, free: 11.37 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.000109/0.1385, allocations: 160.8 kB / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.1385, allocations: 15.84 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.1385, allocations: 8.375 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1385, allocations: 4 kB / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1385, allocations: 0 / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1386, allocations: 7.969 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.1387, allocations: 193.5 kB / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1387, allocations: 0 / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.551e-05/0.1388, allocations: 15.97 kB / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1388, allocations: 96 / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1388, allocations: 3.938 kB / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1388, allocations: 8 kB / 0.6852 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1389, allocations: 0 / 0.6852 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/0.1393, allocations: 246.5 kB / 0.6854 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.1394, allocations: 85.02 kB / 0.6855 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.1394, allocations: 8 kB / 0.6855 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1396, allocations: 23.97 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1397, allocations: 31.95 kB / 0.6856 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.1397, allocations: 8 kB / 0.6856 GB, free: 10.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.042e-05/0.1398, allocations: 95.27 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1398, allocations: 0 / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.14, allocations: 31.94 kB / 0.6857 GB, free: 10.34 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.406e-05/0.1401, allocations: 99.25 kB / 0.6858 GB, free: 10.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004961/0.1406, allocations: 278.7 kB / 0.6861 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1406, allocations: 0 / 0.6861 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.1408, allocations: 135.3 kB / 0.6862 GB, free: 9.789 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.1411, allocations: 17.53 kB / 0.6862 GB, free: 9.773 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004737/0.1415, allocations: 237 kB / 0.6865 GB, free: 9.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.1418, allocations: 0.6887 MB / 0.6871 GB, free: 8.797 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.809e-05/0.1418, allocations: 7.984 kB / 0.6871 GB, free: 8.789 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.1419, allocations: 15.44 kB / 0.6871 GB, free: 8.773 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1419, allocations: 0 / 0.6871 GB, free: 8.773 MB / 494.1 MB Notification: Performance of Templates: time 0.003646/0.1455, allocations: 1.586 MB / 0.6887 GB, free: 7.211 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)