Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008958/0.0008958, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009103/0.0009103, allocations: 165 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9901/0.9901, allocations: 177.1 MB / 203.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.011/2.011, allocations: 429.5 MB / 0.6732 GB, free: 4.059 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.[0-9,]+.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.[0-9,]+.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 0.8781 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.704e-05/2.903e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.367 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002101/0.00213, allocations: 1.551 MB / 0.8796 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0007371/0.002868, allocations: 0.5023 MB / 0.8801 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.971e-05/0.002937, allocations: 4.594 kB / 0.8801 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.003048, allocations: 4.938 kB / 0.8801 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.991e-05/0.003108, allocations: 23.8 kB / 0.8802 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.003384, allocations: 48.97 kB / 0.8802 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.003536, allocations: 99.75 kB / 0.8803 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.975e-05/0.003626, allocations: 12.17 kB / 0.8803 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.003795, allocations: 72.81 kB / 0.8804 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.823e-05/0.003863, allocations: 39.88 kB / 0.8804 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.003884, allocations: 9.094 kB / 0.8804 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 3.882e-05/0.003923, allocations: 8 kB / 0.8804 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.00396, allocations: 15.92 kB / 0.8804 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.936e-05/0.00401, allocations: 33.05 kB / 0.8805 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.004162, allocations: 71.78 kB / 0.8805 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.004166, allocations: 4 kB / 0.8806 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.552e-06/0.004168, allocations: 5.094 kB / 0.8806 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.004172, allocations: 0 / 0.8806 GB, free: 3.887 MB / 0.8386 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.0004974/0.00467, allocations: 480.4 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.004703, allocations: 8.031 kB / 0.881 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.004825, allocations: 28.09 kB / 0.881 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.004982, allocations: 140.5 kB / 0.8812 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.004994, allocations: 4.375 kB / 0.8812 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.005012, allocations: 12.3 kB / 0.8812 GB, free: 3.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.005215, allocations: 144.6 kB / 0.8813 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.005223, allocations: 192 / 0.8813 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.005237, allocations: 8.125 kB / 0.8813 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.005243, allocations: 1.312 kB / 0.8813 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.069e-05/0.005314, allocations: 61.69 kB / 0.8814 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00034/0.005654, allocations: 311.7 kB / 0.8817 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.005769, allocations: 94.25 kB / 0.8818 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.172e-05/0.005831, allocations: 77.42 kB / 0.8819 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.005849, allocations: 4 kB / 0.8819 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.005988, allocations: 132.3 kB / 0.882 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.00599, allocations: 0 / 0.882 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003151/0.006305, allocations: 266.6 kB / 0.8822 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.006342, allocations: 81.11 kB / 0.8823 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.978e-05/0.006432, allocations: 194.1 kB / 0.8825 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.006445, allocations: 29.7 kB / 0.8825 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.506e-05/0.0065, allocations: 146.8 kB / 0.8827 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.006517, allocations: 21.44 kB / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.00656, allocations: 35.36 kB / 0.8827 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.00666, allocations: 0.4884 MB / 0.8832 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.02e-05/0.006731, allocations: 91.64 kB / 0.8833 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.387e-05/0.006795, allocations: 103.3 kB / 0.8834 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.306e-05/0.006888, allocations: 144.7 kB / 0.8835 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.006889, allocations: 0 / 0.8835 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002024/0.007092, allocations: 268.4 kB / 0.8838 GB, free: 244 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.007129, allocations: 67.39 kB / 0.8839 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.007132, allocations: 0 / 0.8839 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.007147, allocations: 0 / 0.8839 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.913e-05/0.007226, allocations: 19.92 kB / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.007231, allocations: 0 / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.002e-05/0.007291, allocations: 19.94 kB / 0.8839 GB, free: 124 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.007303, allocations: 12 kB / 0.8839 GB, free: 112 kB / 0.8386 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 8.549e-05/0.007388, allocations: 194.3 kB / 0.8841 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.007406, allocations: 15.89 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.527e-05/0.007431, allocations: 16.78 kB / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.007433, allocations: 0 / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.007437, allocations: 0 / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.007441, allocations: 3.984 kB / 0.8841 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.644e-05/0.007518, allocations: 136.6 kB / 0.8843 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007519, allocations: 0 / 0.8843 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.913e-05/0.007548, allocations: 7.938 kB / 0.8843 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.00755, allocations: 8 kB / 0.8843 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.00756, allocations: 3.984 kB / 0.8843 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.007561, allocations: 0 / 0.8843 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.007562, allocations: 0 / 0.8843 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.00775, allocations: 243.7 kB / 0.8845 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.022e-05/0.00776, allocations: 11.88 kB / 0.8845 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.007776, allocations: 4 kB / 0.8845 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.009e-05/0.007826, allocations: 19.98 kB / 0.8845 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.007921, allocations: 35.95 kB / 0.8846 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.007929, allocations: 4 kB / 0.8846 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.077e-05/0.00798, allocations: 151.1 kB / 0.8847 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.00798, allocations: 0 / 0.8847 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001369/0.008117, allocations: 24 kB / 0.8847 GB, free: 15.16 MB / 0.8542 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 6.924e-05/0.008186, allocations: 95.25 kB / 0.8848 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.008409, allocations: 303.6 kB / 0.8851 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.00841, allocations: 0 / 0.8851 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.163e-05/0.008502, allocations: 156.8 kB / 0.8853 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.008652, allocations: 23.88 kB / 0.8853 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005076/0.00916, allocations: 256.3 kB / 0.8855 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.045e-05/0.009191, allocations: 59.34 kB / 0.8856 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.459e-05/0.009225, allocations: 11.97 kB / 0.8856 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.665e-05/0.009262, allocations: 20.5 kB / 0.8856 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of SimCode: time 6.82e-07/0.009262, allocations: 4 kB / 0.8856 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of Templates: time 0.006217/0.01548, allocations: 2.066 MB / 0.8877 GB, free: 12.08 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.284345251042396]