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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 109.3 kB / 15.99 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.00127, allocations: 194.5 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.732/2.732, allocations: 469.8 MB / 0.7427 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.16 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3085, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002991/0.3116, allocations: 1.58 MB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007887/0.3124, allocations: 451 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.009e-05/0.3125, allocations: 4 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.964e-05/0.3126, allocations: 3.938 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.955e-05/0.3126, allocations: 11.86 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.3128, allocations: 27.91 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.313, allocations: 79.83 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.3131, allocations: 20.19 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.3132, allocations: 39.84 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.046e-05/0.3133, allocations: 43.81 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.135e-05/0.3134, allocations: 4 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.3134, allocations: 8 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.3134, allocations: 11.94 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.048e-05/0.3135, allocations: 39.8 kB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.3136, allocations: 48.19 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3136, allocations: 0 / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3136, allocations: 4 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.3136, allocations: 0 / 1.066 GB, free: 12.73 MB / 0.8419 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.000746/0.3144, allocations: 446.5 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3144, allocations: 12.03 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.3145, allocations: 8.844 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.3147, allocations: 199.3 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3147, allocations: 4.375 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.3148, allocations: 8.375 kB / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.3151, allocations: 93.75 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3151, allocations: 0 / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3151, allocations: 0 / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.3151, allocations: 4 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002804/0.3154, allocations: 75.92 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.316, allocations: 328.7 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.3163, allocations: 82.52 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.3165, allocations: 52.94 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.3165, allocations: 4.094 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003263/0.3168, allocations: 111.3 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3168, allocations: 3.938 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0006212/0.3175, allocations: 211.2 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.3176, allocations: 85.11 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.3177, allocations: 132.3 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.3177, allocations: 29.7 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/0.3178, allocations: 104 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.3178, allocations: 15.72 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.3179, allocations: 33.7 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3181, allocations: 326.8 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.3182, allocations: 43.97 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3184, allocations: 51.95 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.3187, allocations: 162 kB / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3187, allocations: 4 kB / 1.069 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004419/0.3192, allocations: 212.9 kB / 1.069 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.809e-05/0.3192, allocations: 63.39 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3193, allocations: 0 / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3193, allocations: 4 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3194, allocations: 11.98 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3194, allocations: 4 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.3196, allocations: 19.92 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.3196, allocations: 7.938 kB / 1.069 GB, free: 9.543 MB / 0.8419 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.0001489/0.3198, allocations: 159.5 kB / 1.069 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.3198, allocations: 7.906 kB / 1.069 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.3198, allocations: 8.719 kB / 1.069 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3198, allocations: 0 / 1.069 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3198, allocations: 4 kB / 1.069 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3198, allocations: 3.984 kB / 1.069 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006184/0.3205, allocations: 428.2 kB / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3205, allocations: 3.984 kB / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.641e-05/0.3206, allocations: 15.92 kB / 1.07 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3206, allocations: 4 kB / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3206, allocations: 0 / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3206, allocations: 3.938 kB / 1.07 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3206, allocations: 0 / 1.07 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.3211, allocations: 273.1 kB / 1.07 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.835e-05/0.3211, allocations: 85.02 kB / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.3212, allocations: 3.938 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.3213, allocations: 23.91 kB / 1.07 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.3214, allocations: 23.97 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.3215, allocations: 4 kB / 1.07 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.306e-05/0.3215, allocations: 108.5 kB / 1.07 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3215, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002367/0.3218, allocations: 16.09 kB / 1.07 GB, free: 8.273 MB / 0.8419 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.0001256/0.3219, allocations: 111.1 kB / 1.071 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004727/0.3224, allocations: 226.7 kB / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3224, allocations: 0 / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002212/0.3226, allocations: 111.3 kB / 1.071 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.3229, allocations: 12 kB / 1.071 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.3235, allocations: 240.8 kB / 1.071 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.3239, allocations: 0.6962 MB / 1.072 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.3239, allocations: 19.42 kB / 1.072 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.3239, allocations: 0 / 1.072 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.003137/0.3271, allocations: 1.253 MB / 1.073 GB, free: 5.523 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (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 & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) 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) Reference file matches