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.00132/0.00132, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001484/0.001484, allocations: 217.1 kB / 23.01 MB, free: 5.125 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.446/1.446, allocations: 230.6 MB / 256.8 MB, free: 7.969 MB / 206.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 3.169/3.169, allocations: 0.505 GB / 0.8108 GB, free: 22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 62.83 kB / 1.178 GB, free: 16.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3691, allocations: 180.2 MB / 1.354 GB, free: 7.926 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003366/0.3725, allocations: 1.556 MB / 1.356 GB, free: 6.359 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.3736, allocations: 0.5259 MB / 1.356 GB, free: 5.828 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.167e-05/0.3737, allocations: 4 kB / 1.356 GB, free: 5.824 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3738, allocations: 11.81 kB / 1.356 GB, free: 5.812 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.484e-05/0.3739, allocations: 11.88 kB / 1.356 GB, free: 5.801 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.3742, allocations: 47.88 kB / 1.356 GB, free: 5.754 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.3745, allocations: 87.77 kB / 1.356 GB, free: 5.668 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.3746, allocations: 11.98 kB / 1.356 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.3748, allocations: 47.8 kB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.3749, allocations: 39.81 kB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.3749, allocations: 8 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.375, allocations: 8 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.375, allocations: 15.98 kB / 1.356 GB, free: 5.539 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.975e-05/0.3751, allocations: 35.8 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.3753, allocations: 83.59 kB / 1.357 GB, free: 5.422 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3753, allocations: 0 / 1.357 GB, free: 5.422 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3753, allocations: 0 / 1.357 GB, free: 5.422 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.3753, allocations: 0 / 1.357 GB, free: 5.422 MB / 1.045 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.0007848/0.3761, allocations: 381.4 kB / 1.357 GB, free: 5.008 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3761, allocations: 8.031 kB / 1.357 GB, free: 5 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.3763, allocations: 24.88 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.3766, allocations: 134.4 kB / 1.357 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.3766, allocations: 8.312 kB / 1.357 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.3767, allocations: 4.375 kB / 1.357 GB, free: 4.809 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.377, allocations: 97.94 kB / 1.357 GB, free: 4.707 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.377, allocations: 0 / 1.357 GB, free: 4.707 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.377, allocations: 3.984 kB / 1.357 GB, free: 4.703 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.377, allocations: 4 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.3773, allocations: 75.92 kB / 1.357 GB, free: 4.625 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.378, allocations: 311.7 kB / 1.358 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/0.3783, allocations: 78.45 kB / 1.358 GB, free: 4.191 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.3784, allocations: 56.94 kB / 1.358 GB, free: 4.133 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.3785, allocations: 4 kB / 1.358 GB, free: 4.129 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.3787, allocations: 99.38 kB / 1.358 GB, free: 4.02 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3787, allocations: 0 / 1.358 GB, free: 4.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0006394/0.3794, allocations: 215.2 kB / 1.358 GB, free: 3.797 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.3794, allocations: 85.09 kB / 1.358 GB, free: 3.695 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.3796, allocations: 131.7 kB / 1.358 GB, free: 3.559 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.3796, allocations: 29.7 kB / 1.358 GB, free: 3.523 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/0.3797, allocations: 96.09 kB / 1.358 GB, free: 3.426 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/0.3797, allocations: 19.89 kB / 1.358 GB, free: 3.406 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.3798, allocations: 29.64 kB / 1.358 GB, free: 3.371 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3799, allocations: 322.8 kB / 1.359 GB, free: 3.047 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.3801, allocations: 51.95 kB / 1.359 GB, free: 2.996 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/0.3802, allocations: 47.95 kB / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.3806, allocations: 165.8 kB / 1.359 GB, free: 2.766 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3806, allocations: 4 kB / 1.359 GB, free: 2.762 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004346/0.381, allocations: 212.9 kB / 1.359 GB, free: 2.535 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.185e-05/0.3811, allocations: 59.41 kB / 1.359 GB, free: 2.465 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.3811, allocations: 3.984 kB / 1.359 GB, free: 2.461 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3811, allocations: 288 / 1.359 GB, free: 2.461 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3812, allocations: 15.98 kB / 1.359 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3812, allocations: 0 / 1.359 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.3813, allocations: 35.81 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.3813, allocations: 4.25 kB / 1.359 GB, free: 2.406 MB / 1.045 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.0001353/0.3815, allocations: 152.1 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.3815, allocations: 7.953 kB / 1.359 GB, free: 2.234 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.3815, allocations: 16.72 kB / 1.359 GB, free: 2.219 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3815, allocations: 0 / 1.359 GB, free: 2.219 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3816, allocations: 0 / 1.359 GB, free: 2.219 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3816, allocations: 3.984 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006118/0.3822, allocations: 411.2 kB / 1.36 GB, free: 1.758 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3822, allocations: 0 / 1.36 GB, free: 1.758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.628e-05/0.3823, allocations: 11.98 kB / 1.36 GB, free: 1.746 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3823, allocations: 3.938 kB / 1.36 GB, free: 1.742 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3823, allocations: 4 kB / 1.36 GB, free: 1.738 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.3823, allocations: 7.938 kB / 1.36 GB, free: 1.73 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3823, allocations: 0 / 1.36 GB, free: 1.73 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.3827, allocations: 269.7 kB / 1.36 GB, free: 1.445 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.508e-05/0.3827, allocations: 3.953 kB / 1.36 GB, free: 1.441 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.3828, allocations: 4 kB / 1.36 GB, free: 1.438 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.3829, allocations: 19.91 kB / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.383, allocations: 23.97 kB / 1.36 GB, free: 1.395 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.383, allocations: 8 kB / 1.36 GB, free: 1.387 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.216e-05/0.3831, allocations: 105.2 kB / 1.36 GB, free: 1.285 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3831, allocations: 0 / 1.36 GB, free: 1.285 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002363/0.3834, allocations: 16 kB / 1.36 GB, free: 1.27 MB / 1.045 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.000128/0.3835, allocations: 113.7 kB / 1.36 GB, free: 1.152 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004729/0.384, allocations: 214.7 kB / 1.361 GB, free: 0.918 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.384, allocations: 4 kB / 1.361 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.3842, allocations: 107.3 kB / 1.361 GB, free: 0.7969 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.3845, allocations: 18.19 kB / 1.361 GB, free: 0.7812 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005563/0.385, allocations: 228.9 kB / 1.361 GB, free: 0.5234 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.3854, allocations: 0.6961 MB / 1.362 GB, free: 15.8 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.3854, allocations: 23.42 kB / 1.362 GB, free: 15.78 MB / 1.061 GB Notification: Performance of SimCode: time 3.7e-07/0.3854, allocations: 0 / 1.362 GB, free: 15.78 MB / 1.061 GB Notification: Performance of Templates: time 0.003168/0.3886, allocations: 1.278 MB / 1.363 GB, free: 14.5 MB / 1.061 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/jenkins1/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: 11.14202267199289]