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.001426/0.001426, allocations: 111.8 kB / 16.41 MB, free: 6.441 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.00147/0.00147, allocations: 189.5 kB / 17.34 MB, free: 5.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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002232/0.002232, allocations: 284.1 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9371/0.9371, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 95.84 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3976, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002477/0.4001, allocations: 1.469 MB / 0.7684 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007721/0.4009, allocations: 464.6 kB / 0.7689 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.556e-05/0.4009, allocations: 4 kB / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.189e-05/0.401, allocations: 3.938 kB / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.384e-05/0.4011, allocations: 19.8 kB / 0.7689 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.4013, allocations: 35.89 kB / 0.7689 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.4015, allocations: 103.7 kB / 0.769 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.4016, allocations: 20.17 kB / 0.7691 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.4018, allocations: 47.89 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.4019, allocations: 39.83 kB / 0.7691 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.4019, allocations: 8 kB / 0.7692 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.186e-05/0.4019, allocations: 8 kB / 0.7692 GB, free: 1.699 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.604e-05/0.402, allocations: 19.92 kB / 0.7692 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.217e-05/0.402, allocations: 39.8 kB / 0.7692 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.4022, allocations: 79.41 kB / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4022, allocations: 0 / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4022, allocations: 0 / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.4022, allocations: 4 kB / 0.7693 GB, free: 1.562 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.0006886/0.4029, allocations: 453.1 kB / 0.7697 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.4029, allocations: 8.031 kB / 0.7697 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.403, allocations: 12.84 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.4032, allocations: 184.3 kB / 0.7699 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.4032, allocations: 4.375 kB / 0.7699 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.4032, allocations: 8.375 kB / 0.7699 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.4035, allocations: 121.7 kB / 0.7701 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.4036, allocations: 7.938 kB / 0.7701 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.4036, allocations: 4 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.4036, allocations: 0 / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002817/0.4039, allocations: 87.92 kB / 0.7702 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000531/0.4044, allocations: 332.7 kB / 0.7705 GB, free: 220 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.4047, allocations: 106.5 kB / 0.7706 GB, free: 104 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.4049, allocations: 72.88 kB / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.4049, allocations: 0 / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.4053, allocations: 123.3 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.4053, allocations: 7.938 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0006895/0.406, allocations: 271.2 kB / 0.771 GB, free: 15.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.406, allocations: 85.11 kB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.4061, allocations: 144.7 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.4062, allocations: 29.7 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.4062, allocations: 96.03 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.4063, allocations: 15.75 kB / 0.7714 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.679e-05/0.4063, allocations: 33.7 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4064, allocations: 322.8 kB / 0.7717 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.4066, allocations: 59.95 kB / 0.7718 GB, free: 14.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.4068, allocations: 79.88 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.4071, allocations: 182 kB / 0.772 GB, free: 14.51 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4072, allocations: 0 / 0.772 GB, free: 14.51 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004918/0.4077, allocations: 264.8 kB / 0.7723 GB, free: 14.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.819e-05/0.4077, allocations: 63.41 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.4077, allocations: 4 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4078, allocations: 0 / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.4079, allocations: 11.98 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.4079, allocations: 4 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.408, allocations: 19.97 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.4081, allocations: 4 kB / 0.7724 GB, free: 14.12 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.0001266/0.4082, allocations: 163.4 kB / 0.7725 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.4082, allocations: 15.91 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.653e-05/0.4083, allocations: 8.375 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.4083, allocations: 4 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4083, allocations: 0 / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4083, allocations: 0 / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.4084, allocations: 189.5 kB / 0.7727 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4084, allocations: 4 kB / 0.7727 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-05/0.4085, allocations: 15.98 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4085, allocations: 256 / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.4086, allocations: 3.984 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.4086, allocations: 12 kB / 0.7728 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4086, allocations: 0 / 0.7728 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004604/0.409, allocations: 242.6 kB / 0.773 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.4091, allocations: 85.02 kB / 0.7731 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.4091, allocations: 8.031 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.4093, allocations: 31.91 kB / 0.7731 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.4094, allocations: 31.91 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.4094, allocations: 7.984 kB / 0.7732 GB, free: 13.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.812e-05/0.4095, allocations: 99.27 kB / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4095, allocations: 0 / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002089/0.4097, allocations: 31.94 kB / 0.7733 GB, free: 13.07 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.0001092/0.4098, allocations: 95.25 kB / 0.7734 GB, free: 12.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005018/0.4103, allocations: 270.9 kB / 0.7736 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4103, allocations: 0 / 0.7736 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.4106, allocations: 139.3 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.0002066/0.4108, allocations: 16.14 kB / 0.7738 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005166/0.4113, allocations: 249 kB / 0.774 GB, free: 12.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.4116, allocations: 0.6885 MB / 0.7747 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.4117, allocations: 15.44 kB / 0.7747 GB, free: 11.51 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4117, allocations: 4 kB / 0.7747 GB, free: 11.5 MB / 0.545 GB Notification: Performance of Templates: time 0.002926/0.4146, allocations: 1.436 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)