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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009405/0.0009405, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001118/0.001118, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.924/2.924, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003726, allocations: 10.09 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4147, allocations: 159.6 MB / 1.058 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002022/0.4167, allocations: 1.221 MB / 1.059 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000813/0.4176, allocations: 435.1 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.488e-05/0.4177, allocations: 0 / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.91e-05/0.4178, allocations: 3.938 kB / 1.06 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.037e-05/0.4178, allocations: 7.922 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.4181, allocations: 35.91 kB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.4182, allocations: 71.77 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.4183, allocations: 12.17 kB / 1.06 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.4185, allocations: 35.86 kB / 1.06 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.437e-05/0.4186, allocations: 31.88 kB / 1.06 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.4186, allocations: 4 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.548e-05/0.4186, allocations: 4 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.892e-05/0.4187, allocations: 11.94 kB / 1.06 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.764e-05/0.4187, allocations: 37.7 kB / 1.06 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.4189, allocations: 48.17 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4189, allocations: 0 / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.385e-06/0.4189, allocations: 3.938 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.4189, allocations: 0 / 1.06 GB, free: 3.336 MB / 0.8106 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.0008637/0.4198, allocations: 442.5 kB / 1.06 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.4198, allocations: 12.03 kB / 1.06 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.58e-05/0.4199, allocations: 11.84 kB / 1.06 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.4201, allocations: 177.5 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.4202, allocations: 15.92 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.4202, allocations: 7.953 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.4205, allocations: 101.6 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.4205, allocations: 4 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.4206, allocations: 4 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.4206, allocations: 3.984 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.4209, allocations: 83.94 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006144/0.4215, allocations: 344.6 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.4218, allocations: 98.52 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.422, allocations: 56.95 kB / 1.061 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.422, allocations: 4 kB / 1.061 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.4224, allocations: 107.3 kB / 1.061 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.385e-06/0.4224, allocations: 0 / 1.061 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006394/0.423, allocations: 235.2 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.4231, allocations: 89.09 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.4232, allocations: 132.5 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.4233, allocations: 29.7 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.4233, allocations: 95.98 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.4234, allocations: 19.8 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-06/0.4234, allocations: 4 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.4235, allocations: 318.8 kB / 1.062 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.4237, allocations: 63.95 kB / 1.062 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.4239, allocations: 51.95 kB / 1.062 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.4241, allocations: 107.3 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4241, allocations: 192 / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004546/0.4245, allocations: 228.9 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-05/0.4246, allocations: 64.66 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4246, allocations: 0 / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.4247, allocations: 3.984 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.4248, allocations: 19.92 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.4248, allocations: 4 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.425, allocations: 31.81 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.425, allocations: 4 kB / 1.063 GB, free: 144 kB / 0.8106 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.4252, allocations: 159.4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.4252, allocations: 7.906 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.412e-05/0.4252, allocations: 12.7 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4252, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4252, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4253, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006199/0.4259, allocations: 452.1 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4259, allocations: 0 / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.054e-05/0.426, allocations: 19.98 kB / 1.063 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.426, allocations: 0 / 1.063 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.426, allocations: 4 kB / 1.063 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.426, allocations: 4 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.426, allocations: 400 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004818/0.4265, allocations: 289 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.059e-05/0.4266, allocations: 89 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.4266, allocations: 4 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.4268, allocations: 15.98 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.4269, allocations: 27.91 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.4269, allocations: 0 / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.146e-05/0.427, allocations: 107.2 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.427, allocations: 4 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002492/0.4273, allocations: 16 kB / 1.064 GB, free: 14.83 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.4274, allocations: 99.25 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004774/0.4279, allocations: 238.7 kB / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4279, allocations: 0 / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.4282, allocations: 115.3 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.4285, allocations: 20.98 kB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005466/0.429, allocations: 220.9 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.4295, allocations: 0.6965 MB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.217e-05/0.4296, allocations: 7.984 kB / 1.065 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.4296, allocations: 15.42 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.4296, allocations: 0 / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.004041/0.4337, allocations: 1.102 MB / 1.066 GB, free: 12.25 MB / 0.8262 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