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.005991/0.005991, allocations: 96.84 kB / 15.73 MB, free: 6.047 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.001162/0.001162, allocations: 192.8 kB / 16.67 MB, free: 5.957 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.289/1.289, 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.002104/0.002104, allocations: 294.2 kB / 290.8 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.9122/0.9122, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 96.09 kB / 0.6814 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3524, allocations: 86.97 MB / 0.7663 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002413/0.3549, allocations: 1.48 MB / 0.7678 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007232/0.3556, allocations: 464.6 kB / 0.7682 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.832e-05/0.3557, allocations: 4 kB / 0.7682 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.855e-05/0.3558, allocations: 3.938 kB / 0.7682 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.345e-05/0.3559, allocations: 11.86 kB / 0.7683 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.356, allocations: 39.89 kB / 0.7683 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.3562, allocations: 99.81 kB / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.869e-05/0.3563, allocations: 8.188 kB / 0.7684 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.3564, allocations: 63.75 kB / 0.7685 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.501e-05/0.3565, allocations: 39.89 kB / 0.7685 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.3566, allocations: 8 kB / 0.7685 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.014e-05/0.3566, allocations: 11.94 kB / 0.7685 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.3566, allocations: 8 kB / 0.7685 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.3567, allocations: 47.77 kB / 0.7686 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.3569, allocations: 75.44 kB / 0.7686 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3569, allocations: 0 / 0.7686 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3569, allocations: 0 / 0.7686 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.3569, allocations: 0 / 0.7686 GB, free: 1.586 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.0006328/0.3575, allocations: 457.1 kB / 0.7691 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3576, allocations: 8.031 kB / 0.7691 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.3576, allocations: 12.84 kB / 0.7691 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.3578, allocations: 192.2 kB / 0.7693 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3578, allocations: 8.375 kB / 0.7693 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.3578, allocations: 4.375 kB / 0.7693 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.3581, allocations: 113.8 kB / 0.7694 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3581, allocations: 8 kB / 0.7694 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.3582, allocations: 0 / 0.7694 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.3582, allocations: 0 / 0.7694 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002942/0.3585, allocations: 87.92 kB / 0.7695 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.359, allocations: 332.6 kB / 0.7698 GB, free: 244 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.3593, allocations: 110.5 kB / 0.7699 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.3595, allocations: 68.94 kB / 0.77 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.3595, allocations: 0 / 0.77 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.3598, allocations: 127.3 kB / 0.7701 GB, free: 15.91 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.3598, allocations: 0 / 0.7701 GB, free: 15.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0006763/0.3605, allocations: 279.2 kB / 0.7704 GB, free: 15.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.3605, allocations: 85.05 kB / 0.7704 GB, free: 15.53 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.3607, allocations: 133.8 kB / 0.7706 GB, free: 15.39 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.3607, allocations: 29.7 kB / 0.7706 GB, free: 15.35 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/0.3607, allocations: 96.05 kB / 0.7707 GB, free: 15.25 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.3608, allocations: 27.8 kB / 0.7707 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.686e-05/0.3608, allocations: 29.66 kB / 0.7707 GB, free: 15.19 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3609, allocations: 326.8 kB / 0.7711 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.3611, allocations: 63.95 kB / 0.7711 GB, free: 14.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3613, allocations: 63.95 kB / 0.7712 GB, free: 14.74 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.3617, allocations: 189.8 kB / 0.7714 GB, free: 14.53 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3617, allocations: 0 / 0.7714 GB, free: 14.53 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004835/0.3622, allocations: 260.8 kB / 0.7716 GB, free: 14.26 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.58e-05/0.3622, allocations: 67.39 kB / 0.7717 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3622, allocations: 0 / 0.7717 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3623, allocations: 0 / 0.7717 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3624, allocations: 16.23 kB / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.3624, allocations: 4 kB / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.3625, allocations: 27.97 kB / 0.7717 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3626, allocations: 4 kB / 0.7717 GB, free: 14.13 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.0001139/0.3627, allocations: 155.5 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.3627, allocations: 11.91 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.3627, allocations: 8.375 kB / 0.7719 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3628, allocations: 4 kB / 0.7719 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3628, allocations: 4 kB / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3628, allocations: 96 / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.3629, allocations: 193.5 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3629, allocations: 4 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.341e-05/0.363, allocations: 11.98 kB / 0.7721 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.363, allocations: 0 / 0.7721 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.363, allocations: 0 / 0.7721 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.363, allocations: 0 / 0.7721 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.363, allocations: 7.938 kB / 0.7721 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.3635, allocations: 246.6 kB / 0.7723 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.3636, allocations: 92.98 kB / 0.7724 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.3636, allocations: 8 kB / 0.7724 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.3638, allocations: 19.97 kB / 0.7725 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3639, allocations: 35.97 kB / 0.7725 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3639, allocations: 4 kB / 0.7725 GB, free: 13.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.483e-05/0.364, allocations: 102.1 kB / 0.7726 GB, free: 13.13 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.364, allocations: 0 / 0.7726 GB, free: 13.13 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002121/0.3642, allocations: 27.94 kB / 0.7726 GB, free: 13.11 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 8.555e-05/0.3643, allocations: 107.2 kB / 0.7727 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.3648, allocations: 270.6 kB / 0.773 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3648, allocations: 0 / 0.773 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.365, allocations: 131.4 kB / 0.7731 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.3653, allocations: 16.3 kB / 0.7731 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004709/0.3657, allocations: 231.2 kB / 0.7733 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.366, allocations: 0.6885 MB / 0.774 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.207e-05/0.366, allocations: 15.73 kB / 0.774 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.3661, allocations: 11.44 kB / 0.774 GB, free: 11.55 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.3661, allocations: 0 / 0.774 GB, free: 11.55 MB / 0.545 GB Notification: Performance of Templates: time 0.004228/0.3703, allocations: 1.926 MB / 0.7759 GB, free: 9.641 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)