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.001317/0.001318, 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.001263/0.001263, allocations: 199.3 kB / 16.14 MB, free: 6.715 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.408/1.408, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002566/0.002566, allocations: 282.9 kB / 290.2 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002771/0.002771, allocations: 95.81 kB / 0.6057 GB, free: 25.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1525, allocations: 89.15 MB / 0.6928 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002709/0.1552, allocations: 1.538 MB / 0.6943 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007596/0.156, allocations: 461.2 kB / 0.6947 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.46e-05/0.156, allocations: 0 / 0.6947 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.601e-05/0.1561, allocations: 8.594 kB / 0.6947 GB, free: 2.867 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.494e-05/0.1562, allocations: 9.516 kB / 0.6947 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.1564, allocations: 31.97 kB / 0.6948 GB, free: 2.828 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.1565, allocations: 95.69 kB / 0.6949 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.598e-05/0.1566, allocations: 14.88 kB / 0.6949 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.1567, allocations: 43.83 kB / 0.6949 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.336e-05/0.1568, allocations: 39.83 kB / 0.695 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1568, allocations: 4 kB / 0.695 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.909e-05/0.1569, allocations: 4.781 kB / 0.695 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.36e-05/0.1569, allocations: 15.92 kB / 0.695 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.997e-05/0.157, allocations: 39.84 kB / 0.695 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.1571, allocations: 79.98 kB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.1571, allocations: 0 / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1571, allocations: 0 / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1572, allocations: 0 / 0.6951 GB, free: 2.5 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.000699/0.1579, allocations: 454.6 kB / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1579, allocations: 8.031 kB / 0.6955 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.506e-05/0.158, allocations: 8.844 kB / 0.6955 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.1582, allocations: 198.7 kB / 0.6957 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.105e-06/0.1582, allocations: 384 / 0.6957 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.1582, allocations: 12.38 kB / 0.6957 GB, free: 1.738 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.1585, allocations: 121.6 kB / 0.6959 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.1585, allocations: 0 / 0.6959 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.1586, allocations: 4 kB / 0.6959 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1586, allocations: 0 / 0.6959 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.1589, allocations: 99.91 kB / 0.696 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.1595, allocations: 324.8 kB / 0.6963 GB, free: 1.145 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.1598, allocations: 102.5 kB / 0.6964 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.16, allocations: 76.94 kB / 0.6964 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.1601, allocations: 3.984 kB / 0.6964 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.1604, allocations: 119.3 kB / 0.6966 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.1604, allocations: 0 / 0.6966 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007448/0.1611, allocations: 279.4 kB / 0.6968 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.1612, allocations: 93.03 kB / 0.6969 GB, free: 440 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1613, allocations: 129.8 kB / 0.697 GB, free: 300 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1614, allocations: 25.7 kB / 0.6971 GB, free: 268 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.1614, allocations: 99.98 kB / 0.6972 GB, free: 164 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.1615, allocations: 15.88 kB / 0.6972 GB, free: 148 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.1615, allocations: 33.7 kB / 0.6972 GB, free: 108 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1617, allocations: 330.8 kB / 0.6975 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.1619, allocations: 63.95 kB / 0.6976 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.1621, allocations: 63.95 kB / 0.6976 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.1625, allocations: 185.9 kB / 0.6978 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1625, allocations: 4 kB / 0.6978 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005418/0.163, allocations: 256.8 kB / 0.6981 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.1631, allocations: 67.39 kB / 0.6981 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1631, allocations: 4 kB / 0.6981 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.1631, allocations: 0 / 0.6981 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.1633, allocations: 11.98 kB / 0.6981 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1633, allocations: 0 / 0.6981 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.1635, allocations: 23.98 kB / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.1635, allocations: 11.98 kB / 0.6982 GB, free: 15.04 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: 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.0001304/0.1636, allocations: 155.4 kB / 0.6983 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.1636, allocations: 11.91 kB / 0.6983 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.1637, allocations: 12.36 kB / 0.6983 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1637, allocations: 0 / 0.6983 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1637, allocations: 0 / 0.6983 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1637, allocations: 3.938 kB / 0.6984 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.1639, allocations: 197.5 kB / 0.6985 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1639, allocations: 4 kB / 0.6985 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.893e-05/0.164, allocations: 11.98 kB / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.164, allocations: 4 kB / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.164, allocations: 0 / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.164, allocations: 0 / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.164, allocations: 0 / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.1646, allocations: 250.6 kB / 0.6988 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.822e-05/0.1646, allocations: 88.95 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.1647, allocations: 7.922 kB / 0.6989 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.1648, allocations: 19.98 kB / 0.6989 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.1649, allocations: 36.08 kB / 0.6989 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.165, allocations: 11.94 kB / 0.699 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.973e-05/0.165, allocations: 101.1 kB / 0.6991 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.165, allocations: 0 / 0.6991 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002163/0.1653, allocations: 27.94 kB / 0.6991 GB, free: 14.01 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: 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.00011/0.1654, allocations: 107.2 kB / 0.6992 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000526/0.1659, allocations: 258.7 kB / 0.6994 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1659, allocations: 4 kB / 0.6994 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.1662, allocations: 139.3 kB / 0.6996 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.1664, allocations: 19.98 kB / 0.6996 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.167, allocations: 233 kB / 0.6998 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.1673, allocations: 0.6926 MB / 0.7005 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.184e-05/0.1674, allocations: 4 kB / 0.7005 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.1674, allocations: 11.44 kB / 0.7005 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1674, allocations: 0 / 0.7005 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of Templates: time 0.004352/0.1718, allocations: 1.604 MB / 0.7021 GB, free: 10.87 MB / 0.4981 GB 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)