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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001074/0.001074, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001401/0.0014, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.754/2.754, allocations: 437.7 MB / 0.7117 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003937, allocations: 12 kB / 0.8722 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7861/0.7865, allocations: 153.8 MB / 1.022 GB, free: 88 kB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002167/0.7887, allocations: 1.219 MB / 1.024 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.7896, allocations: 427.3 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.3e-05/0.7898, allocations: 0 / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.7899, allocations: 7.922 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.063e-05/0.79, allocations: 19.86 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.7902, allocations: 23.97 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.7904, allocations: 67.78 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.7905, allocations: 16.17 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.7907, allocations: 31.84 kB / 1.024 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.7908, allocations: 35.83 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.7909, allocations: 8 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.788e-05/0.7909, allocations: 4 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.7909, allocations: 4 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.46e-05/0.791, allocations: 41.62 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.7911, allocations: 49.88 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.7912, allocations: 0 / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.765e-06/0.7912, allocations: 3.938 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.7912, allocations: 0 / 1.024 GB, free: 14.13 MB / 0.7794 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.0007771/0.792, allocations: 446.4 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.792, allocations: 8.562 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.503e-05/0.7921, allocations: 7.906 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.7923, allocations: 183 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.7923, allocations: 4 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.7924, allocations: 8 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.7927, allocations: 101.6 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.7927, allocations: 3.984 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.7927, allocations: 0 / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.7927, allocations: 4 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.793, allocations: 83.94 kB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006092/0.7936, allocations: 352.5 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.7939, allocations: 98.52 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.7941, allocations: 56.95 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.7941, allocations: 96 / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.7944, allocations: 115.3 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.7945, allocations: 7.938 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006283/0.7951, allocations: 227.2 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.7952, allocations: 85.09 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.7953, allocations: 132.2 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.7953, allocations: 29.7 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.7954, allocations: 99.98 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.7955, allocations: 23.72 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.7955, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.7956, allocations: 318.8 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.7958, allocations: 59.95 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.7959, allocations: 55.95 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.7961, allocations: 107.5 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7961, allocations: 0 / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004459/0.7966, allocations: 228.9 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.532e-05/0.7967, allocations: 63.41 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.7967, allocations: 0 / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.7967, allocations: 0 / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.7968, allocations: 23.97 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.7968, allocations: 0 / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.797, allocations: 23.89 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.797, allocations: 4 kB / 1.027 GB, free: 10.94 MB / 0.7794 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.7971, allocations: 155.4 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.012e-05/0.7972, allocations: 7.984 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.7972, allocations: 12.72 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.7972, allocations: 0 / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.7972, allocations: 0 / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.7972, allocations: 0 / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006137/0.7979, allocations: 448.1 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.7979, allocations: 0 / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.426e-05/0.798, allocations: 23.98 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.798, allocations: 3.984 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.798, allocations: 4 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.798, allocations: 3.984 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.798, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004591/0.7985, allocations: 293.3 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.012e-05/0.7986, allocations: 92.94 kB / 1.028 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.7986, allocations: 3.938 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.7987, allocations: 19.98 kB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.7989, allocations: 27.97 kB / 1.028 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.7989, allocations: 3.984 kB / 1.028 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.104e-05/0.799, allocations: 105.2 kB / 1.028 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.799, allocations: 0 / 1.028 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002802/0.7993, allocations: 16 kB / 1.028 GB, free: 9.625 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001322/0.7994, allocations: 103.2 kB / 1.028 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004463/0.7998, allocations: 242.7 kB / 1.029 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7999, allocations: 0 / 1.029 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.8001, allocations: 123.4 kB / 1.029 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.8005, allocations: 11.95 kB / 1.029 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.8011, allocations: 217 kB / 1.029 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.8014, allocations: 0.6965 MB / 1.03 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.477e-05/0.8014, allocations: 15.97 kB / 1.03 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.8015, allocations: 7.438 kB / 1.03 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of SimCode: time 4.81e-07/0.8015, allocations: 0 / 1.03 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of Templates: time 0.0041/0.8056, allocations: 1.093 MB / 1.031 GB, free: 7.051 MB / 0.7794 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/jenkins/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