Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001358/0.001358, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001417/0.001417, allocations: 215.4 kB / 22.99 MB, free: 4.945 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.183/3.183, allocations: 0.4892 GB / 0.7951 GB, free: 35.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [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.002133/0.002133, allocations: 63.95 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.372, allocations: 176.1 MB / 1.326 GB, free: 1.875 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001913/0.3739, allocations: 0.661 MB / 1.327 GB, free: 1.219 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.3753, allocations: 1.089 MB / 1.328 GB, free: 120 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.375e-05/0.3754, allocations: 0 / 1.328 GB, free: 120 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.3754, allocations: 3.938 kB / 1.328 GB, free: 116 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.204e-05/0.3755, allocations: 7.938 kB / 1.328 GB, free: 108 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.3757, allocations: 51.83 kB / 1.328 GB, free: 56 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.868e-05/0.3758, allocations: 43.84 kB / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 7.618e-05/0.3758, allocations: 12 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.617e-05/0.3759, allocations: 19.97 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.8e-05/0.376, allocations: 23.86 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.376, allocations: 4 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.118e-05/0.376, allocations: 19.98 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.3761, allocations: 7.984 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.148e-05/0.3761, allocations: 19.92 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.3762, allocations: 63.67 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3762, allocations: 0 / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3762, allocations: 0 / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.3762, allocations: 0 / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004586/0.3767, allocations: 296 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3767, allocations: 12.03 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.101e-05/0.3768, allocations: 0.9375 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.3769, allocations: 122.4 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.3769, allocations: 8.312 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.3769, allocations: 4.375 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.3771, allocations: 58.23 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3771, allocations: 4.125 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.3771, allocations: 3.938 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3772, allocations: 7.984 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.3773, allocations: 43.95 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004121/0.3777, allocations: 216.5 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.3779, allocations: 50.55 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.32e-05/0.378, allocations: 28.91 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.378, allocations: 11.94 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.3782, allocations: 71.38 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3782, allocations: 0 / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003993/0.3786, allocations: 117.6 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.3786, allocations: 59.41 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.3787, allocations: 105.8 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3788, allocations: 29.64 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.148e-05/0.3788, allocations: 100.1 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.3788, allocations: 11.84 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.3789, allocations: 29.7 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.379, allocations: 314.8 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.684e-05/0.3791, allocations: 27.97 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.3792, allocations: 56.27 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.3794, allocations: 88.2 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3794, allocations: 0 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002659/0.3797, allocations: 117.4 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.3797, allocations: 4 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3797, allocations: 8.469 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3797, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.3798, allocations: 15.98 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3799, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.3799, allocations: 15.98 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.3799, allocations: 3.984 kB / 1.33 GB, free: 13.64 MB / 1.029 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$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): 9 * 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 9.474e-05/0.38, allocations: 128.2 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.38, allocations: 3.953 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.3803, allocations: 106.3 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3803, allocations: 256 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3803, allocations: 4 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3803, allocations: 7.922 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004084/0.3807, allocations: 294 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3807, allocations: 0 / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.824e-05/0.3808, allocations: 11.98 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3808, allocations: 0 / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3808, allocations: 4 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3808, allocations: 8 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3808, allocations: 0 / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.3811, allocations: 195.3 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.229e-05/0.3811, allocations: 11.95 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.3811, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.3812, allocations: 7.984 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.3813, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.3813, allocations: 4 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.142e-05/0.3813, allocations: 87.27 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3813, allocations: 7.938 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002355/0.3816, allocations: 12 kB / 1.331 GB, free: 12.69 MB / 1.029 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001472/0.3817, allocations: 103.2 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002606/0.382, allocations: 71.81 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.382, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.3821, allocations: 32.23 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.3823, allocations: 11.98 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000343/0.3827, allocations: 163.8 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.893e-05/0.3827, allocations: 67.34 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.3828, allocations: 15.44 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of SimCode: time 2.61e-07/0.3828, allocations: 0 / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of Templates: time 0.002573/0.3853, allocations: 0.9038 MB / 1.332 GB, free: 11.27 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.042271220125258]