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.001416/0.001416, allocations: 110.4 kB / 16.27 MB, free: 6.352 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.001419/0.001419, allocations: 190.2 kB / 17.2 MB, free: 5.953 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.395/1.395, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002233/0.002234, allocations: 286.4 kB / 291.3 MB, free: 14.56 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9677/0.9677, allocations: 169.3 MB / 0.4988 GB, free: 4.523 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002265, allocations: 96.08 kB / 0.5959 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2116, allocations: 86.97 MB / 0.6808 GB, free: 8.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002865/0.2145, allocations: 1.482 MB / 0.6823 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007795/0.2153, allocations: 450.9 kB / 0.6827 GB, free: 6.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.913e-05/0.2154, allocations: 4 kB / 0.6827 GB, free: 6.258 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.329e-05/0.2155, allocations: 7.922 kB / 0.6827 GB, free: 6.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.828e-05/0.2156, allocations: 11.86 kB / 0.6827 GB, free: 6.238 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.2158, allocations: 43.89 kB / 0.6828 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000154/0.2159, allocations: 95.77 kB / 0.6829 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2161, allocations: 20.16 kB / 0.6829 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2162, allocations: 51.83 kB / 0.6829 GB, free: 6.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.2163, allocations: 39.83 kB / 0.683 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.2163, allocations: 11.94 kB / 0.683 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.15e-05/0.2163, allocations: 8 kB / 0.683 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.757e-05/0.2164, allocations: 19.92 kB / 0.683 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.657e-05/0.2165, allocations: 35.86 kB / 0.683 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.2166, allocations: 83.97 kB / 0.6831 GB, free: 5.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2166, allocations: 4 kB / 0.6831 GB, free: 5.832 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2166, allocations: 0 / 0.6831 GB, free: 5.832 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.2166, allocations: 0 / 0.6831 GB, free: 5.832 MB / 494.1 MB 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.0006941/0.2173, allocations: 442.7 kB / 0.6835 GB, free: 5.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2174, allocations: 12.03 kB / 0.6835 GB, free: 5.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.2174, allocations: 8.844 kB / 0.6836 GB, free: 5.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.2176, allocations: 196.1 kB / 0.6837 GB, free: 5.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2176, allocations: 4.375 kB / 0.6837 GB, free: 5.086 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.2177, allocations: 16.38 kB / 0.6838 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.218, allocations: 113.7 kB / 0.6839 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.218, allocations: 0 / 0.6839 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.218, allocations: 0 / 0.6839 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.218, allocations: 4 kB / 0.6839 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.2183, allocations: 83.92 kB / 0.684 GB, free: 4.867 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.2189, allocations: 340.6 kB / 0.6843 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.2192, allocations: 102.5 kB / 0.6844 GB, free: 4.375 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.2194, allocations: 76.94 kB / 0.6845 GB, free: 4.297 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.2195, allocations: 0 / 0.6845 GB, free: 4.297 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003207/0.2198, allocations: 127.2 kB / 0.6846 GB, free: 4.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.2198, allocations: 0 / 0.6846 GB, free: 4.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007014/0.2205, allocations: 279.3 kB / 0.6848 GB, free: 3.875 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.2206, allocations: 85.11 kB / 0.6849 GB, free: 3.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.712e-05/0.2207, allocations: 124.4 kB / 0.685 GB, free: 3.645 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.2207, allocations: 33.7 kB / 0.6851 GB, free: 3.605 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.252e-05/0.2208, allocations: 104 kB / 0.6852 GB, free: 3.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.206e-05/0.2208, allocations: 15.88 kB / 0.6852 GB, free: 3.484 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.2209, allocations: 33.7 kB / 0.6852 GB, free: 3.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.899e-05/0.221, allocations: 318.8 kB / 0.6855 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.2212, allocations: 72 kB / 0.6856 GB, free: 3.055 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.2214, allocations: 71.89 kB / 0.6857 GB, free: 2.984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003471/0.2217, allocations: 185.9 kB / 0.6858 GB, free: 2.781 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2217, allocations: 0 / 0.6858 GB, free: 2.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004815/0.2222, allocations: 260.9 kB / 0.6861 GB, free: 2.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.2223, allocations: 63.41 kB / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.2223, allocations: 0 / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2223, allocations: 0 / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.2224, allocations: 19.97 kB / 0.6862 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.2225, allocations: 0 / 0.6862 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.2226, allocations: 19.89 kB / 0.6862 GB, free: 2.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.2226, allocations: 4 kB / 0.6862 GB, free: 2.391 MB / 494.1 MB 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.000121/0.2228, allocations: 163.5 kB / 0.6863 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/0.2228, allocations: 7.906 kB / 0.6864 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.2228, allocations: 12.38 kB / 0.6864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2228, allocations: 0 / 0.6864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2228, allocations: 0 / 0.6864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2229, allocations: 3.984 kB / 0.6864 GB, free: 2.191 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.223, allocations: 193.5 kB / 0.6866 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.223, allocations: 0 / 0.6866 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-05/0.2231, allocations: 23.97 kB / 0.6866 GB, free: 1.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2231, allocations: 3.984 kB / 0.6866 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2231, allocations: 4 kB / 0.6866 GB, free: 1.922 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2231, allocations: 3.938 kB / 0.6866 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2232, allocations: 0 / 0.6866 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004708/0.2236, allocations: 246.6 kB / 0.6868 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.2237, allocations: 88.95 kB / 0.6869 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.2237, allocations: 4 kB / 0.6869 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.2239, allocations: 23.97 kB / 0.6869 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.224, allocations: 35.95 kB / 0.687 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.224, allocations: 4.062 kB / 0.687 GB, free: 1.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.418e-05/0.2241, allocations: 99.27 kB / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2241, allocations: 0 / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.2243, allocations: 31.88 kB / 0.6871 GB, free: 1.352 MB / 494.1 MB 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.0001006/0.2244, allocations: 103.2 kB / 0.6872 GB, free: 1.242 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005322/0.2249, allocations: 270.6 kB / 0.6875 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2249, allocations: 0 / 0.6875 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.2252, allocations: 139.3 kB / 0.6876 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.2254, allocations: 21.48 kB / 0.6876 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005123/0.2259, allocations: 237.1 kB / 0.6878 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3347/0.5607, allocations: 0.6861 MB / 0.6885 GB, free: 17.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.65e-05/0.5608, allocations: 16.8 kB / 0.6885 GB, free: 17.84 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5608, allocations: 0 / 0.6885 GB, free: 17.84 MB / 494.1 MB Notification: Performance of Templates: time 0.004147/0.565, allocations: 1.439 MB / 0.6899 GB, free: 17.82 MB / 494.1 MB 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)