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.001729/0.001728, allocations: 104.5 kB / 16.39 MB, free: 6.379 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.001935/0.001935, allocations: 193.1 kB / 17.33 MB, free: 5.848 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.507/1.507, allocations: 222.9 MB / 241 MB, free: 15.21 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.699/2.699, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002737/0.002737, allocations: 68.11 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9951/0.9978, allocations: 151.6 MB / 1.167 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002807/1.001, allocations: 1.517 MB / 1.169 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007929/1.001, allocations: 458.9 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.954e-05/1.002, allocations: 0 / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 9.727e-05/1.002, allocations: 7.922 kB / 1.169 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.905e-05/1.002, allocations: 15.81 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/1.002, allocations: 27.95 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001657/1.002, allocations: 91.7 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/1.002, allocations: 16.17 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/1.002, allocations: 51.83 kB / 1.169 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.683e-05/1.002, allocations: 35.84 kB / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.554e-05/1.002, allocations: 8 kB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.704e-05/1.003, allocations: 8 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.23e-05/1.003, allocations: 15.86 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.922e-05/1.003, allocations: 31.86 kB / 1.17 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001477/1.003, allocations: 76.22 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/1.003, allocations: 0 / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.162e-06/1.003, allocations: 0 / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.865e-06/1.003, allocations: 3.984 kB / 1.17 GB, free: 1.508 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.0007265/1.004, allocations: 450.5 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/1.004, allocations: 8.922 kB / 1.17 GB, free: 1 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/1.004, allocations: 12.89 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/1.004, allocations: 184.2 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/1.004, allocations: 16.3 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/1.004, allocations: 4.375 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/1.004, allocations: 93.77 kB / 1.17 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/1.004, allocations: 0 / 1.17 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/1.004, allocations: 8 kB / 1.17 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/1.004, allocations: 4 kB / 1.17 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002865/1.005, allocations: 71.92 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005928/1.005, allocations: 332.7 kB / 1.171 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/1.005, allocations: 82.52 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/1.006, allocations: 52.95 kB / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/1.006, allocations: 0 / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003074/1.006, allocations: 103.3 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/1.006, allocations: 4 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0006607/1.007, allocations: 215.2 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/1.007, allocations: 81.09 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/1.007, allocations: 130.1 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/1.007, allocations: 33.69 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/1.007, allocations: 96.14 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/1.007, allocations: 19.86 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.009e-05/1.007, allocations: 29.64 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001557/1.007, allocations: 322.8 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/1.007, allocations: 51.91 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/1.008, allocations: 51.89 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/1.008, allocations: 173.9 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/1.008, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004354/1.008, allocations: 204.9 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.934e-05/1.008, allocations: 63.39 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/1.008, allocations: 0 / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/1.008, allocations: 0 / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/1.009, allocations: 19.98 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/1.009, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/1.009, allocations: 31.86 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/1.009, allocations: 3.938 kB / 1.172 GB, free: 14.32 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.0001482/1.009, allocations: 150.5 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/1.009, allocations: 11.94 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/1.009, allocations: 16.7 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/1.009, allocations: 0 / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/1.009, allocations: 4 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/1.009, allocations: 0 / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006338/1.01, allocations: 436.1 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/1.01, allocations: 0 / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.559e-05/1.01, allocations: 11.98 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/1.01, allocations: 3.938 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/1.01, allocations: 0 / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/1.01, allocations: 11.94 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.01, allocations: 288 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/1.01, allocations: 261.1 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/1.01, allocations: 81.06 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/1.01, allocations: 15.92 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/1.011, allocations: 23.92 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/1.011, allocations: 19.97 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/1.011, allocations: 8 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.547e-05/1.011, allocations: 97.66 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/1.011, allocations: 0 / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002339/1.011, allocations: 20 kB / 1.174 GB, free: 13.05 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.0001454/1.011, allocations: 103.7 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005494/1.012, allocations: 226.7 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.012, allocations: 7.938 kB / 1.174 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002207/1.012, allocations: 115.3 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/1.012, allocations: 15.98 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.0005357/1.013, allocations: 202.8 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/1.013, allocations: 0.6885 MB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.96e-05/1.013, allocations: 15.97 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/1.013, allocations: 11.44 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/1.013, allocations: 0 / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of Templates: time 0.004232/1.018, allocations: 1.325 MB / 1.176 GB, free: 10.27 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 -s cvode -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