Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002026/0.002026, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.00264/0.00264, allocations: 212.7 kB / 22.24 MB, free: 5.121 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.498/1.498, 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 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.27/3.27, allocations: 0.4892 GB / 0.7943 GB, free: 35.69 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [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.002112/0.002112, allocations: 75.94 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.311, allocations: 176.1 MB / 1.326 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002886/0.3139, allocations: 1.536 MB / 1.327 GB, free: 336 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009248/0.3149, allocations: 482.9 kB / 1.327 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.544e-05/0.3149, allocations: 3.938 kB / 1.327 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.743e-05/0.315, allocations: 7.938 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.051e-05/0.315, allocations: 19.86 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.3153, allocations: 47.83 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.3154, allocations: 83.7 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.458e-05/0.3155, allocations: 15.98 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.3157, allocations: 47.83 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.12e-05/0.3157, allocations: 31.84 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.3158, allocations: 4 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.196e-05/0.3158, allocations: 20 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.3158, allocations: 11.92 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.997e-05/0.3159, allocations: 27.86 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.316, allocations: 83.64 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.3161, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3161, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.3161, allocations: 0 / 1.328 GB, free: 15.45 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006572/0.3167, allocations: 373.4 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.3168, allocations: 12.03 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.3169, allocations: 20.88 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.3171, allocations: 148.7 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.3171, allocations: 4.375 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.3172, allocations: 8.375 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.3174, allocations: 119.6 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3175, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3175, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3175, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.3178, allocations: 105.6 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.3183, allocations: 260.4 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.3186, allocations: 108.2 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3188, allocations: 82.64 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.3188, allocations: 4 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/0.3191, allocations: 129 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.3191, allocations: 0 / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006594/0.3197, allocations: 270.6 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.3198, allocations: 85.05 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.3199, allocations: 138.1 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.32, allocations: 25.7 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.32, allocations: 104 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.3201, allocations: 19.84 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.3201, allocations: 25.7 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3202, allocations: 322.8 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.3205, allocations: 107.4 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.3206, allocations: 107.4 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.321, allocations: 169.9 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.321, allocations: 0 / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004871/0.3215, allocations: 272.3 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.277e-05/0.3215, allocations: 55.41 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.3215, allocations: 3.938 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3215, allocations: 7.984 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.3217, allocations: 19.92 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3217, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.3218, allocations: 23.94 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.3218, allocations: 4 kB / 1.331 GB, free: 12.05 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 (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.0001224/0.3219, allocations: 152 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.975e-05/0.322, allocations: 7.953 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.322, allocations: 8.719 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.322, allocations: 4 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.322, allocations: 0 / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.322, allocations: 4.281 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005812/0.3226, allocations: 401.5 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3226, allocations: 3.984 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.223e-05/0.3227, allocations: 19.92 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.3227, allocations: 0 / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.3227, allocations: 4 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3227, allocations: 0 / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3227, allocations: 0 / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.3232, allocations: 302.8 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.59e-05/0.3232, allocations: 7.953 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.3232, allocations: 7.969 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3234, allocations: 11.98 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.295e-05/0.3235, allocations: 27.95 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3235, allocations: 4 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.652e-05/0.3235, allocations: 105.5 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3235, allocations: 7.938 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002575/0.3238, allocations: 24 kB / 1.332 GB, free: 10.87 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,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.0001035/0.3239, allocations: 99.23 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005277/0.3244, allocations: 295.8 kB / 1.332 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3244, allocations: 0 / 1.332 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.3247, allocations: 141 kB / 1.332 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3249, allocations: 17.7 kB / 1.332 GB, free: 10.26 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005147/0.3255, allocations: 225 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.111e-05/0.3255, allocations: 81.14 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.76e-05/0.3256, allocations: 11.98 kB / 1.333 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.3256, allocations: 23.38 kB / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3256, allocations: 0 / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of Templates: time 0.004318/0.33, allocations: 1.464 MB / 1.334 GB, free: 8.441 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.940089294686913]