Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007833/0.0007833, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008347/0.0008347, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.8835/0.8835, allocations: 177.1 MB / 203.5 MB, free: 5.688 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.692/1.692, allocations: 377.9 MB / 0.6229 GB, free: 8.621 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 0.9822 GB, free: 2.07 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.269e-05/3.465e-05, allocations: 6.219 kB / 0.9822 GB, free: 2.062 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002163/0.002198, allocations: 1.553 MB / 0.9837 GB, free: 0.5 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007101/0.002908, allocations: 486.7 kB / 0.9842 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.333e-05/0.002971, allocations: 0 / 0.9842 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.512e-05/0.003066, allocations: 11.92 kB / 0.9842 GB, free: 8 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.003125, allocations: 19.92 kB / 0.9842 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.003391, allocations: 43.83 kB / 0.9842 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.003533, allocations: 87.75 kB / 0.9843 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.831e-05/0.003631, allocations: 11.94 kB / 0.9843 GB, free: 15.84 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.003793, allocations: 55.83 kB / 0.9844 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.003857, allocations: 35.94 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.003877, allocations: 8 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 4.197e-05/0.003919, allocations: 12 kB / 0.9844 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.00396, allocations: 7.938 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.004003, allocations: 31.91 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.004146, allocations: 83.69 kB / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.004148, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.92e-07/0.004149, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.004154, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 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.0005209/0.004675, allocations: 389.3 kB / 0.9849 GB, free: 15.19 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.00471, allocations: 8.031 kB / 0.9849 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.004827, allocations: 20.88 kB / 0.985 GB, free: 15.16 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.005005, allocations: 132.7 kB / 0.9851 GB, free: 15.01 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.005018, allocations: 8.375 kB / 0.9851 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.00503, allocations: 4.375 kB / 0.9851 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.005226, allocations: 115.9 kB / 0.9852 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.005233, allocations: 192 / 0.9852 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.005245, allocations: 8.375 kB / 0.9852 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.005251, allocations: 7.938 kB / 0.9852 GB, free: 14.86 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.005399, allocations: 101.6 kB / 0.9853 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.005754, allocations: 260.5 kB / 0.9856 GB, free: 14.47 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.00592, allocations: 108.3 kB / 0.9857 GB, free: 14.35 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.006009, allocations: 90.53 kB / 0.9858 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.00602, allocations: 0 / 0.9858 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.006192, allocations: 133 kB / 0.9859 GB, free: 14.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.006194, allocations: 0 / 0.9859 GB, free: 14.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003677/0.006561, allocations: 266.6 kB / 0.9861 GB, free: 13.82 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.0066, allocations: 85.05 kB / 0.9862 GB, free: 13.71 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.297e-05/0.006673, allocations: 130.1 kB / 0.9863 GB, free: 13.57 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.006687, allocations: 29.7 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.006739, allocations: 104 kB / 0.9865 GB, free: 13.43 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.006754, allocations: 19.84 kB / 0.9865 GB, free: 13.41 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.006792, allocations: 29.7 kB / 0.9865 GB, free: 13.38 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.168e-05/0.006863, allocations: 318.8 kB / 0.9868 GB, free: 13.06 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.006964, allocations: 103.4 kB / 0.9869 GB, free: 12.95 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.167e-05/0.007056, allocations: 115.3 kB / 0.987 GB, free: 12.82 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.007221, allocations: 161.9 kB / 0.9872 GB, free: 12.64 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.007223, allocations: 0 / 0.9872 GB, free: 12.64 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002436/0.007467, allocations: 276.2 kB / 0.9875 GB, free: 12.34 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.007501, allocations: 59.39 kB / 0.9875 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.007507, allocations: 8 kB / 0.9875 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.007517, allocations: 0 / 0.9875 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.509e-05/0.007582, allocations: 11.98 kB / 0.9875 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.007587, allocations: 7.938 kB / 0.9875 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.721e-05/0.007644, allocations: 19.92 kB / 0.9876 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.007655, allocations: 7.984 kB / 0.9876 GB, free: 12.21 MB / 0.948 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 8.166e-05/0.007737, allocations: 143.5 kB / 0.9877 GB, free: 12.06 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.007751, allocations: 15.88 kB / 0.9877 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.952e-05/0.00777, allocations: 16.77 kB / 0.9877 GB, free: 12.03 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.007773, allocations: 4 kB / 0.9877 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.007776, allocations: 0 / 0.9877 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.00778, allocations: 0 / 0.9877 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.008089, allocations: 397.8 kB / 0.9881 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.00809, allocations: 3.938 kB / 0.9881 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.775e-05/0.008127, allocations: 15.98 kB / 0.9881 GB, free: 11.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.008131, allocations: 4 kB / 0.9881 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.008138, allocations: 4 kB / 0.9881 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.00814, allocations: 0 / 0.9881 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.008141, allocations: 4 kB / 0.9881 GB, free: 11.55 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.008516, allocations: 302.8 kB / 0.9884 GB, free: 11.23 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.938e-06/0.008526, allocations: 7.953 kB / 0.9884 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.008541, allocations: 4.281 kB / 0.9884 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.008605, allocations: 19.92 kB / 0.9885 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-05/0.008679, allocations: 19.97 kB / 0.9885 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.008686, allocations: 7.938 kB / 0.9885 GB, free: 11.17 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.975e-05/0.008726, allocations: 107.2 kB / 0.9886 GB, free: 11.07 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.1e-08/0.008726, allocations: 0 / 0.9886 GB, free: 11.07 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001541/0.00888, allocations: 20 kB / 0.9886 GB, free: 11.05 MB / 0.948 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 7.996e-05/0.00896, allocations: 99.19 kB / 0.9887 GB, free: 10.94 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000277/0.009237, allocations: 295.8 kB / 0.989 GB, free: 10.61 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.009238, allocations: 4 kB / 0.989 GB, free: 10.61 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.009347, allocations: 141 kB / 0.9891 GB, free: 10.45 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001938/0.009541, allocations: 18.5 kB / 0.9891 GB, free: 10.43 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003629/0.009904, allocations: 256.5 kB / 0.9894 GB, free: 10.14 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.188e-05/0.009956, allocations: 75.58 kB / 0.9895 GB, free: 10.05 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.009993, allocations: 20.48 kB / 0.9895 GB, free: 10.03 MB / 0.948 GB Notification: Performance of SimCode: time 5.21e-07/0.009994, allocations: 0 / 0.9895 GB, free: 10.03 MB / 0.948 GB Notification: Performance of Templates: time 0.002/0.01199, allocations: 1.304 MB / 0.9908 GB, free: 8.734 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.564366826787591]