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.001731/0.001731, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002435/0.002435, allocations: 218.7 kB / 22.25 MB, free: 5.125 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.509/1.509, allocations: 230.6 MB / 256 MB, free: 7.98 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.76/2.76, allocations: 476.7 MB / 0.7707 GB, free: 4.289 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.002072/0.002072, allocations: 67.62 kB / 1.117 GB, free: 40.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3199, allocations: 170 MB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002838/0.3227, allocations: 1.564 MB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3237, allocations: 0.5161 MB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.891e-05/0.3238, allocations: 3.938 kB / 1.285 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.3239, allocations: 7.922 kB / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.28e-05/0.3239, allocations: 11.88 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.3242, allocations: 43.88 kB / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000175/0.3244, allocations: 95.7 kB / 1.286 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3245, allocations: 8 kB / 1.286 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.3247, allocations: 51.83 kB / 1.286 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.548e-05/0.3247, allocations: 39.83 kB / 1.286 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.3248, allocations: 4 kB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.897e-05/0.3248, allocations: 12 kB / 1.286 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.54e-05/0.3249, allocations: 11.94 kB / 1.286 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.527e-05/0.3249, allocations: 35.8 kB / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.3251, allocations: 79.22 kB / 1.286 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3251, allocations: 4 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3251, allocations: 0 / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.303e-05/0.3251, allocations: 4 kB / 1.286 GB, free: 9.277 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.0007233/0.3259, allocations: 373.4 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3259, allocations: 8.031 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.383e-05/0.3259, allocations: 38.69 kB / 1.286 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.3261, allocations: 16.88 kB / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.3263, allocations: 146.4 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.3264, allocations: 384 / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.3264, allocations: 16.34 kB / 1.286 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.3267, allocations: 97.75 kB / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3267, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.3267, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3267, allocations: 7.938 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/0.327, allocations: 71.94 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.3276, allocations: 299.8 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.3279, allocations: 86.48 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.328, allocations: 56.94 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.3281, allocations: 4 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.3284, allocations: 111.2 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3284, allocations: 0 / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0006393/0.329, allocations: 219.2 kB / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.3291, allocations: 81.11 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3292, allocations: 131.9 kB / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3292, allocations: 29.7 kB / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.216e-05/0.3293, allocations: 96.12 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.976e-05/0.3293, allocations: 19.8 kB / 1.288 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/0.3294, allocations: 29.7 kB / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3295, allocations: 322.8 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.3297, allocations: 51.95 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.3298, allocations: 47.95 kB / 1.288 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.3302, allocations: 165.8 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3302, allocations: 0 / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004245/0.3306, allocations: 213 kB / 1.288 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.845e-05/0.3306, allocations: 63.39 kB / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3306, allocations: 0 / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3307, allocations: 3.938 kB / 1.288 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3308, allocations: 15.98 kB / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3308, allocations: 0 / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3309, allocations: 27.88 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.3309, allocations: 4.281 kB / 1.289 GB, free: 6.219 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.0001247/0.3311, allocations: 147.5 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.3311, allocations: 7.953 kB / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.3311, allocations: 16.66 kB / 1.289 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3311, allocations: 0 / 1.289 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3311, allocations: 3.984 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3311, allocations: 3.938 kB / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005797/0.3317, allocations: 411.5 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3317, allocations: 4 kB / 1.289 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.246e-05/0.3318, allocations: 11.98 kB / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3318, allocations: 0 / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3318, allocations: 0 / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.3318, allocations: 11.88 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3318, allocations: 0 / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.3322, allocations: 265.1 kB / 1.289 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.49e-05/0.3323, allocations: 7.953 kB / 1.289 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.3323, allocations: 11.92 kB / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.3324, allocations: 15.92 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.3325, allocations: 23.97 kB / 1.289 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3325, allocations: 7.984 kB / 1.289 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.563e-05/0.3326, allocations: 110 kB / 1.29 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3326, allocations: 0 / 1.29 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002416/0.3329, allocations: 16 kB / 1.29 GB, free: 5.07 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.0007804/0.3336, allocations: 0.8038 MB / 1.29 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004566/0.3341, allocations: 218.7 kB / 1.291 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3341, allocations: 0 / 1.291 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.3343, allocations: 107.4 kB / 1.291 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.3346, allocations: 13.48 kB / 1.291 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.337, allocations: 1.72 MB / 1.292 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.3373, allocations: 0.7003 MB / 1.293 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.634e-05/0.3374, allocations: 15.98 kB / 1.293 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.3374, allocations: 23.44 kB / 1.293 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of SimCode: time 3.8e-07/0.3374, allocations: 3.938 kB / 1.293 GB, free: 1.281 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02984/0.3673, allocations: 2.72 MB / 1.296 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.44, allocations: 17.06 kB / 1.296 GB, free: 14.69 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: 18.016265489859506]