Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.00138/0.00138, 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.001557/0.001557, allocations: 210.2 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.465/1.465, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.821/2.821, allocations: 476 MB / 0.7699 GB, free: 4.723 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.002179/0.002179, allocations: 69.02 kB / 1.117 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2897, allocations: 170 MB / 1.283 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003026/0.2927, allocations: 1.541 MB / 1.284 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009948/0.2937, allocations: 480.7 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.836e-05/0.2938, allocations: 3.938 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.371e-05/0.2939, allocations: 7.938 kB / 1.285 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.768e-05/0.2939, allocations: 19.84 kB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.2942, allocations: 43.89 kB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.2944, allocations: 87.7 kB / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.2945, allocations: 15.98 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.2947, allocations: 43.84 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.389e-05/0.2948, allocations: 31.84 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.2948, allocations: 7.984 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.106e-05/0.2948, allocations: 16 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.2949, allocations: 11.92 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.196e-05/0.2949, allocations: 27.86 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.2951, allocations: 85.33 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2951, allocations: 4 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2951, allocations: 0 / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.2951, allocations: 0 / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006945/0.2958, allocations: 369.4 kB / 1.285 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2959, allocations: 12.03 kB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.2959, allocations: 38.73 kB / 1.285 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.2961, allocations: 24.81 kB / 1.285 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.2963, allocations: 130.4 kB / 1.285 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2963, allocations: 8.375 kB / 1.285 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.2963, allocations: 8.375 kB / 1.285 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.2966, allocations: 123.5 kB / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.2966, allocations: 0 / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.2967, allocations: 3.984 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2967, allocations: 0 / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.297, allocations: 109.6 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006153/0.2976, allocations: 303.8 kB / 1.286 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.2979, allocations: 108.2 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.2981, allocations: 78.64 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.2981, allocations: 0 / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003143/0.2984, allocations: 133 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.2984, allocations: 0 / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0007019/0.2991, allocations: 266.6 kB / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.2992, allocations: 81.11 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.2993, allocations: 136.8 kB / 1.287 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.2994, allocations: 33.7 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.2994, allocations: 88.14 kB / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/0.2995, allocations: 31.83 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-05/0.2995, allocations: 29.7 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2997, allocations: 322.8 kB / 1.287 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.2999, allocations: 99.36 kB / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.3001, allocations: 111.3 kB / 1.287 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.3004, allocations: 173.8 kB / 1.288 GB, free: 7 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3004, allocations: 4 kB / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004742/0.3009, allocations: 264.4 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.62e-05/0.3009, allocations: 63.41 kB / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3009, allocations: 0 / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.301, allocations: 0 / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.3011, allocations: 23.91 kB / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.3011, allocations: 0 / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.3012, allocations: 27.81 kB / 1.288 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.3012, allocations: 4 kB / 1.288 GB, free: 6.578 MB / 0.9825 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 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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.3014, allocations: 155.5 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.3014, allocations: 7.953 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.3014, allocations: 12.72 kB / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3014, allocations: 0 / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3014, allocations: 0 / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3014, allocations: 3.938 kB / 1.288 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.3021, allocations: 428.9 kB / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3021, allocations: 0 / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.874e-05/0.3022, allocations: 15.98 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.3022, allocations: 0 / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3022, allocations: 0 / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3022, allocations: 3.938 kB / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3022, allocations: 0 / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.3027, allocations: 303.2 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.3027, allocations: 12.22 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.3027, allocations: 4 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.3029, allocations: 15.92 kB / 1.289 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.303, allocations: 27.84 kB / 1.289 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.303, allocations: 4 kB / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.993e-05/0.3031, allocations: 111.2 kB / 1.289 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3031, allocations: 0 / 1.289 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002428/0.3033, allocations: 20 kB / 1.289 GB, free: 5.367 MB / 0.9825 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,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0008354/0.3041, allocations: 0.829 MB / 1.29 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000545/0.3047, allocations: 303.8 kB / 1.29 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3047, allocations: 4 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.3049, allocations: 129.1 kB / 1.29 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.3052, allocations: 19.94 kB / 1.29 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.308, allocations: 1.972 MB / 1.292 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.742e-05/0.3081, allocations: 83.19 kB / 1.292 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.2e-05/0.3081, allocations: 11.97 kB / 1.292 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.985e-05/0.3082, allocations: 27.42 kB / 1.292 GB, free: 1.73 MB / 0.9825 GB Notification: Performance of SimCode: time 3.71e-07/0.3082, allocations: 0 / 1.292 GB, free: 1.73 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03124/0.3394, allocations: 3.18 MB / 1.295 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.73, allocations: 10.31 kB / 1.295 GB, free: 14.71 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable act1.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act1.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act2.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act2.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act3.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act3.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable reqCou.nInc in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable reqCou.nInc from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.39759652968496]