Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001817/0.001817, allocations: 105.4 kB / 16.27 MB, free: 6.414 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.002003/0.002003, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.405/1.405, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.803/2.803, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 64.77 kB / 0.9245 GB, free: 8 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7702/0.7722, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002573/0.7748, allocations: 1.528 MB / 1.084 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006954/0.7755, allocations: 444.5 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.7756, allocations: 1.5 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.978e-05/0.7757, allocations: 9.188 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.788e-05/0.7757, allocations: 19.73 kB / 1.085 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.7759, allocations: 29.56 kB / 1.085 GB, free: 260 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.7761, allocations: 85.92 kB / 1.085 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.7762, allocations: 27.92 kB / 1.085 GB, free: 204 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.7764, allocations: 40.5 kB / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.467e-05/0.7765, allocations: 35.89 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.7765, allocations: 6.375 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.93e-05/0.7765, allocations: 7.219 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.199e-05/0.7766, allocations: 18.03 kB / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.678e-05/0.7766, allocations: 36.3 kB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.7768, allocations: 65.83 kB / 1.085 GB, free: 108 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7768, allocations: 0 / 1.085 GB, free: 108 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7768, allocations: 0 / 1.085 GB, free: 108 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.7768, allocations: 5.156 kB / 1.085 GB, free: 104 kB / 0.8262 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.000737/0.7775, allocations: 454.8 kB / 1.086 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.7776, allocations: 9.844 kB / 1.086 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.121e-05/0.7776, allocations: 9.281 kB / 1.086 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.7779, allocations: 185.7 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.497e-06/0.7779, allocations: 3.5 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.7779, allocations: 4.781 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.7783, allocations: 105.2 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.7783, allocations: 0 / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.7783, allocations: 0.5 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.7783, allocations: 2.031 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.7786, allocations: 74.45 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006431/0.7793, allocations: 339.8 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.7796, allocations: 79.59 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.7798, allocations: 55.77 kB / 1.086 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.7798, allocations: 3.938 kB / 1.086 GB, free: 15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.7802, allocations: 105.7 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.7802, allocations: 0 / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0006913/0.7809, allocations: 207.3 kB / 1.087 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/0.7809, allocations: 89.98 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.7811, allocations: 129.2 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.7811, allocations: 32.3 kB / 1.087 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.7812, allocations: 89.47 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.7812, allocations: 24.7 kB / 1.087 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.769e-05/0.7813, allocations: 28.84 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.7815, allocations: 324.3 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.7817, allocations: 50.08 kB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.7819, allocations: 49.98 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003513/0.7822, allocations: 166.5 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.7822, allocations: 0 / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004629/0.7827, allocations: 218 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.518e-05/0.7828, allocations: 64.38 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.7828, allocations: 0 / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.7828, allocations: 1.219 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.7829, allocations: 16.14 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.783, allocations: 4.219 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.7831, allocations: 19.23 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.7831, allocations: 7 kB / 1.088 GB, free: 13.79 MB / 0.8419 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.0001314/0.7833, allocations: 157.2 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.7833, allocations: 8.844 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.7833, allocations: 11.39 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.7834, allocations: 1.469 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.7834, allocations: 0.7031 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7834, allocations: 1.406 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.784, allocations: 429.5 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.784, allocations: 7.938 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.955e-05/0.7841, allocations: 14.25 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.7841, allocations: 0 / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.7841, allocations: 2.969 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.7842, allocations: 3.938 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.7842, allocations: 1.859 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005066/0.7847, allocations: 271.2 kB / 1.089 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.616e-05/0.7848, allocations: 88.94 kB / 1.089 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.7848, allocations: 1.875 kB / 1.089 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.7849, allocations: 17.36 kB / 1.089 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.7851, allocations: 24.44 kB / 1.089 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.7851, allocations: 3.234 kB / 1.089 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.7852, allocations: 104.8 kB / 1.089 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7852, allocations: 0 / 1.089 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002404/0.7854, allocations: 20.8 kB / 1.089 GB, free: 12.85 MB / 0.8419 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.0001292/0.7855, allocations: 108.6 kB / 1.089 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005096/0.7861, allocations: 216.6 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7861, allocations: 0 / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.7863, allocations: 119.2 kB / 1.09 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.7866, allocations: 17.31 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005633/0.7872, allocations: 224.2 kB / 1.09 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.7875, allocations: 0.6943 MB / 1.09 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.452e-05/0.7876, allocations: 13.02 kB / 1.09 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.7876, allocations: 0 / 1.09 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of Templates: time 0.003239/0.7908, allocations: 1.262 MB / 1.092 GB, free: 11.54 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches