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.001194/0.001194, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001156/0.001156, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002164, allocations: 285.6 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9439/0.9439, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 99.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.459/0.461, allocations: 86.97 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.00284/0.4639, allocations: 1.482 MB / 0.7685 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008694/0.4647, allocations: 460.7 kB / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.376e-05/0.4649, allocations: 4 kB / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.465, allocations: 7.922 kB / 0.7689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.563e-05/0.4651, allocations: 11.88 kB / 0.7689 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.4653, allocations: 35.88 kB / 0.769 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.4655, allocations: 99.81 kB / 0.769 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.4656, allocations: 16.19 kB / 0.7691 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.4658, allocations: 55.77 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.4659, allocations: 35.89 kB / 0.7691 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.4659, allocations: 8 kB / 0.7692 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.205e-05/0.466, allocations: 8 kB / 0.7692 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.641e-05/0.466, allocations: 15.92 kB / 0.7692 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.272e-05/0.4661, allocations: 43.78 kB / 0.7692 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.4663, allocations: 79.42 kB / 0.7693 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4663, allocations: 0 / 0.7693 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4663, allocations: 0 / 0.7693 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.4663, allocations: 4 kB / 0.7693 GB, free: 1.566 MB / 0.5294 GB 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.0007463/0.467, allocations: 453.1 kB / 0.7697 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.4671, allocations: 8.031 kB / 0.7697 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.4671, allocations: 16.84 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.4673, allocations: 184.2 kB / 0.7699 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.4674, allocations: 4.375 kB / 0.7699 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.4674, allocations: 4.375 kB / 0.7699 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.4677, allocations: 125.7 kB / 0.7701 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.4677, allocations: 4 kB / 0.7701 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.4678, allocations: 0 / 0.7701 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4678, allocations: 0 / 0.7701 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.4681, allocations: 91.91 kB / 0.7702 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.4687, allocations: 340.6 kB / 0.7705 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.469, allocations: 106.5 kB / 0.7706 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.4692, allocations: 68.94 kB / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.4693, allocations: 0 / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003739/0.4696, allocations: 123.3 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.4697, allocations: 4 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0007428/0.4704, allocations: 271.1 kB / 0.771 GB, free: 15.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.4705, allocations: 89.09 kB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.4706, allocations: 137 kB / 0.7712 GB, free: 15.37 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.4707, allocations: 33.7 kB / 0.7713 GB, free: 15.33 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.4707, allocations: 92.05 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.4708, allocations: 19.73 kB / 0.7714 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.4708, allocations: 29.72 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.471, allocations: 326.8 kB / 0.7717 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.4712, allocations: 63.89 kB / 0.7718 GB, free: 14.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.4714, allocations: 71.95 kB / 0.7718 GB, free: 14.72 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.4717, allocations: 181.8 kB / 0.772 GB, free: 14.52 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4718, allocations: 256 / 0.772 GB, free: 14.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005086/0.4723, allocations: 261.1 kB / 0.7723 GB, free: 14.25 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.4723, allocations: 71.33 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4723, allocations: 8 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.4724, allocations: 0 / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.4725, allocations: 15.92 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4725, allocations: 4 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.4727, allocations: 19.97 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.853e-05/0.4727, allocations: 4 kB / 0.7724 GB, free: 14.11 MB / 0.545 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.0001405/0.4728, allocations: 155.5 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.4729, allocations: 15.91 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.4729, allocations: 12.36 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.4729, allocations: 4 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4729, allocations: 0 / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4729, allocations: 0 / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.4731, allocations: 189.5 kB / 0.7727 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4731, allocations: 4 kB / 0.7728 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.779e-05/0.4732, allocations: 11.98 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4732, allocations: 0 / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.4732, allocations: 4 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4732, allocations: 8 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4733, allocations: 0 / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005178/0.4738, allocations: 246.5 kB / 0.773 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.4738, allocations: 89 kB / 0.7731 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.201e-05/0.4739, allocations: 7.984 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.474, allocations: 23.98 kB / 0.7731 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.4742, allocations: 31.95 kB / 0.7732 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.4742, allocations: 4 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.074e-05/0.4743, allocations: 99.27 kB / 0.7733 GB, free: 13.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4743, allocations: 0 / 0.7733 GB, free: 13.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002218/0.4745, allocations: 31.94 kB / 0.7733 GB, free: 13.09 MB / 0.545 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.0001034/0.4746, allocations: 99.23 kB / 0.7734 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005383/0.4751, allocations: 270.6 kB / 0.7736 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4752, allocations: 3.938 kB / 0.7736 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.4754, allocations: 135.4 kB / 0.7738 GB, free: 12.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.4757, allocations: 16.17 kB / 0.7738 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.4762, allocations: 253 kB / 0.774 GB, free: 12.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.4765, allocations: 0.6885 MB / 0.7747 GB, free: 11.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.4765, allocations: 15.44 kB / 0.7747 GB, free: 11.51 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4765, allocations: 0 / 0.7747 GB, free: 11.51 MB / 0.545 GB Notification: Performance of Templates: time 0.003274/0.4798, allocations: 1.441 MB / 0.7761 GB, free: 10.08 MB / 0.545 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)