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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002329/0.002329, allocations: 159.6 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 177.2 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.913/2.913, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.53e-05/2.661e-05, allocations: 6.078 kB / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003199/0.003226, allocations: 1.547 MB / 1.002 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.004271, allocations: 494.7 kB / 1.002 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.341e-05/0.004344, allocations: 4 kB / 1.002 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 9.649e-05/0.004441, allocations: 3.938 kB / 1.002 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.148e-05/0.004502, allocations: 15.86 kB / 1.002 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.004823, allocations: 43.83 kB / 1.002 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.005009, allocations: 87.7 kB / 1.002 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.005123, allocations: 15.97 kB / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.005341, allocations: 55.83 kB / 1.002 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.239e-05/0.005433, allocations: 35.89 kB / 1.002 GB, free: 4.992 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.005458, allocations: 4 kB / 1.002 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.069e-05/0.005509, allocations: 16 kB / 1.002 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.536e-05/0.005554, allocations: 7.984 kB / 1.002 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.294e-05/0.005637, allocations: 31.91 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.005821, allocations: 83.75 kB / 1.003 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.005825, allocations: 0 / 1.003 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.443e-06/0.005826, allocations: 0 / 1.003 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.005836, allocations: 0 / 1.003 GB, free: 4.852 MB / 0.9512 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.0007906/0.006627, allocations: 377.4 kB / 1.003 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.006663, allocations: 8.031 kB / 1.003 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.006829, allocations: 20.88 kB / 1.003 GB, free: 4.414 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.007079, allocations: 141.5 kB / 1.003 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.007091, allocations: 384 / 1.003 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.007118, allocations: 8.375 kB / 1.003 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.00746, allocations: 123.8 kB / 1.003 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.00747, allocations: 192 / 1.003 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.007483, allocations: 384 / 1.003 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.00749, allocations: 7.938 kB / 1.003 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.007836, allocations: 109.5 kB / 1.003 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/0.008443, allocations: 264.5 kB / 1.004 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.008789, allocations: 104.2 kB / 1.004 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.008996, allocations: 90.61 kB / 1.004 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.009014, allocations: 0 / 1.004 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003066/0.00932, allocations: 129 kB / 1.004 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.009322, allocations: 0 / 1.004 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0008008/0.01012, allocations: 262.6 kB / 1.004 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.01019, allocations: 81.11 kB / 1.004 GB, free: 2.961 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.01032, allocations: 138 kB / 1.004 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.01035, allocations: 33.7 kB / 1.004 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.01042, allocations: 96.02 kB / 1.004 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.01044, allocations: 23.84 kB / 1.004 GB, free: 2.652 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.01052, allocations: 29.7 kB / 1.004 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.01066, allocations: 314.8 kB / 1.005 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.01089, allocations: 103.4 kB / 1.005 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.01112, allocations: 111.4 kB / 1.005 GB, free: 2.066 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.0115, allocations: 169.9 kB / 1.005 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.0115, allocations: 0 / 1.005 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005521/0.01205, allocations: 280.4 kB / 1.005 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.01212, allocations: 55.41 kB / 1.005 GB, free: 1.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.01212, allocations: 0 / 1.005 GB, free: 1.508 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.01214, allocations: 4 kB / 1.005 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.01227, allocations: 23.97 kB / 1.005 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.01228, allocations: 0 / 1.005 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.01242, allocations: 23.86 kB / 1.005 GB, free: 1.457 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.01243, allocations: 4 kB / 1.006 GB, free: 1.453 MB / 0.9512 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.000138/0.01257, allocations: 148.1 kB / 1.006 GB, free: 1.293 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.0126, allocations: 19.83 kB / 1.006 GB, free: 1.273 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/0.01264, allocations: 8.781 kB / 1.006 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.01264, allocations: 4 kB / 1.006 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.01265, allocations: 0 / 1.006 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.01265, allocations: 4 kB / 1.006 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.01337, allocations: 397.5 kB / 1.006 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01338, allocations: 0 / 1.006 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.01348, allocations: 23.91 kB / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.01349, allocations: 0 / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.0135, allocations: 0 / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.0135, allocations: 0 / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.0135, allocations: 0 / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005392/0.01404, allocations: 306.8 kB / 1.006 GB, free: 480 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.673e-05/0.01406, allocations: 7.953 kB / 1.006 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.01408, allocations: 0 / 1.006 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.01424, allocations: 15.97 kB / 1.006 GB, free: 456 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.01435, allocations: 27.97 kB / 1.006 GB, free: 428 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.01436, allocations: 0 / 1.006 GB, free: 428 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.665e-05/0.01444, allocations: 97.94 kB / 1.007 GB, free: 332 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.01444, allocations: 4 kB / 1.007 GB, free: 328 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002607/0.0147, allocations: 24 kB / 1.007 GB, free: 304 kB / 0.9512 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.0001502/0.01485, allocations: 103.2 kB / 1.007 GB, free: 188 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005951/0.01545, allocations: 299.8 kB / 1.007 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.01545, allocations: 0 / 1.007 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.01574, allocations: 137 kB / 1.007 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.01604, allocations: 26.08 kB / 1.007 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006167/0.01666, allocations: 231.5 kB / 1.007 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.128e-05/0.01675, allocations: 79.27 kB / 1.007 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.344e-05/0.01681, allocations: 7.984 kB / 1.007 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.162e-05/0.01686, allocations: 20.5 kB / 1.007 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of SimCode: time 6.01e-07/0.01686, allocations: 0 / 1.007 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of Templates: time 0.00569/0.02255, allocations: 1.397 MB / 1.009 GB, free: 13.92 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.089989315718412]