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.005122/0.005122, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.001174/0.001174, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 291.9 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9206/0.9206, allocations: 169.3 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 95.84 kB / 0.6814 GB, free: 7.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3687, allocations: 86.98 MB / 0.7664 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.00246/0.3712, allocations: 1.464 MB / 0.7678 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007707/0.372, allocations: 464.6 kB / 0.7682 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.691e-05/0.3721, allocations: 8 kB / 0.7682 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.559e-05/0.3722, allocations: 7.875 kB / 0.7682 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.641e-05/0.3722, allocations: 15.84 kB / 0.7683 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.3724, allocations: 35.95 kB / 0.7683 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.3726, allocations: 95.77 kB / 0.7684 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.774e-05/0.3727, allocations: 16.17 kB / 0.7684 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3729, allocations: 51.83 kB / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.434e-05/0.3729, allocations: 39.89 kB / 0.7685 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.373, allocations: 8 kB / 0.7685 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.852e-05/0.373, allocations: 11.94 kB / 0.7685 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.213e-05/0.3731, allocations: 15.92 kB / 0.7685 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.859e-05/0.3731, allocations: 43.78 kB / 0.7686 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.3733, allocations: 79.42 kB / 0.7686 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3733, allocations: 4 kB / 0.7686 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3733, allocations: 0 / 0.7686 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3733, allocations: 0 / 0.7686 GB, free: 1.602 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.0006471/0.374, allocations: 449.1 kB / 0.7691 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.374, allocations: 8.031 kB / 0.7691 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.374, allocations: 12.84 kB / 0.7691 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.3742, allocations: 188.2 kB / 0.7693 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.3742, allocations: 8.375 kB / 0.7693 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.3743, allocations: 8.375 kB / 0.7693 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.3746, allocations: 121.7 kB / 0.7694 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.3746, allocations: 0 / 0.7694 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.3746, allocations: 4 kB / 0.7694 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3746, allocations: 4 kB / 0.7694 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.3749, allocations: 87.92 kB / 0.7695 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.3755, allocations: 332.7 kB / 0.7698 GB, free: 260 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.3758, allocations: 102.5 kB / 0.7699 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.376, allocations: 76.81 kB / 0.77 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.376, allocations: 8 kB / 0.77 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003186/0.3763, allocations: 119.3 kB / 0.7701 GB, free: 15.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.543e-06/0.3763, allocations: 0 / 0.7701 GB, free: 15.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0007047/0.377, allocations: 275.2 kB / 0.7704 GB, free: 15.65 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.3771, allocations: 93.03 kB / 0.7705 GB, free: 15.54 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.143e-05/0.3772, allocations: 129.8 kB / 0.7706 GB, free: 15.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.3773, allocations: 29.7 kB / 0.7706 GB, free: 15.37 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.3773, allocations: 100 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.3773, allocations: 23.81 kB / 0.7707 GB, free: 15.24 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.3774, allocations: 25.7 kB / 0.7707 GB, free: 15.21 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3775, allocations: 326.8 kB / 0.7711 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.3777, allocations: 67.95 kB / 0.7711 GB, free: 14.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.3779, allocations: 67.89 kB / 0.7712 GB, free: 14.75 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.3783, allocations: 181.9 kB / 0.7714 GB, free: 14.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3783, allocations: 0 / 0.7714 GB, free: 14.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004962/0.3788, allocations: 264.8 kB / 0.7716 GB, free: 14.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/0.3788, allocations: 63.41 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.3788, allocations: 0 / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.3789, allocations: 0 / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.379, allocations: 19.97 kB / 0.7717 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.379, allocations: 0 / 0.7717 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.3792, allocations: 19.98 kB / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.3792, allocations: 4.094 kB / 0.7717 GB, free: 14.16 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.0001146/0.3793, allocations: 173.8 kB / 0.7719 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.3793, allocations: 7.906 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.3794, allocations: 8.375 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3794, allocations: 4 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3794, allocations: 3.984 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3794, allocations: 0 / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.3796, allocations: 189.6 kB / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3796, allocations: 3.984 kB / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.182e-05/0.3797, allocations: 11.98 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3797, allocations: 4 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3797, allocations: 4.25 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3797, allocations: 4 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3797, allocations: 0 / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.3802, allocations: 242.6 kB / 0.7723 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.3802, allocations: 85.02 kB / 0.7724 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.3803, allocations: 12 kB / 0.7724 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.3804, allocations: 19.97 kB / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.3806, allocations: 39.89 kB / 0.7725 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.3806, allocations: 4 kB / 0.7725 GB, free: 13.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.387e-05/0.3806, allocations: 98.64 kB / 0.7726 GB, free: 13.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3806, allocations: 0 / 0.7726 GB, free: 13.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002155/0.3809, allocations: 31.94 kB / 0.7726 GB, free: 13.12 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 9.85e-05/0.381, allocations: 107.2 kB / 0.7727 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004945/0.3815, allocations: 262.7 kB / 0.773 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3815, allocations: 0 / 0.773 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.3817, allocations: 147.2 kB / 0.7731 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.3819, allocations: 12 kB / 0.7731 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004697/0.3824, allocations: 227.3 kB / 0.7733 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3827, allocations: 0.6885 MB / 0.774 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.078e-05/0.3827, allocations: 11.73 kB / 0.774 GB, free: 11.58 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/0.3828, allocations: 15.44 kB / 0.774 GB, free: 11.57 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.3828, allocations: 0 / 0.774 GB, free: 11.57 MB / 0.545 GB Notification: Performance of Templates: time 0.004127/0.3869, allocations: 1.863 MB / 0.7759 GB, free: 9.727 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)