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.001636/0.001636, allocations: 108.7 kB / 16.46 MB, free: 6.453 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.002282/0.002282, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.412/1.412, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.15/3.15, allocations: 0.49 GB / 0.7916 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.00197/0.00197, allocations: 67.39 kB / 1.149 GB, free: 26.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 176.1 MB / 1.321 GB, free: 3.406 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002953/0.3093, allocations: 1.516 MB / 1.322 GB, free: 1.879 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.3103, allocations: 0.5143 MB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.653e-05/0.3104, allocations: 0 / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.307e-05/0.3105, allocations: 15.86 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.208e-05/0.3105, allocations: 19.86 kB / 1.323 GB, free: 1.324 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.3108, allocations: 47.88 kB / 1.323 GB, free: 1.277 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.311, allocations: 95.77 kB / 1.323 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.3111, allocations: 12.17 kB / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.3113, allocations: 59.77 kB / 1.323 GB, free: 1.113 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.3114, allocations: 35.89 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.3114, allocations: 8 kB / 1.323 GB, free: 1.07 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.921e-05/0.3115, allocations: 16 kB / 1.323 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.958e-05/0.3115, allocations: 15.92 kB / 1.323 GB, free: 1.039 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.571e-05/0.3116, allocations: 47.77 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.3117, allocations: 91.91 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3118, allocations: 0 / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3118, allocations: 0 / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.022e-06/0.3118, allocations: 0 / 1.323 GB, free: 0.9023 MB / 1.014 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.0007588/0.3125, allocations: 454.5 kB / 1.324 GB, free: 408 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3126, allocations: 15.98 kB / 1.324 GB, free: 392 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.371e-05/0.3126, allocations: 46.73 kB / 1.324 GB, free: 336 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.3127, allocations: 20.81 kB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.313, allocations: 195.2 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.313, allocations: 4.375 kB / 1.324 GB, free: 80 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.313, allocations: 12.36 kB / 1.324 GB, free: 68 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.3134, allocations: 113.6 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3134, allocations: 0 / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.3134, allocations: 4 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3134, allocations: 7.984 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.3137, allocations: 87.92 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.3143, allocations: 328.7 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003366/0.3146, allocations: 102.5 kB / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.3148, allocations: 64.88 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.3148, allocations: 4.062 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.3151, allocations: 123.3 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 3.858e-06/0.3151, allocations: 7.938 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0007531/0.3159, allocations: 275.2 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.316, allocations: 85.09 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.3161, allocations: 130.1 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.3161, allocations: 33.7 kB / 1.325 GB, free: 14.6 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.3162, allocations: 92.09 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.3162, allocations: 27.83 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.3163, allocations: 29.72 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3164, allocations: 322.8 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.3166, allocations: 63.95 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.3168, allocations: 63.95 kB / 1.326 GB, free: 13.99 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.3172, allocations: 189.8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3172, allocations: 0 / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005336/0.3177, allocations: 261 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.3178, allocations: 71.33 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3178, allocations: 0 / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3178, allocations: 0 / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.3179, allocations: 15.98 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.3179, allocations: 4 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.3181, allocations: 23.92 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.3181, allocations: 8.188 kB / 1.326 GB, free: 13.38 MB / 1.029 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.0001318/0.3182, allocations: 155.5 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.3183, allocations: 7.953 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.3183, allocations: 12.72 kB / 1.327 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3183, allocations: 4 kB / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3183, allocations: 4 kB / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3183, allocations: 0 / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.3185, allocations: 197.5 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3185, allocations: 0 / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.933e-05/0.3186, allocations: 11.98 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3186, allocations: 0 / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.3186, allocations: 7.984 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3186, allocations: 0 / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3186, allocations: 7.875 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.3191, allocations: 254.6 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.3192, allocations: 85 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3192, allocations: 8 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.3193, allocations: 19.97 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3195, allocations: 35.95 kB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.3195, allocations: 12 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.081e-05/0.3195, allocations: 99.2 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3195, allocations: 0 / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002072/0.3198, allocations: 24 kB / 1.327 GB, free: 12.34 MB / 1.029 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.0008293/0.3206, allocations: 0.789 MB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005317/0.3211, allocations: 254.7 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3211, allocations: 4 kB / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.3214, allocations: 131.3 kB / 1.328 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.3216, allocations: 15.92 kB / 1.328 GB, free: 11.09 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.324, allocations: 1.765 MB / 1.33 GB, free: 9.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3243, allocations: 0.6885 MB / 1.331 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.669e-05/0.3244, allocations: 8 kB / 1.331 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.3244, allocations: 27.42 kB / 1.331 GB, free: 8.473 MB / 1.029 GB Notification: Performance of SimCode: time 2.8e-07/0.3244, allocations: 0 / 1.331 GB, free: 8.473 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.349, allocations: 3.096 MB / 1.334 GB, free: 5.484 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.891, allocations: 8.625 kB / 1.334 GB, free: 5.477 MB / 1.029 GB " [Timeout remaining time 292] (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/jenkins1/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: 14.314642722951248]