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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00978/0.00978, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001919/0.001919, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.645/2.645, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.91 kB / 1.054 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8711/0.8725, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002665/0.8752, allocations: 1.518 MB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000775/0.876, allocations: 450.9 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.898e-05/0.876, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.306e-05/0.8761, allocations: 11.86 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.493e-05/0.8762, allocations: 23.86 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.8764, allocations: 19.97 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001503/0.8766, allocations: 95.7 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.8767, allocations: 24.16 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.8768, allocations: 39.84 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.8769, allocations: 31.84 kB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.8769, allocations: 8 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.471e-05/0.877, allocations: 4 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.726e-05/0.877, allocations: 23.91 kB / 1.21 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.321e-05/0.8771, allocations: 27.86 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.8772, allocations: 75.72 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.8772, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.062e-06/0.8772, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.8772, allocations: 4 kB / 1.21 GB, free: 11.23 MB / 0.9356 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.0006359/0.8779, allocations: 452.2 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.8779, allocations: 8.031 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.878, allocations: 8.844 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.8781, allocations: 187.2 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.8782, allocations: 4.375 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.8782, allocations: 16.3 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.8785, allocations: 97.75 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.8785, allocations: 0 / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.8785, allocations: 4 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.8785, allocations: 0 / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.8788, allocations: 71.92 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005283/0.8793, allocations: 340.5 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.8796, allocations: 82.52 kB / 1.211 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.8798, allocations: 52.94 kB / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.8798, allocations: 4.031 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.8801, allocations: 107.3 kB / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/0.8801, allocations: 0 / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.000576/0.8807, allocations: 203.2 kB / 1.212 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.8807, allocations: 85.11 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.8809, allocations: 134.1 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.8809, allocations: 37.64 kB / 1.212 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.209e-05/0.8809, allocations: 92.12 kB / 1.212 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.881, allocations: 19.66 kB / 1.212 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.881, allocations: 33.7 kB / 1.212 GB, free: 9 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.8812, allocations: 322.8 kB / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.8813, allocations: 43.97 kB / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.8815, allocations: 59.89 kB / 1.212 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.8818, allocations: 166 kB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8818, allocations: 0 / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000407/0.8822, allocations: 208.9 kB / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.8823, allocations: 67.39 kB / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-06/0.8823, allocations: 4 kB / 1.213 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.8823, allocations: 0 / 1.213 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.8824, allocations: 15.98 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.8825, allocations: 0 / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.8826, allocations: 11.98 kB / 1.213 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.8826, allocations: 15.86 kB / 1.213 GB, free: 8.043 MB / 0.9356 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 9.709e-05/0.8827, allocations: 147.5 kB / 1.213 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.8827, allocations: 11.91 kB / 1.213 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.928e-05/0.8828, allocations: 12.7 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.8828, allocations: 4 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.8828, allocations: 0 / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.8828, allocations: 0 / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.8833, allocations: 428.1 kB / 1.213 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.8834, allocations: 4 kB / 1.213 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.647e-05/0.8835, allocations: 23.92 kB / 1.213 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.8835, allocations: 0 / 1.213 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.8835, allocations: 0 / 1.213 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.8835, allocations: 3.938 kB / 1.213 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.8835, allocations: 0 / 1.213 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004054/0.8839, allocations: 269.5 kB / 1.214 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.884, allocations: 92.95 kB / 1.214 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.884, allocations: 3.984 kB / 1.214 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.8841, allocations: 19.92 kB / 1.214 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.8842, allocations: 23.97 kB / 1.214 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.8843, allocations: 4 kB / 1.214 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.752e-05/0.8843, allocations: 101.9 kB / 1.214 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8843, allocations: 0 / 1.214 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002457/0.8846, allocations: 16 kB / 1.214 GB, free: 6.777 MB / 0.9356 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.0001129/0.8847, allocations: 115.2 kB / 1.214 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004113/0.8851, allocations: 214.8 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.8851, allocations: 192 / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.8854, allocations: 119.2 kB / 1.214 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.8856, allocations: 21.48 kB / 1.214 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.8861, allocations: 194.9 kB / 1.215 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.8863, allocations: 0.6885 MB / 1.215 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.514e-05/0.8864, allocations: 15.97 kB / 1.215 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.61e-05/0.8864, allocations: 15.42 kB / 1.215 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.8865, allocations: 4 kB / 1.215 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of Templates: time 0.00371/0.8902, allocations: 1.313 MB / 1.217 GB, free: 4.008 MB / 0.9356 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=480 -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/jenkins/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