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.001395/0.001395, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001592/0.001592, allocations: 209.1 kB / 22.24 MB, free: 5.262 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 7.773 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.276/3.276, allocations: 0.4892 GB / 0.7943 GB, free: 35.86 MB / 0.6231 GB " [Timeout remaining time 176] 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.003196/0.003196, allocations: 66.72 kB / 1.153 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3761, allocations: 176.1 MB / 1.325 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002824/0.3789, allocations: 1.493 MB / 1.326 GB, free: 0.918 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.38, allocations: 498.8 kB / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.284e-05/0.38, allocations: 0 / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.75e-05/0.3801, allocations: 7.875 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.783e-05/0.3802, allocations: 23.84 kB / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.3805, allocations: 43.89 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.3807, allocations: 103.8 kB / 1.327 GB, free: 256 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.3808, allocations: 12.17 kB / 1.327 GB, free: 244 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.381, allocations: 55.83 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.3811, allocations: 35.84 kB / 1.327 GB, free: 152 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.3811, allocations: 8 kB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.661e-05/0.3812, allocations: 8 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.3812, allocations: 23.91 kB / 1.327 GB, free: 112 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.986e-05/0.3813, allocations: 39.78 kB / 1.327 GB, free: 72 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.3815, allocations: 92 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3815, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3815, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.3815, allocations: 4 kB / 1.327 GB, free: 15.97 MB / 1.029 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.0007466/0.3822, allocations: 377.4 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3823, allocations: 12.03 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.581e-05/0.3823, allocations: 42.69 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.3825, allocations: 16.88 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.3827, allocations: 134.4 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3827, allocations: 4.375 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.3828, allocations: 8.375 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.3831, allocations: 159.2 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3831, allocations: 0 / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.3831, allocations: 4 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3831, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.3834, allocations: 117.6 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000541/0.384, allocations: 291.7 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003463/0.3843, allocations: 132.2 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.3845, allocations: 98.52 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.3845, allocations: 8 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.3849, allocations: 149 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.3849, allocations: 0 / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0007543/0.3856, allocations: 338.6 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.3857, allocations: 89.05 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.3858, allocations: 132.6 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3858, allocations: 29.7 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.433e-05/0.3859, allocations: 100.1 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.386, allocations: 19.84 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.386, allocations: 33.7 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3862, allocations: 322.8 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.3864, allocations: 123.4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.3866, allocations: 127.3 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.387, allocations: 181.9 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.387, allocations: 256 / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005604/0.3875, allocations: 324.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.3876, allocations: 67.39 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3876, allocations: 4 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3876, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.3877, allocations: 15.98 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3877, allocations: 0 / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.3879, allocations: 27.92 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.3879, allocations: 7.938 kB / 1.331 GB, free: 12.21 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.0001633/0.388, allocations: 166.8 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.3881, allocations: 11.94 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.3881, allocations: 12.72 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3881, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3881, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3881, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.3883, allocations: 156.7 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3883, allocations: 0 / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.156e-05/0.3884, allocations: 11.98 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.3884, allocations: 8 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.3884, allocations: 4 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3884, allocations: 0 / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3884, allocations: 3.938 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005112/0.3889, allocations: 280.3 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/0.3889, allocations: 11.89 kB / 1.331 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.3889, allocations: 4 kB / 1.331 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.3891, allocations: 23.97 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3892, allocations: 39.91 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.3892, allocations: 3.984 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.739e-05/0.3893, allocations: 107.2 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3893, allocations: 0 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002054/0.3895, allocations: 20 kB / 1.332 GB, free: 11.27 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.0008465/0.3903, allocations: 0.8111 MB / 1.332 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00056/0.3909, allocations: 351.8 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3909, allocations: 0 / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.3912, allocations: 161 kB / 1.333 GB, free: 9.852 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.3914, allocations: 23.28 kB / 1.333 GB, free: 9.832 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.3941, allocations: 2.027 MB / 1.335 GB, free: 7.656 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.719e-05/0.3942, allocations: 75.33 kB / 1.335 GB, free: 7.562 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.526e-05/0.3942, allocations: 11.98 kB / 1.335 GB, free: 7.551 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.153e-05/0.3943, allocations: 19.44 kB / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of SimCode: time 6.31e-07/0.3943, allocations: 0 / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03007/0.4244, allocations: 3.77 MB / 1.339 GB, free: 3.91 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.25, allocations: 6.328 kB / 1.339 GB, free: 3.906 MB / 1.029 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable numReq.y in file Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv. Warning: Get data of variable numReq.y from file Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.245321601163596]