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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7449/0.7449, allocations: 143.4 MB / 159.2 MB, free: 4.891 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 183.7 kB / 191.9 MB, free: 5.738 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 447.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009301/0.00093, allocations: 107.1 kB / 0.517 GB, free: 3.711 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001825/0.001825, allocations: 281.3 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 75.88 kB / 0.6885 GB, free: 3.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3389, allocations: 81.3 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002255/0.3411, allocations: 1.535 MB / 0.7694 GB, free: 26.12 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006221/0.3418, allocations: 470.7 kB / 0.7699 GB, free: 25.66 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.75e-05/0.3418, allocations: 0 / 0.7699 GB, free: 25.66 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 9.581e-05/0.3419, allocations: 7.938 kB / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.418e-05/0.342, allocations: 15.92 kB / 0.7699 GB, free: 25.63 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.3422, allocations: 31.89 kB / 0.7699 GB, free: 25.6 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 9.397e-05/0.3423, allocations: 87.77 kB / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3424, allocations: 12.19 kB / 0.77 GB, free: 25.5 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.3425, allocations: 39.84 kB / 0.77 GB, free: 25.46 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.271e-05/0.3426, allocations: 43.81 kB / 0.7701 GB, free: 25.42 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.3426, allocations: 4 kB / 0.7701 GB, free: 25.42 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.674e-05/0.3426, allocations: 8 kB / 0.7701 GB, free: 25.41 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 3.685e-05/0.3427, allocations: 15.92 kB / 0.7701 GB, free: 25.39 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.3427, allocations: 35.84 kB / 0.7701 GB, free: 25.36 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.3429, allocations: 78.44 kB / 0.7702 GB, free: 25.29 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3429, allocations: 0 / 0.7702 GB, free: 25.29 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3429, allocations: 0 / 0.7702 GB, free: 25.29 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.3429, allocations: 0 / 0.7702 GB, free: 25.29 MB / 458.7 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.000566/0.3435, allocations: 454.5 kB / 0.7707 GB, free: 24.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.3435, allocations: 15.97 kB / 0.7707 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.3435, allocations: 8.938 kB / 0.7707 GB, free: 24.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.3437, allocations: 184.2 kB / 0.7709 GB, free: 24.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3437, allocations: 4.375 kB / 0.7709 GB, free: 24.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.3437, allocations: 12.36 kB / 0.7709 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.344, allocations: 117.7 kB / 0.771 GB, free: 24.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.344, allocations: 0 / 0.771 GB, free: 24.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.344, allocations: 7.938 kB / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3441, allocations: 0 / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002638/0.3443, allocations: 91.92 kB / 0.7711 GB, free: 24.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.3448, allocations: 336.7 kB / 0.7714 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.3451, allocations: 110.4 kB / 0.7715 GB, free: 23.81 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.3452, allocations: 72.94 kB / 0.7716 GB, free: 23.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.3452, allocations: 3.984 kB / 0.7716 GB, free: 23.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002841/0.3455, allocations: 119.3 kB / 0.7717 GB, free: 23.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 2.144e-06/0.3455, allocations: 4 kB / 0.7717 GB, free: 23.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005971/0.3461, allocations: 275.1 kB / 0.772 GB, free: 23.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.3462, allocations: 89.09 kB / 0.772 GB, free: 23.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.3463, allocations: 127.4 kB / 0.7722 GB, free: 23.08 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.3463, allocations: 29.7 kB / 0.7722 GB, free: 23.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.3463, allocations: 92.05 kB / 0.7723 GB, free: 22.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.3464, allocations: 23.8 kB / 0.7723 GB, free: 22.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.3464, allocations: 29.72 kB / 0.7723 GB, free: 22.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.624e-05/0.3465, allocations: 326.8 kB / 0.7726 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3467, allocations: 59.95 kB / 0.7727 GB, free: 22.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.3468, allocations: 67.95 kB / 0.7728 GB, free: 22.44 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.3471, allocations: 181.9 kB / 0.7729 GB, free: 22.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3471, allocations: 0 / 0.7729 GB, free: 22.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004098/0.3475, allocations: 268.9 kB / 0.7732 GB, free: 21.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.3476, allocations: 63.39 kB / 0.7733 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3476, allocations: 0 / 0.7733 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3476, allocations: 0 / 0.7733 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.3477, allocations: 11.98 kB / 0.7733 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3477, allocations: 4 kB / 0.7733 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.3479, allocations: 32.16 kB / 0.7733 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.3479, allocations: 11.94 kB / 0.7733 GB, free: 21.82 MB / 458.7 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 8.12e-05/0.348, allocations: 153.3 kB / 0.7735 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.348, allocations: 15.89 kB / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.66e-05/0.3481, allocations: 8.375 kB / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3481, allocations: 0 / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3481, allocations: 4 kB / 0.7735 GB, free: 21.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3481, allocations: 4 kB / 0.7735 GB, free: 21.63 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.262e-05/0.3482, allocations: 193.6 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3482, allocations: 3.938 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.798e-05/0.3483, allocations: 11.98 kB / 0.7737 GB, free: 21.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3483, allocations: 4 kB / 0.7737 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3483, allocations: 4 kB / 0.7737 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3483, allocations: 0 / 0.7737 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3483, allocations: 0 / 0.7737 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006763/0.349, allocations: 0.8753 MB / 0.7746 GB, free: 20.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.349, allocations: 77.11 kB / 0.7746 GB, free: 20.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.3491, allocations: 11.94 kB / 0.7746 GB, free: 20.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3492, allocations: 23.97 kB / 0.7747 GB, free: 20.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3493, allocations: 31.97 kB / 0.7747 GB, free: 20.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.3493, allocations: 7.984 kB / 0.7747 GB, free: 20.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.3494, allocations: 100.2 kB / 0.7748 GB, free: 20.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3494, allocations: 0 / 0.7748 GB, free: 20.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002934/0.3497, allocations: 24 kB / 0.7748 GB, free: 20.14 MB / 458.7 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.6e-05/0.3498, allocations: 103.2 kB / 0.7749 GB, free: 20.03 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.3502, allocations: 266.7 kB / 0.7752 GB, free: 19.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3502, allocations: 0 / 0.7752 GB, free: 19.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.3504, allocations: 143.3 kB / 0.7753 GB, free: 19.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.3506, allocations: 13.83 kB / 0.7753 GB, free: 19.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.3511, allocations: 363.8 kB / 0.7757 GB, free: 19.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.3512, allocations: 0.6926 MB / 0.7763 GB, free: 18.46 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.841e-05/0.3513, allocations: 11.98 kB / 0.7764 GB, free: 18.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.984e-05/0.3513, allocations: 11.44 kB / 0.7764 GB, free: 18.44 MB / 458.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3513, allocations: 0 / 0.7764 GB, free: 18.44 MB / 458.7 MB Notification: Performance of Templates: time 0.003265/0.3546, allocations: 1.673 MB / 0.778 GB, free: 16.79 MB / 458.7 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)