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.001463/0.001463, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.462/1.462, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.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.473/2.473, allocations: 390.2 MB / 0.6646 GB, free: 412 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7434/0.7446, allocations: 140.4 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002783/0.7474, allocations: 1.525 MB / 0.9511 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007468/0.7482, allocations: 449 kB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.165e-05/0.7483, allocations: 5.188 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.7484, allocations: 7.875 kB / 0.9515 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.079e-05/0.7485, allocations: 17.38 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.7487, allocations: 28.94 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.7489, allocations: 84.12 kB / 0.9516 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.749, allocations: 29.14 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.7492, allocations: 43.78 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.061e-05/0.7493, allocations: 33.72 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.7493, allocations: 6 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.845e-05/0.7493, allocations: 6.688 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.517e-05/0.7494, allocations: 14.73 kB / 0.9518 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.45e-05/0.7494, allocations: 35.69 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.7496, allocations: 75.25 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.7496, allocations: 0 / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7496, allocations: 0 / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.7496, allocations: 1.344 kB / 0.9519 GB, free: 7.41 MB / 0.7169 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.0006217/0.7502, allocations: 450 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.7503, allocations: 9 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.7503, allocations: 9.469 kB / 0.9523 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.7505, allocations: 187 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.7505, allocations: 10.97 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.7505, allocations: 4.938 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.7508, allocations: 95.42 kB / 0.9526 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.7508, allocations: 3.984 kB / 0.9526 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.7508, allocations: 5.562 kB / 0.9526 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.7508, allocations: 0 / 0.9526 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002644/0.7511, allocations: 70 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000473/0.7516, allocations: 340.9 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.7518, allocations: 80.11 kB / 0.9531 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.752, allocations: 52.48 kB / 0.9531 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.752, allocations: 5.375 kB / 0.9531 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.7523, allocations: 104.3 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.734e-06/0.7523, allocations: 3.938 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005893/0.7529, allocations: 212.3 kB / 0.9534 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.753, allocations: 82.66 kB / 0.9535 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.89e-05/0.753, allocations: 133.5 kB / 0.9536 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.7531, allocations: 28.05 kB / 0.9537 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.7531, allocations: 94.42 kB / 0.9538 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.7531, allocations: 23.77 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.7532, allocations: 21.94 kB / 0.9538 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.69e-05/0.7532, allocations: 329.9 kB / 0.9541 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.7534, allocations: 54.73 kB / 0.9542 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.7535, allocations: 47.69 kB / 0.9542 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.7538, allocations: 167.2 kB / 0.9544 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.7539, allocations: 0 / 0.9544 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003854/0.7542, allocations: 215.8 kB / 0.9546 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.7543, allocations: 58.19 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.7543, allocations: 0 / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.7543, allocations: 1.5 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.7544, allocations: 14.61 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.7545, allocations: 3.938 kB / 0.9547 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.7546, allocations: 30.22 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.7546, allocations: 6.125 kB / 0.9547 GB, free: 4.836 MB / 0.7169 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.764e-05/0.7547, allocations: 147.8 kB / 0.9548 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.7547, allocations: 4.625 kB / 0.9548 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.7548, allocations: 13.77 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.7548, allocations: 4.906 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.7548, allocations: 1.031 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.7548, allocations: 0 / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/0.7553, allocations: 438.3 kB / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7553, allocations: 0 / 0.9553 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.748e-05/0.7554, allocations: 17.73 kB / 0.9553 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.7554, allocations: 0 / 0.9553 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.7554, allocations: 2.312 kB / 0.9553 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.7554, allocations: 3.938 kB / 0.9553 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7554, allocations: 3.938 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.7558, allocations: 271.2 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/0.7558, allocations: 90.12 kB / 0.9556 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.7559, allocations: 6.312 kB / 0.9557 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.756, allocations: 20.72 kB / 0.9557 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.7561, allocations: 21.44 kB / 0.9557 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.7561, allocations: 2.375 kB / 0.9557 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.373e-05/0.7562, allocations: 104 kB / 0.9558 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7562, allocations: 0.9062 kB / 0.9558 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002395/0.7564, allocations: 19.62 kB / 0.9558 GB, free: 3.801 MB / 0.7169 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.0001048/0.7566, allocations: 104.9 kB / 0.9559 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004479/0.757, allocations: 220 kB / 0.9561 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.757, allocations: 4 kB / 0.9561 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.7572, allocations: 118.8 kB / 0.9562 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.7575, allocations: 17.17 kB / 0.9563 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.758, allocations: 194.2 kB / 0.9564 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.7581, allocations: 0.6947 MB / 0.9571 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.346e-05/0.7582, allocations: 14.86 kB / 0.9571 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.7582, allocations: 10.94 kB / 0.9571 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.7582, allocations: 0 / 0.9571 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of Templates: time 0.00359/0.7618, allocations: 1.32 MB / 0.9584 GB, free: 1.887 MB / 0.7169 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