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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 113.9 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002603/0.002603, allocations: 189.4 kB / 22.23 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.162/3.162, allocations: 495.7 MB / 0.7831 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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 0.002047/0.002047, allocations: 68.19 kB / 1.137 GB, free: 33.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3416, allocations: 173.6 MB / 1.307 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002763/0.3444, allocations: 1.547 MB / 1.308 GB, free: 388 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000832/0.3452, allocations: 458.9 kB / 1.309 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.304e-05/0.3453, allocations: 4 kB / 1.309 GB, free: 15.92 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.583e-05/0.3454, allocations: 15.86 kB / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.777e-05/0.3454, allocations: 11.86 kB / 1.309 GB, free: 15.89 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.3457, allocations: 31.97 kB / 1.309 GB, free: 15.86 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000182/0.3458, allocations: 87.7 kB / 1.309 GB, free: 15.78 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.444e-05/0.3459, allocations: 12.17 kB / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.3461, allocations: 43.78 kB / 1.309 GB, free: 15.72 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.789e-05/0.3461, allocations: 43.83 kB / 1.309 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.3462, allocations: 4 kB / 1.309 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.875e-05/0.3462, allocations: 8 kB / 1.309 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.435e-05/0.3462, allocations: 15.94 kB / 1.309 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.485e-05/0.3463, allocations: 31.86 kB / 1.309 GB, free: 15.62 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.3465, allocations: 79.58 kB / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3465, allocations: 0 / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3465, allocations: 0 / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.3465, allocations: 0 / 1.309 GB, free: 15.54 MB / 1.014 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.0007267/0.3472, allocations: 365.5 kB / 1.31 GB, free: 15.14 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3472, allocations: 12.92 kB / 1.31 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.3473, allocations: 12.84 kB / 1.31 GB, free: 15.12 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.3475, allocations: 142.3 kB / 1.31 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.3475, allocations: 4.375 kB / 1.31 GB, free: 14.95 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.3475, allocations: 4.375 kB / 1.31 GB, free: 14.95 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.3478, allocations: 97.75 kB / 1.31 GB, free: 14.85 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.3479, allocations: 0 / 1.31 GB, free: 14.85 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3479, allocations: 0 / 1.31 GB, free: 14.85 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.3479, allocations: 4 kB / 1.31 GB, free: 14.84 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.3482, allocations: 71.94 kB / 1.31 GB, free: 14.77 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006116/0.3488, allocations: 307.7 kB / 1.31 GB, free: 14.43 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.3491, allocations: 74.52 kB / 1.31 GB, free: 14.35 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3493, allocations: 52.95 kB / 1.31 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.3493, allocations: 4.094 kB / 1.31 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.3497, allocations: 99.28 kB / 1.31 GB, free: 14.18 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3497, allocations: 0 / 1.31 GB, free: 14.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0007075/0.3504, allocations: 215.2 kB / 1.311 GB, free: 13.96 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.3504, allocations: 85.09 kB / 1.311 GB, free: 13.86 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.3506, allocations: 132.4 kB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3506, allocations: 29.7 kB / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.3507, allocations: 100 kB / 1.311 GB, free: 13.58 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.3507, allocations: 19.83 kB / 1.311 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.3508, allocations: 29.72 kB / 1.311 GB, free: 13.52 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3509, allocations: 330.7 kB / 1.311 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.3511, allocations: 47.97 kB / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.3513, allocations: 51.89 kB / 1.311 GB, free: 13.09 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.3516, allocations: 165.9 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3516, allocations: 4 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004751/0.3521, allocations: 212.9 kB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.3522, allocations: 59.41 kB / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.3522, allocations: 0 / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3522, allocations: 0 / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3523, allocations: 15.98 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.3523, allocations: 320 / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.3525, allocations: 27.92 kB / 1.312 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.3525, allocations: 7.938 kB / 1.312 GB, free: 12.56 MB / 1.014 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.0001207/0.3526, allocations: 147.5 kB / 1.312 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.287e-05/0.3526, allocations: 7.953 kB / 1.312 GB, free: 12.39 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.3527, allocations: 12.7 kB / 1.312 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3527, allocations: 4 kB / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3527, allocations: 0 / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3527, allocations: 3.984 kB / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006451/0.3533, allocations: 415.1 kB / 1.313 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3533, allocations: 4 kB / 1.313 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.3534, allocations: 20.2 kB / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3534, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.3534, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.3534, allocations: 7.875 kB / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3535, allocations: 4 kB / 1.313 GB, free: 11.87 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.3539, allocations: 261.1 kB / 1.313 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.712e-05/0.354, allocations: 7.953 kB / 1.313 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.354, allocations: 11.98 kB / 1.313 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.3541, allocations: 15.92 kB / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3542, allocations: 19.97 kB / 1.313 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.3543, allocations: 8 kB / 1.313 GB, free: 11.53 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.942e-05/0.3543, allocations: 101.4 kB / 1.313 GB, free: 11.43 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3543, allocations: 0 / 1.313 GB, free: 11.43 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002445/0.3546, allocations: 20 kB / 1.313 GB, free: 11.41 MB / 1.014 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.0001258/0.3547, allocations: 104 kB / 1.313 GB, free: 11.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005269/0.3552, allocations: 218.7 kB / 1.313 GB, free: 11.07 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3552, allocations: 4 kB / 1.313 GB, free: 11.06 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.3555, allocations: 111.2 kB / 1.313 GB, free: 10.94 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.3558, allocations: 15.98 kB / 1.313 GB, free: 10.93 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.3563, allocations: 203.1 kB / 1.314 GB, free: 10.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.3566, allocations: 0.6963 MB / 1.314 GB, free: 9.98 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.878e-05/0.3567, allocations: 11.98 kB / 1.314 GB, free: 9.969 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.68e-05/0.3567, allocations: 11.44 kB / 1.314 GB, free: 9.957 MB / 1.014 GB Notification: Performance of SimCode: time 5.81e-07/0.3567, allocations: 0 / 1.314 GB, free: 9.957 MB / 1.014 GB Notification: Performance of Templates: time 0.004298/0.361, allocations: 1.384 MB / 1.316 GB, free: 8.598 MB / 1.014 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.847568937577307]