Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008344/0.0008344, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 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.001079/0.001079, allocations: 166.3 kB / 22.46 MB, free: 2.098 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.8759/0.8759, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.719/1.719, allocations: 377.8 MB / 0.6221 GB, free: 8.684 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 0.9809 GB, free: 2.664 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.02e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.66 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001762/0.001782, allocations: 1.498 MB / 0.9824 GB, free: 1.152 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006651/0.002447, allocations: 490.8 kB / 0.9828 GB, free: 0.668 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.002505, allocations: 3.938 kB / 0.9829 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 8.308e-05/0.002588, allocations: 3.938 kB / 0.9829 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.984e-05/0.002638, allocations: 23.84 kB / 0.9829 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.002875, allocations: 47.83 kB / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.003023, allocations: 107.7 kB / 0.983 GB, free: 496 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.747e-05/0.003121, allocations: 4.188 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.003325, allocations: 75.81 kB / 0.9831 GB, free: 416 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 8.254e-05/0.003408, allocations: 35.88 kB / 0.9831 GB, free: 380 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.003434, allocations: 8 kB / 0.9831 GB, free: 372 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.814e-05/0.003482, allocations: 12 kB / 0.9832 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.707e-05/0.003529, allocations: 15.92 kB / 0.9832 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.26e-05/0.003582, allocations: 27.98 kB / 0.9832 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.003751, allocations: 103.7 kB / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.003753, allocations: 0 / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.954e-06/0.003755, allocations: 4 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.00376, allocations: 0 / 0.9833 GB, free: 208 kB / 0.9323 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.00054/0.0043, allocations: 381.4 kB / 0.9837 GB, free: 15.79 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.004336, allocations: 8.031 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.91e-05/0.004365, allocations: 42.73 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.004467, allocations: 24.81 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.00464, allocations: 129.7 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.004651, allocations: 4.375 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.004668, allocations: 12.38 kB / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.004891, allocations: 143.8 kB / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.004898, allocations: 192 / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.00491, allocations: 7.938 kB / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.004914, allocations: 0 / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.005091, allocations: 125.6 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003716/0.005463, allocations: 279.9 kB / 0.9844 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.005651, allocations: 140.1 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.99e-05/0.005751, allocations: 94.64 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.005762, allocations: 0 / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.005963, allocations: 165 kB / 0.9848 GB, free: 14.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.005964, allocations: 0 / 0.9848 GB, free: 14.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0004562/0.006421, allocations: 338.5 kB / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.006463, allocations: 89.09 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.528e-05/0.006539, allocations: 133.3 kB / 0.9853 GB, free: 13.9 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.006553, allocations: 29.7 kB / 0.9854 GB, free: 13.86 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.006601, allocations: 100.1 kB / 0.9854 GB, free: 13.76 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.006622, allocations: 23.83 kB / 0.9855 GB, free: 13.74 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.086e-05/0.006663, allocations: 25.72 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.588e-05/0.006739, allocations: 322.8 kB / 0.9858 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.00686, allocations: 131.3 kB / 0.9859 GB, free: 13.24 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.006966, allocations: 119.4 kB / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.007137, allocations: 185.9 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.007139, allocations: 0 / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002832/0.007422, allocations: 316.3 kB / 0.9865 GB, free: 12.57 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.007499, allocations: 67.39 kB / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.007504, allocations: 160 / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.007516, allocations: 4 kB / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.202e-05/0.007578, allocations: 11.98 kB / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.007585, allocations: 3.984 kB / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.352e-05/0.007659, allocations: 27.97 kB / 0.9866 GB, free: 12.45 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.007671, allocations: 8 kB / 0.9866 GB, free: 12.44 MB / 0.948 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.082e-05/0.007752, allocations: 163.3 kB / 0.9868 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.007765, allocations: 11.95 kB / 0.9868 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.021e-05/0.007785, allocations: 8.781 kB / 0.9868 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.007787, allocations: 0 / 0.9868 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.00779, allocations: 96 / 0.9868 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.007795, allocations: 11.92 kB / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.815e-05/0.007883, allocations: 148.7 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.007885, allocations: 7.984 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.458e-05/0.00792, allocations: 11.98 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.007922, allocations: 0 / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.007932, allocations: 4 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.007933, allocations: 256 / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.007935, allocations: 7.984 kB / 0.987 GB, free: 12.01 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.008211, allocations: 276.3 kB / 0.9873 GB, free: 11.71 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.095e-05/0.008222, allocations: 15.83 kB / 0.9873 GB, free: 11.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.008239, allocations: 8 kB / 0.9873 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.735e-05/0.008296, allocations: 19.97 kB / 0.9873 GB, free: 11.67 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.008389, allocations: 35.95 kB / 0.9873 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.008398, allocations: 8 kB / 0.9873 GB, free: 11.62 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.028e-05/0.008439, allocations: 95.27 kB / 0.9874 GB, free: 11.53 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.008439, allocations: 0 / 0.9874 GB, free: 11.53 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001398/0.008578, allocations: 28 kB / 0.9875 GB, free: 11.5 MB / 0.948 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.0004322/0.009011, allocations: 0.8109 MB / 0.9883 GB, free: 10.65 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003146/0.009325, allocations: 355.8 kB / 0.9886 GB, free: 10.26 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009327, allocations: 0 / 0.9886 GB, free: 10.26 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.009461, allocations: 161 kB / 0.9887 GB, free: 10.09 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.009619, allocations: 18.5 kB / 0.9888 GB, free: 10.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.01132, allocations: 2.033 MB / 0.9908 GB, free: 7.883 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.212e-05/0.01137, allocations: 75.58 kB / 0.9908 GB, free: 7.789 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.01141, allocations: 7.984 kB / 0.9908 GB, free: 7.781 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.94e-05/0.01146, allocations: 28.48 kB / 0.9909 GB, free: 7.75 MB / 0.948 GB Notification: Performance of SimCode: time 4.81e-07/0.01146, allocations: 0 / 0.9909 GB, free: 7.75 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.02991, allocations: 3.91 MB / 0.9947 GB, free: 4.012 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.623/6.653, allocations: 7.891 kB / 0.9947 GB, free: 4.008 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.726417932659388]