Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001837/0.001837, 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.002331/0.002331, allocations: 217.6 kB / 23.01 MB, free: 4.609 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 8.047 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.358/3.358, allocations: 0.505 GB / 0.8108 GB, free: 22.08 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.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [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.002094/0.002094, allocations: 73.27 kB / 1.178 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3614, allocations: 180.2 MB / 1.354 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001906/0.3633, allocations: 0.6775 MB / 1.355 GB, free: 7.312 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3648, allocations: 1.12 MB / 1.356 GB, free: 6.18 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.3648, allocations: 0 / 1.356 GB, free: 6.18 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/0.3649, allocations: 3.938 kB / 1.356 GB, free: 6.176 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.782e-05/0.3649, allocations: 7.938 kB / 1.356 GB, free: 6.168 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.3652, allocations: 51.83 kB / 1.356 GB, free: 6.117 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.3653, allocations: 51.84 kB / 1.356 GB, free: 6.066 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.715e-05/0.3654, allocations: 4 kB / 1.356 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.013e-05/0.3655, allocations: 27.91 kB / 1.356 GB, free: 6.035 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.3656, allocations: 23.91 kB / 1.356 GB, free: 6.012 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.3656, allocations: 4 kB / 1.356 GB, free: 6.008 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.3657, allocations: 23.98 kB / 1.356 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.3657, allocations: 7.938 kB / 1.356 GB, free: 5.977 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.727e-05/0.3658, allocations: 27.91 kB / 1.356 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.3659, allocations: 67.66 kB / 1.356 GB, free: 5.883 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3659, allocations: 0 / 1.356 GB, free: 5.883 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3659, allocations: 4 kB / 1.356 GB, free: 5.879 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.3659, allocations: 0 / 1.356 GB, free: 5.879 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006124/0.3665, allocations: 298.1 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3666, allocations: 8.031 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.494e-05/0.3667, allocations: 4.938 kB / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.3668, allocations: 118.4 kB / 1.357 GB, free: 5.402 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.3669, allocations: 384 / 1.357 GB, free: 5.402 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.3669, allocations: 8.375 kB / 1.357 GB, free: 5.395 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.3671, allocations: 66.2 kB / 1.357 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3671, allocations: 4.188 kB / 1.357 GB, free: 5.32 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.3671, allocations: 7.938 kB / 1.357 GB, free: 5.312 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3671, allocations: 0 / 1.357 GB, free: 5.312 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.3673, allocations: 43.89 kB / 1.357 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004993/0.3678, allocations: 248 kB / 1.357 GB, free: 4.984 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.368, allocations: 58.48 kB / 1.357 GB, free: 4.918 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.3681, allocations: 24.97 kB / 1.357 GB, free: 4.891 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.3681, allocations: 4.062 kB / 1.357 GB, free: 4.887 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3683, allocations: 83.31 kB / 1.357 GB, free: 4.793 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3683, allocations: 0 / 1.357 GB, free: 4.793 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004134/0.3687, allocations: 121.6 kB / 1.357 GB, free: 4.668 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.3688, allocations: 59.39 kB / 1.357 GB, free: 4.598 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.256e-05/0.3689, allocations: 97.86 kB / 1.357 GB, free: 4.492 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.3689, allocations: 33.7 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.369, allocations: 92.06 kB / 1.357 GB, free: 4.359 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.868e-05/0.369, allocations: 23.8 kB / 1.357 GB, free: 4.336 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.369, allocations: 21.7 kB / 1.357 GB, free: 4.309 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3692, allocations: 318.8 kB / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3693, allocations: 35.84 kB / 1.358 GB, free: 3.953 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.3694, allocations: 60.27 kB / 1.358 GB, free: 3.879 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.3697, allocations: 92.14 kB / 1.358 GB, free: 3.773 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3697, allocations: 0 / 1.358 GB, free: 3.773 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002788/0.37, allocations: 117.5 kB / 1.358 GB, free: 3.652 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.37, allocations: 6.5 kB / 1.358 GB, free: 3.648 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.37, allocations: 4 kB / 1.358 GB, free: 3.645 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.37, allocations: 3.984 kB / 1.358 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.3701, allocations: 15.98 kB / 1.358 GB, free: 3.625 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.3701, allocations: 4.312 kB / 1.358 GB, free: 3.621 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.842e-05/0.3702, allocations: 8.078 kB / 1.358 GB, free: 3.613 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.3702, allocations: 8 kB / 1.358 GB, free: 3.605 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001054/0.3703, allocations: 130.3 kB / 1.358 GB, free: 3.469 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.3703, allocations: 4 kB / 1.358 GB, free: 3.465 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.3707, allocations: 110 kB / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3707, allocations: 0 / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3707, allocations: 0 / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3707, allocations: 0 / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004865/0.3712, allocations: 345.5 kB / 1.359 GB, free: 2.965 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3712, allocations: 256 / 1.359 GB, free: 2.965 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.107e-05/0.3713, allocations: 15.98 kB / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3713, allocations: 0 / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.3713, allocations: 0 / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3713, allocations: 0 / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3713, allocations: 0 / 1.359 GB, free: 2.949 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.3716, allocations: 207.4 kB / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.3716, allocations: 11.89 kB / 1.359 GB, free: 2.719 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.3716, allocations: 0 / 1.359 GB, free: 2.719 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.949e-05/0.3717, allocations: 7.984 kB / 1.359 GB, free: 2.711 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.3718, allocations: 11.98 kB / 1.359 GB, free: 2.699 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3718, allocations: 3.938 kB / 1.359 GB, free: 2.695 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.479e-05/0.3718, allocations: 87.28 kB / 1.359 GB, free: 2.609 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3718, allocations: 192 / 1.359 GB, free: 2.609 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002543/0.3721, allocations: 19.92 kB / 1.359 GB, free: 2.59 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001456/0.3722, allocations: 103.2 kB / 1.359 GB, free: 2.48 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002741/0.3725, allocations: 71.88 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3725, allocations: 256 / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.3726, allocations: 35.91 kB / 1.359 GB, free: 2.375 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.3729, allocations: 11.98 kB / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003719/0.3733, allocations: 163.9 kB / 1.359 GB, free: 2.168 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.3736, allocations: 0.6884 MB / 1.36 GB, free: 1.453 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.3736, allocations: 11.44 kB / 1.36 GB, free: 1.441 MB / 1.045 GB Notification: Performance of SimCode: time 3.01e-07/0.3736, allocations: 0 / 1.36 GB, free: 1.441 MB / 1.045 GB Notification: Performance of Templates: time 0.002675/0.3763, allocations: 0.9126 MB / 1.361 GB, free: 0.5352 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.36904988999595]