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.001598/0.001598, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.002056/0.002056, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.832 MB / 206.1 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.244/3.244, allocations: 0.5107 GB / 0.8158 GB, free: 17.91 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 67.84 kB / 1.186 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3618, allocations: 181.9 MB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002797/0.3646, allocations: 1.508 MB / 1.365 GB, free: 12.7 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.3655, allocations: 0.4909 MB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.445e-05/0.3656, allocations: 0 / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 8.344e-05/0.3657, allocations: 7.938 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.3657, allocations: 15.8 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.366, allocations: 47.89 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.3661, allocations: 103.8 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.471e-05/0.3662, allocations: 12.12 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.3664, allocations: 47.84 kB / 1.366 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.636e-05/0.3665, allocations: 43.83 kB / 1.366 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.3665, allocations: 11.98 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.094e-05/0.3666, allocations: 12 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.3666, allocations: 11.98 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.3667, allocations: 35.86 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.3668, allocations: 91.84 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3669, allocations: 7.938 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3669, allocations: 0 / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5e-06/0.3669, allocations: 0 / 1.366 GB, free: 11.76 MB / 1.061 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.0006861/0.3675, allocations: 389.4 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3676, allocations: 8.031 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.3676, allocations: 34.75 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.3678, allocations: 20.88 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.368, allocations: 134.4 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.368, allocations: 4.375 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.368, allocations: 8.375 kB / 1.366 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.3684, allocations: 148.3 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3684, allocations: 4 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.3684, allocations: 4 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3684, allocations: 7.938 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.3687, allocations: 117.6 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.3693, allocations: 299.8 kB / 1.367 GB, free: 10.47 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.3696, allocations: 136.2 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.3698, allocations: 90.64 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.3698, allocations: 0 / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003231/0.3702, allocations: 161 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.3702, allocations: 0 / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0007678/0.3709, allocations: 334.6 kB / 1.368 GB, free: 9.695 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.371, allocations: 85.11 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.3711, allocations: 130.1 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.3711, allocations: 29.7 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.143e-05/0.3712, allocations: 100.1 kB / 1.368 GB, free: 9.316 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.3712, allocations: 19.84 kB / 1.368 GB, free: 9.297 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.834e-05/0.3713, allocations: 29.7 kB / 1.368 GB, free: 9.262 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3714, allocations: 330.7 kB / 1.368 GB, free: 8.93 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.3717, allocations: 119.4 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.3719, allocations: 135.3 kB / 1.368 GB, free: 8.656 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.3722, allocations: 177.9 kB / 1.369 GB, free: 8.461 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3722, allocations: 0 / 1.369 GB, free: 8.461 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005495/0.3728, allocations: 324.3 kB / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.3728, allocations: 69.27 kB / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/0.3728, allocations: 4 kB / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3729, allocations: 96 / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.373, allocations: 15.92 kB / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.373, allocations: 0 / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.3731, allocations: 23.97 kB / 1.369 GB, free: 7.992 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.3731, allocations: 11.94 kB / 1.369 GB, free: 7.98 MB / 1.061 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.0001281/0.3733, allocations: 143.5 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.3733, allocations: 19.94 kB / 1.369 GB, free: 7.805 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.3733, allocations: 8.719 kB / 1.369 GB, free: 7.789 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3733, allocations: 4 kB / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3733, allocations: 0 / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3733, allocations: 0 / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.3735, allocations: 160.7 kB / 1.369 GB, free: 7.586 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3735, allocations: 3.984 kB / 1.369 GB, free: 7.582 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.275e-05/0.3736, allocations: 11.98 kB / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3736, allocations: 0 / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3736, allocations: 4 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3736, allocations: 256 / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3736, allocations: 4 kB / 1.369 GB, free: 7.562 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.3741, allocations: 280.3 kB / 1.37 GB, free: 7.258 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.193e-05/0.3741, allocations: 15.88 kB / 1.37 GB, free: 7.242 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.3742, allocations: 4 kB / 1.37 GB, free: 7.238 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.3743, allocations: 19.98 kB / 1.37 GB, free: 7.219 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3744, allocations: 31.95 kB / 1.37 GB, free: 7.188 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.3744, allocations: 11.98 kB / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.507e-05/0.3745, allocations: 105.5 kB / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3745, allocations: 0 / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002119/0.3747, allocations: 28 kB / 1.37 GB, free: 7.047 MB / 1.061 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.0008705/0.3756, allocations: 0.8109 MB / 1.371 GB, free: 6.195 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005755/0.3762, allocations: 343.8 kB / 1.371 GB, free: 5.816 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3762, allocations: 0 / 1.371 GB, free: 5.816 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.3765, allocations: 165 kB / 1.371 GB, free: 5.637 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002148/0.3767, allocations: 15.98 kB / 1.371 GB, free: 5.621 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.3794, allocations: 2.038 MB / 1.373 GB, free: 3.434 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.003e-05/0.3794, allocations: 75.33 kB / 1.373 GB, free: 3.34 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.152e-05/0.3795, allocations: 4 kB / 1.373 GB, free: 3.336 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.219e-05/0.3796, allocations: 23.42 kB / 1.373 GB, free: 3.312 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.3796, allocations: 4 kB / 1.373 GB, free: 3.309 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.4124, allocations: 3.764 MB / 1.377 GB, free: 15.7 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11.02, allocations: 15.28 kB / 1.377 GB, free: 15.69 MB / 1.076 GB " [Timeout remaining time 289] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/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: 17.96480941120535]