Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001498/0.001498, allocations: 111.5 kB / 16.41 MB, free: 6.488 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.001853/0.001853, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.48/2.48, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 63.91 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8966/0.8981, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00258/0.9007, allocations: 1.52 MB / 1.169 GB, free: 2.32 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008077/0.9015, allocations: 466.8 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.004e-05/0.9016, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.9017, allocations: 7.922 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.304e-05/0.9018, allocations: 7.875 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.902, allocations: 31.91 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.9022, allocations: 95.69 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.9023, allocations: 20.17 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.9024, allocations: 31.92 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.48e-05/0.9025, allocations: 39.83 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.9026, allocations: 12 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.9026, allocations: 4 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.9026, allocations: 23.91 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.969e-05/0.9027, allocations: 27.86 kB / 1.17 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.9029, allocations: 71.66 kB / 1.17 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.9029, allocations: 4 kB / 1.17 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.115e-06/0.9029, allocations: 0 / 1.17 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.9029, allocations: 0 / 1.17 GB, free: 1.488 MB / 0.8887 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.000776/0.9037, allocations: 456.2 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.9037, allocations: 12.92 kB / 1.17 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.9038, allocations: 8.844 kB / 1.17 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.904, allocations: 180.3 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.904, allocations: 4.375 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.904, allocations: 8.359 kB / 1.17 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.9043, allocations: 97.7 kB / 1.17 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.9044, allocations: 4 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.9044, allocations: 0 / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.9044, allocations: 4 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.9047, allocations: 75.92 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.9052, allocations: 336.5 kB / 1.171 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.9055, allocations: 86.52 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.9057, allocations: 48.94 kB / 1.171 GB, free: 36 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.9057, allocations: 7.984 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.9061, allocations: 107.4 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.9061, allocations: 4 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0006059/0.9067, allocations: 207.1 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.9067, allocations: 81.11 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.9069, allocations: 132.4 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.9069, allocations: 29.7 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.907, allocations: 92.12 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.907, allocations: 27.66 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.9071, allocations: 29.7 kB / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.9072, allocations: 326.8 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.9074, allocations: 47.91 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.9075, allocations: 51.89 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.9078, allocations: 173.9 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.9078, allocations: 0 / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004112/0.9082, allocations: 208.9 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.9083, allocations: 63.39 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.9083, allocations: 4 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.9083, allocations: 0 / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.9085, allocations: 11.98 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.9085, allocations: 8 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.9086, allocations: 11.98 kB / 1.172 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.9086, allocations: 11.92 kB / 1.172 GB, free: 14.3 MB / 0.9044 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.0001287/0.9088, allocations: 147.5 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.9088, allocations: 8.188 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.158e-05/0.9088, allocations: 12.7 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.9089, allocations: 3.938 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.9089, allocations: 11.94 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.9089, allocations: 0 / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000571/0.9094, allocations: 424.5 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9095, allocations: 0 / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.9095, allocations: 15.98 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.9096, allocations: 0 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.9096, allocations: 0 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.9096, allocations: 3.938 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.9096, allocations: 4 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004234/0.91, allocations: 277.1 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.9101, allocations: 88.95 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.9101, allocations: 4 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.9103, allocations: 23.91 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.9104, allocations: 23.98 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.9104, allocations: 3.984 kB / 1.173 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.456e-05/0.9105, allocations: 103.3 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9105, allocations: 0 / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002436/0.9107, allocations: 16 kB / 1.174 GB, free: 13.04 MB / 0.9044 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.0001144/0.9108, allocations: 103.2 kB / 1.174 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004483/0.9113, allocations: 222.7 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.9113, allocations: 3.938 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.9115, allocations: 111.4 kB / 1.174 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.9118, allocations: 12.5 kB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005196/0.9123, allocations: 232.5 kB / 1.174 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.9126, allocations: 0.6963 MB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.9127, allocations: 15.42 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of SimCode: time 2.01e-07/0.9127, allocations: 0 / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of Templates: time 0.002859/0.9156, allocations: 1.27 MB / 1.176 GB, free: 10.29 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches