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.001375/0.001375, allocations: 107.6 kB / 18.95 MB, free: 2.828 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.001939/0.001939, allocations: 219.1 kB / 22.25 MB, free: 5.105 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 7.812 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.715/2.715, allocations: 476 MB / 0.7699 GB, free: 4.707 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.002098/0.002098, allocations: 72.94 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.301, allocations: 170 MB / 1.283 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002733/0.3038, allocations: 1.53 MB / 1.284 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009408/0.3047, allocations: 484.7 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.511e-05/0.3048, allocations: 7.938 kB / 1.285 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.618e-05/0.3048, allocations: 7.922 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.3049, allocations: 15.86 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.3051, allocations: 39.89 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.3053, allocations: 95.7 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.18e-05/0.3054, allocations: 8 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.3056, allocations: 51.83 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.925e-05/0.3057, allocations: 31.83 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.3057, allocations: 8 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.375e-05/0.3057, allocations: 8 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.3058, allocations: 15.94 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.3058, allocations: 31.84 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001544/0.306, allocations: 81.33 kB / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.306, allocations: 4 kB / 1.285 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.152e-06/0.306, allocations: 0 / 1.285 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.306, allocations: 0 / 1.285 GB, free: 9.957 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.000683/0.3067, allocations: 377.4 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3067, allocations: 8.031 kB / 1.285 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.3068, allocations: 38.69 kB / 1.285 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.3069, allocations: 20.88 kB / 1.285 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.3071, allocations: 134.4 kB / 1.285 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.3072, allocations: 4.359 kB / 1.285 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.3072, allocations: 12.38 kB / 1.285 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.3075, allocations: 123.5 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3075, allocations: 0 / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.3075, allocations: 0 / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.3075, allocations: 7.938 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.3078, allocations: 101.6 kB / 1.286 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/0.3084, allocations: 299.8 kB / 1.286 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.3087, allocations: 112.2 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.3089, allocations: 78.64 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.3089, allocations: 0 / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.3092, allocations: 141 kB / 1.286 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3092, allocations: 4 kB / 1.286 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000668/0.3099, allocations: 266.6 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.3099, allocations: 77.11 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.3101, allocations: 137.8 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.3101, allocations: 25.7 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.3102, allocations: 96.12 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.3102, allocations: 19.86 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.3102, allocations: 33.64 kB / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3104, allocations: 326.8 kB / 1.287 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.3106, allocations: 103.4 kB / 1.287 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3108, allocations: 107.4 kB / 1.287 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.3111, allocations: 165.8 kB / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3111, allocations: 0 / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005025/0.3116, allocations: 268.6 kB / 1.288 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.34e-05/0.3117, allocations: 63.39 kB / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3117, allocations: 96 / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3117, allocations: 7.875 kB / 1.288 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.3118, allocations: 15.98 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3118, allocations: 0 / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.312, allocations: 35.81 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.312, allocations: 7.984 kB / 1.288 GB, free: 6.461 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.0001252/0.3121, allocations: 143.5 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.3121, allocations: 7.953 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.3122, allocations: 16.7 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3122, allocations: 0 / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3122, allocations: 4 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3122, allocations: 3.938 kB / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006133/0.3128, allocations: 425 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3128, allocations: 0 / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.87e-05/0.3129, allocations: 11.98 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3129, allocations: 0 / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.3129, allocations: 7.984 kB / 1.289 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3129, allocations: 3.938 kB / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3129, allocations: 0 / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004854/0.3134, allocations: 294.8 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.725e-05/0.3134, allocations: 11.95 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.3134, allocations: 7.938 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.3136, allocations: 27.91 kB / 1.289 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.019e-05/0.3137, allocations: 15.98 kB / 1.289 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3137, allocations: 7.984 kB / 1.289 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.826e-05/0.3138, allocations: 105.4 kB / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3138, allocations: 0 / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002411/0.314, allocations: 16 kB / 1.289 GB, free: 5.266 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.0008464/0.3149, allocations: 0.8367 MB / 1.29 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005527/0.3154, allocations: 299.8 kB / 1.29 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3154, allocations: 0 / 1.29 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.3156, allocations: 141.6 kB / 1.29 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.3159, allocations: 27.84 kB / 1.29 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.3186, allocations: 1.967 MB / 1.292 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.453e-05/0.3186, allocations: 83.19 kB / 1.292 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.114e-05/0.3187, allocations: 11.98 kB / 1.292 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.831e-05/0.3188, allocations: 27.42 kB / 1.292 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of SimCode: time 6.11e-07/0.3188, allocations: 0 / 1.292 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.3485, allocations: 3.176 MB / 1.295 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.53, allocations: 6.984 kB / 1.295 GB, free: 14.61 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.906515408772975]