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.002097/0.002097, allocations: 111.8 kB / 16.41 MB, free: 6.016 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.002247/0.002247, allocations: 191.5 kB / 17.34 MB, free: 5.629 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.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002561/0.002561, allocations: 282.8 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 1.032/1.032, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002697, allocations: 95.86 kB / 0.6821 GB, free: 7 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4766/0.4793, allocations: 86.98 MB / 0.767 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002797/0.4821, allocations: 1.476 MB / 0.7685 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008395/0.4829, allocations: 464.7 kB / 0.7689 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.42e-05/0.483, allocations: 3.938 kB / 0.7689 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.4831, allocations: 3.938 kB / 0.7689 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.043e-05/0.4832, allocations: 19.84 kB / 0.7689 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.4834, allocations: 35.95 kB / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.4836, allocations: 95.77 kB / 0.7691 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.4837, allocations: 8.172 kB / 0.7691 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.4838, allocations: 59.77 kB / 0.7691 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.373e-05/0.4839, allocations: 35.89 kB / 0.7692 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.4839, allocations: 11.94 kB / 0.7692 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.4839, allocations: 8 kB / 0.7692 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.484, allocations: 15.92 kB / 0.7692 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.256e-05/0.4841, allocations: 43.8 kB / 0.7692 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.4842, allocations: 83.55 kB / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4842, allocations: 0 / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.994e-06/0.4842, allocations: 4 kB / 0.7693 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.4842, allocations: 0 / 0.7693 GB, free: 1.543 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.0008136/0.4851, allocations: 448.4 kB / 0.7697 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4851, allocations: 12.03 kB / 0.7697 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.4851, allocations: 8.891 kB / 0.7698 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.4854, allocations: 198.2 kB / 0.7699 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.4854, allocations: 12.38 kB / 0.77 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.4854, allocations: 4.375 kB / 0.77 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003523/0.4858, allocations: 117.7 kB / 0.7701 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4858, allocations: 0 / 0.7701 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.4858, allocations: 4 kB / 0.7701 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.4858, allocations: 4 kB / 0.7701 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003286/0.4861, allocations: 87.92 kB / 0.7702 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000626/0.4868, allocations: 328.7 kB / 0.7705 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.4871, allocations: 98.45 kB / 0.7706 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.4873, allocations: 64.94 kB / 0.7706 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.4873, allocations: 7.984 kB / 0.7706 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003399/0.4877, allocations: 119.3 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.4877, allocations: 0 / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0007879/0.4885, allocations: 283.1 kB / 0.771 GB, free: 15.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.4885, allocations: 81.11 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.4887, allocations: 136.8 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.4887, allocations: 29.7 kB / 0.7713 GB, free: 15.33 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.4888, allocations: 100.1 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.4888, allocations: 23.91 kB / 0.7714 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.713e-05/0.4888, allocations: 29.7 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.489, allocations: 322.8 kB / 0.7717 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.4892, allocations: 67.94 kB / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.4894, allocations: 71.89 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.4898, allocations: 185.9 kB / 0.772 GB, free: 14.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4898, allocations: 0 / 0.772 GB, free: 14.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005341/0.4903, allocations: 265 kB / 0.7723 GB, free: 14.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.405e-05/0.4904, allocations: 59.41 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4904, allocations: 0 / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4904, allocations: 0 / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.4905, allocations: 15.92 kB / 0.7724 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.4905, allocations: 7.984 kB / 0.7724 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.4907, allocations: 19.98 kB / 0.7724 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.4907, allocations: 8.25 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.0001482/0.4909, allocations: 161.9 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.4909, allocations: 7.953 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.4909, allocations: 8.375 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4909, allocations: 4 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4909, allocations: 4 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.491, allocations: 3.984 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.4911, allocations: 189.6 kB / 0.7727 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4911, allocations: 0 / 0.7727 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.457e-05/0.4912, allocations: 19.97 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4912, allocations: 0 / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.4913, allocations: 4 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4913, allocations: 4 kB / 0.7728 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4913, allocations: 0 / 0.7728 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005329/0.4918, allocations: 250.6 kB / 0.773 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.13e-05/0.4919, allocations: 85.06 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.4919, allocations: 4 kB / 0.7731 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.492, allocations: 19.97 kB / 0.7731 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4922, allocations: 35.95 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.4922, allocations: 4 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.153e-05/0.4923, allocations: 103.2 kB / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.4923, allocations: 0 / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002215/0.4925, allocations: 31.88 kB / 0.7733 GB, free: 13.08 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.0001263/0.4926, allocations: 103.2 kB / 0.7734 GB, free: 12.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005463/0.4932, allocations: 254.6 kB / 0.7736 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4932, allocations: 0 / 0.7736 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.4934, allocations: 139.3 kB / 0.7738 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.4937, allocations: 16.31 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.0005681/0.4942, allocations: 215.2 kB / 0.774 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.4946, allocations: 0.6923 MB / 0.7747 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.59e-05/0.4947, allocations: 15.73 kB / 0.7747 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.4947, allocations: 15.44 kB / 0.7747 GB, free: 11.54 MB / 0.545 GB Notification: Performance of SimCode: time 5.31e-07/0.4947, allocations: 0 / 0.7747 GB, free: 11.54 MB / 0.545 GB Notification: Performance of Templates: time 0.004877/0.4996, allocations: 1.864 MB / 0.7765 GB, free: 9.691 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)