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.001825/0.001825, allocations: 85.48 kB / 19.44 MB, free: 340 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.002046/0.002046, allocations: 177.6 kB / 22.76 MB, free: 1.66 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 1.545/1.545, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.361/3.361, allocations: 429.5 MB / 0.6729 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 176] 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.1.|numReq.u.2.|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.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.879e-06, allocations: 4 kB / 0.8774 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/3.439e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.707 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00311/0.003144, allocations: 1.515 MB / 0.8789 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.004185, allocations: 0.4991 MB / 0.8794 GB, free: 4.707 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-05/0.00424, allocations: 4 kB / 0.8794 GB, free: 4.703 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.71e-05/0.004337, allocations: 10.89 kB / 0.8794 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.188e-05/0.004399, allocations: 15.86 kB / 0.8794 GB, free: 4.68 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.004658, allocations: 51.75 kB / 0.8794 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.004848, allocations: 103.8 kB / 0.8795 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.872e-05/0.004937, allocations: 12.17 kB / 0.8796 GB, free: 4.516 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000228/0.005165, allocations: 63.83 kB / 0.8796 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.591e-05/0.005261, allocations: 41.44 kB / 0.8797 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.005294, allocations: 8 kB / 0.8797 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.867e-05/0.005343, allocations: 12 kB / 0.8797 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.00539, allocations: 15.92 kB / 0.8797 GB, free: 4.379 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.798e-05/0.005458, allocations: 32.59 kB / 0.8797 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.005658, allocations: 95.73 kB / 0.8798 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.005661, allocations: 1.656 kB / 0.8798 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.62e-07/0.005662, allocations: 0 / 0.8798 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.005666, allocations: 0 / 0.8798 GB, free: 4.254 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.0007921/0.006458, allocations: 480.2 kB / 0.8803 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.006494, allocations: 8.031 kB / 0.8803 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.006667, allocations: 29.5 kB / 0.8803 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.006909, allocations: 139.7 kB / 0.8804 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.006927, allocations: 12.38 kB / 0.8805 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.006956, allocations: 4.375 kB / 0.8805 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.007272, allocations: 135.9 kB / 0.8806 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.007282, allocations: 192 / 0.8806 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.007304, allocations: 12.11 kB / 0.8806 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.007311, allocations: 4 kB / 0.8806 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.007588, allocations: 101.7 kB / 0.8807 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005725/0.008161, allocations: 319.6 kB / 0.881 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.008478, allocations: 132.7 kB / 0.8811 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.008677, allocations: 101.4 kB / 0.8812 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.008695, allocations: 0 / 0.8812 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.009014, allocations: 150.7 kB / 0.8814 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.009015, allocations: 3.938 kB / 0.8814 GB, free: 2.484 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0007485/0.009764, allocations: 318.6 kB / 0.8817 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.225e-05/0.009846, allocations: 85.11 kB / 0.8818 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.01003, allocations: 201.9 kB / 0.882 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.01006, allocations: 29.7 kB / 0.882 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.01017, allocations: 146.8 kB / 0.8821 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.0102, allocations: 15.91 kB / 0.8821 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-05/0.01028, allocations: 43.36 kB / 0.8822 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002755/0.01055, allocations: 0.4923 MB / 0.8827 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.01077, allocations: 115.4 kB / 0.8828 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.011, allocations: 123.3 kB / 0.8829 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.01132, allocations: 177 kB / 0.8831 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01132, allocations: 0 / 0.8831 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005776/0.0119, allocations: 320.3 kB / 0.8834 GB, free: 288 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.807e-05/0.01197, allocations: 67.39 kB / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.01197, allocations: 0 / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.01199, allocations: 0 / 0.8834 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.0121, allocations: 19.92 kB / 0.8834 GB, free: 188 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.0121, allocations: 0 / 0.8834 GB, free: 188 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.01224, allocations: 27.88 kB / 0.8835 GB, free: 160 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.01226, allocations: 8 kB / 0.8835 GB, free: 152 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 0.0001918/0.01245, allocations: 198.3 kB / 0.8837 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.815e-05/0.01249, allocations: 19.88 kB / 0.8837 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.809e-05/0.01253, allocations: 8.781 kB / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.01253, allocations: 4 kB / 0.8837 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.01253, allocations: 0 / 0.8837 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.01254, allocations: 0 / 0.8837 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.01271, allocations: 144.7 kB / 0.8838 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01271, allocations: 0 / 0.8838 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.645e-05/0.01279, allocations: 19.86 kB / 0.8839 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.01279, allocations: 4 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.0128, allocations: 0 / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.0128, allocations: 0 / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01281, allocations: 4 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.01334, allocations: 275.7 kB / 0.8841 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.068e-05/0.01336, allocations: 11.89 kB / 0.8841 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.01339, allocations: 8 kB / 0.8841 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.0135, allocations: 11.98 kB / 0.8842 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.01365, allocations: 43.94 kB / 0.8842 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.01367, allocations: 11.98 kB / 0.8842 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001067/0.01378, allocations: 143.2 kB / 0.8843 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01378, allocations: 0 / 0.8843 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00021/0.01399, allocations: 28 kB / 0.8844 GB, free: 15.14 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 0.000121/0.01411, allocations: 99.19 kB / 0.8845 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005898/0.0147, allocations: 347.5 kB / 0.8848 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.0147, allocations: 0 / 0.8848 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.01499, allocations: 180.8 kB / 0.885 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.01521, allocations: 22.42 kB / 0.885 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005884/0.0158, allocations: 264.3 kB / 0.8852 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.238e-05/0.01588, allocations: 76.12 kB / 0.8853 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.055e-05/0.01593, allocations: 4 kB / 0.8853 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.01598, allocations: 24.48 kB / 0.8853 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of SimCode: time 6.81e-07/0.01598, allocations: 0 / 0.8853 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of Templates: time 0.005891/0.02188, allocations: 2.05 MB / 0.8874 GB, free: 11.99 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.490793947945349]