Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.005366/0.005366, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001152/0.001153, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.116/1.117, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002809/1.12, allocations: 1.536 MB / 1.089 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000792/1.121, allocations: 450.2 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.415e-05/1.121, allocations: 1.406 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/1.121, allocations: 5.25 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.267e-05/1.121, allocations: 15.17 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/1.121, allocations: 34.94 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000174/1.121, allocations: 81.3 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/1.121, allocations: 23.86 kB / 1.09 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/1.122, allocations: 41.73 kB / 1.09 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.463e-05/1.122, allocations: 35.67 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/1.122, allocations: 7.031 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.955e-05/1.122, allocations: 6.062 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.674e-05/1.122, allocations: 22.59 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.916e-05/1.122, allocations: 35.73 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001717/1.122, allocations: 72.38 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/1.122, allocations: 0 / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/1.122, allocations: 0.7188 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.242e-06/1.122, allocations: 3.938 kB / 1.09 GB, free: 3.965 MB / 0.8575 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.0007075/1.123, allocations: 442.4 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.123, allocations: 8.625 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/1.123, allocations: 10.59 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/1.123, allocations: 193.6 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/1.123, allocations: 6.594 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/1.123, allocations: 6.453 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/1.123, allocations: 96.55 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/1.124, allocations: 1.125 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/1.124, allocations: 4.781 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/1.124, allocations: 1.156 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/1.124, allocations: 74.5 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005592/1.124, allocations: 331.5 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/1.125, allocations: 81.3 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/1.125, allocations: 53.53 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/1.125, allocations: 1.875 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/1.125, allocations: 109.2 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.542e-06/1.125, allocations: 0 / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006717/1.126, allocations: 211.7 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/1.126, allocations: 80.09 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/1.126, allocations: 131 kB / 1.092 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/1.126, allocations: 28.12 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/1.126, allocations: 97.23 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/1.126, allocations: 20.55 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/1.126, allocations: 32.94 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.915e-05/1.126, allocations: 324.2 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/1.127, allocations: 53.55 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/1.127, allocations: 47.12 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/1.127, allocations: 165.5 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.127, allocations: 4.969 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004365/1.127, allocations: 213.5 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/1.128, allocations: 60.39 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/1.128, allocations: 0 / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/1.128, allocations: 1.859 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/1.128, allocations: 14.95 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/1.128, allocations: 1.062 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/1.128, allocations: 22.86 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/1.128, allocations: 7.422 kB / 1.093 GB, free: 1.676 MB / 0.8575 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 8.947e-05/1.128, allocations: 148.8 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/1.128, allocations: 8.531 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.848e-05/1.128, allocations: 19.84 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/1.128, allocations: 1.438 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/1.128, allocations: 0.5938 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.128, allocations: 0.7031 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005464/1.129, allocations: 433.5 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.129, allocations: 4.5 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.142e-05/1.129, allocations: 17.81 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/1.129, allocations: 0.6875 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/1.129, allocations: 2.797 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/1.129, allocations: 4.781 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.129, allocations: 0 / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/1.129, allocations: 272.5 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/1.129, allocations: 88.31 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/1.129, allocations: 6.672 kB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/1.129, allocations: 18.05 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/1.13, allocations: 19.81 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/1.13, allocations: 7 kB / 1.094 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.316e-05/1.13, allocations: 104 kB / 1.094 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.13, allocations: 1.094 kB / 1.094 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002414/1.13, allocations: 23.56 kB / 1.094 GB, free: 0.7188 MB / 0.8575 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.0001239/1.13, allocations: 101 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004931/1.131, allocations: 225.9 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/1.131, allocations: 0.75 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002203/1.131, allocations: 109.7 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/1.131, allocations: 7.922 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005599/1.132, allocations: 203.9 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/1.132, allocations: 0.6946 MB / 1.095 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.082e-05/1.132, allocations: 10.03 kB / 1.095 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.39e-05/1.132, allocations: 16 kB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.132, allocations: 0 / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of Templates: time 0.004713/1.137, allocations: 1.326 MB / 1.097 GB, free: 15.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches