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.0009649/0.0009649, allocations: 92.2 kB / 20.19 MB, free: 4.355 MB / 18.57 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.0008936/0.0008936, allocations: 177 kB / 23.5 MB, free: 1.047 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.919/0.919, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.087/2.087, allocations: 429.5 MB / 0.6736 GB, free: 4.027 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.213e-06/1.213e-06, allocations: 0 / 0.8781 GB, free: 6.695 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.318e-05/2.44e-05, allocations: 6.25 kB / 0.8781 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001895/0.00192, allocations: 1.544 MB / 0.8796 GB, free: 5.156 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0007091/0.002629, allocations: 0.5075 MB / 0.8801 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.796e-05/0.002697, allocations: 0 / 0.8801 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.002806, allocations: 15.86 kB / 0.8801 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.711e-05/0.002863, allocations: 20.52 kB / 0.8802 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.003128, allocations: 45.53 kB / 0.8802 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.003282, allocations: 103.7 kB / 0.8803 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.247e-05/0.003374, allocations: 16.17 kB / 0.8803 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001754/0.00355, allocations: 63.88 kB / 0.8804 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.539e-05/0.003625, allocations: 36.39 kB / 0.8804 GB, free: 4.355 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.003646, allocations: 8 kB / 0.8804 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 3.941e-05/0.003685, allocations: 9.688 kB / 0.8804 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.829e-05/0.003724, allocations: 15.92 kB / 0.8805 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.551e-05/0.003779, allocations: 35.91 kB / 0.8805 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.003918, allocations: 71.84 kB / 0.8806 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.003921, allocations: 12.38 kB / 0.8806 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.212e-06/0.003922, allocations: 1.344 kB / 0.8806 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.003926, allocations: 0 / 0.8806 GB, free: 4.207 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.0005119/0.004438, allocations: 475.7 kB / 0.881 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.004471, allocations: 9.625 kB / 0.881 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.00459, allocations: 24.88 kB / 0.8811 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.004747, allocations: 140.5 kB / 0.8812 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.00476, allocations: 12.36 kB / 0.8812 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.004774, allocations: 4.375 kB / 0.8812 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.00497, allocations: 140.6 kB / 0.8813 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.004977, allocations: 192 / 0.8813 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.004991, allocations: 8.125 kB / 0.8813 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.004998, allocations: 0 / 0.8813 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.719e-05/0.005075, allocations: 77.59 kB / 0.8814 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003528/0.005428, allocations: 303.7 kB / 0.8817 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.005551, allocations: 92.73 kB / 0.8818 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.431e-05/0.005615, allocations: 77.44 kB / 0.8819 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.005628, allocations: 4 kB / 0.8819 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.005775, allocations: 134.6 kB / 0.882 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.005776, allocations: 0 / 0.882 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003199/0.006096, allocations: 262.9 kB / 0.8823 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.006139, allocations: 85.09 kB / 0.8823 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.539e-05/0.006234, allocations: 189.9 kB / 0.8825 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.006251, allocations: 29.7 kB / 0.8825 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.006313, allocations: 142.8 kB / 0.8827 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.006331, allocations: 23.83 kB / 0.8827 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.006374, allocations: 31.38 kB / 0.8827 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.006492, allocations: 0.4961 MB / 0.8832 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-05/0.006567, allocations: 99.44 kB / 0.8833 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.736e-05/0.006634, allocations: 95.38 kB / 0.8834 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.904e-05/0.006733, allocations: 136.8 kB / 0.8835 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.006735, allocations: 7.938 kB / 0.8835 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002225/0.006958, allocations: 276.3 kB / 0.8838 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.006998, allocations: 59.41 kB / 0.8839 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.007002, allocations: 0 / 0.8839 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.007013, allocations: 0 / 0.8839 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.605e-05/0.007089, allocations: 15.98 kB / 0.8839 GB, free: 468 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.007094, allocations: 4 kB / 0.8839 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.14e-05/0.007155, allocations: 23.94 kB / 0.8839 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.007167, allocations: 4 kB / 0.8839 GB, free: 436 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.998e-05/0.007257, allocations: 194.3 kB / 0.8841 GB, free: 224 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/0.007278, allocations: 23.89 kB / 0.8841 GB, free: 200 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.007302, allocations: 12.77 kB / 0.8841 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.007304, allocations: 3.938 kB / 0.8841 GB, free: 180 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.007307, allocations: 0 / 0.8841 GB, free: 180 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.00731, allocations: 0 / 0.8841 GB, free: 180 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.895e-05/0.007399, allocations: 144.7 kB / 0.8843 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.0074, allocations: 0 / 0.8843 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.822e-05/0.007438, allocations: 7.984 kB / 0.8843 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.007441, allocations: 7.938 kB / 0.8843 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.007451, allocations: 0 / 0.8843 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.007452, allocations: 0 / 0.8843 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007453, allocations: 0 / 0.8843 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.007654, allocations: 243.8 kB / 0.8845 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.007667, allocations: 7.891 kB / 0.8845 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.007686, allocations: 8 kB / 0.8845 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.904e-05/0.007735, allocations: 19.98 kB / 0.8846 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.007836, allocations: 35.95 kB / 0.8846 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.007846, allocations: 12.05 kB / 0.8846 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.964e-05/0.007896, allocations: 150.6 kB / 0.8847 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.007896, allocations: 0 / 0.8847 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001357/0.008032, allocations: 24 kB / 0.8848 GB, free: 15.46 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 7.036e-05/0.008102, allocations: 95.25 kB / 0.8849 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.008335, allocations: 303.5 kB / 0.8851 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.008337, allocations: 0 / 0.8851 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.008439, allocations: 148.7 kB / 0.8853 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.008595, allocations: 21.02 kB / 0.8853 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005192/0.009114, allocations: 252.4 kB / 0.8856 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.263e-05/0.009147, allocations: 59.34 kB / 0.8856 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.00918, allocations: 11.98 kB / 0.8856 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.333e-05/0.009213, allocations: 16.5 kB / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of SimCode: time 6.21e-07/0.009214, allocations: 0 / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of Templates: time 0.003276/0.01249, allocations: 2.063 MB / 0.8876 GB, free: 12.41 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.187690508086234]