Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001453/0.001453, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001465/0.001465, allocations: 219.1 kB / 23.01 MB, free: 4.605 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.528/1.528, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.198/3.198, allocations: 0.505 GB / 0.8108 GB, free: 22.02 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.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_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_latest_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.002064/0.002064, allocations: 66.22 kB / 1.178 GB, free: 16.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3593, allocations: 180.2 MB / 1.354 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001898/0.3612, allocations: 0.6853 MB / 1.355 GB, free: 7.25 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3626, allocations: 1.101 MB / 1.356 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.312e-05/0.3627, allocations: 0 / 1.356 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.232e-05/0.3627, allocations: 7.922 kB / 1.356 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.513e-05/0.3628, allocations: 7.938 kB / 1.356 GB, free: 6.121 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002705/0.363, allocations: 43.83 kB / 1.356 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.3632, allocations: 47.86 kB / 1.356 GB, free: 6.031 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.3633, allocations: 11.98 kB / 1.356 GB, free: 6.02 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.186e-05/0.3633, allocations: 23.92 kB / 1.356 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.577e-05/0.3634, allocations: 23.91 kB / 1.356 GB, free: 5.973 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.3634, allocations: 4 kB / 1.356 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.224e-05/0.3635, allocations: 19.98 kB / 1.356 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.3635, allocations: 11.94 kB / 1.356 GB, free: 5.938 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.3635, allocations: 23.91 kB / 1.356 GB, free: 5.914 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.3637, allocations: 59.73 kB / 1.356 GB, free: 5.855 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3637, allocations: 0 / 1.356 GB, free: 5.855 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3637, allocations: 0 / 1.356 GB, free: 5.855 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.3637, allocations: 0 / 1.356 GB, free: 5.855 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005367/0.3642, allocations: 298.1 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.3643, allocations: 11.97 kB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.115e-05/0.3644, allocations: 4.938 kB / 1.356 GB, free: 5.516 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.3645, allocations: 118.4 kB / 1.356 GB, free: 5.375 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.3645, allocations: 384 / 1.356 GB, free: 5.375 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.3645, allocations: 4.375 kB / 1.357 GB, free: 5.371 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.3647, allocations: 62.22 kB / 1.357 GB, free: 5.305 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3647, allocations: 192 / 1.357 GB, free: 5.305 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.3647, allocations: 11.94 kB / 1.357 GB, free: 5.293 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3647, allocations: 3.984 kB / 1.357 GB, free: 5.289 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.3649, allocations: 43.95 kB / 1.357 GB, free: 5.246 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.3654, allocations: 247.9 kB / 1.357 GB, free: 4.961 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.3655, allocations: 58.48 kB / 1.357 GB, free: 4.895 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.811e-05/0.3656, allocations: 24.97 kB / 1.357 GB, free: 4.867 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.3656, allocations: 3.984 kB / 1.357 GB, free: 4.863 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.3658, allocations: 79.28 kB / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.3658, allocations: 0 / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004016/0.3662, allocations: 117.6 kB / 1.357 GB, free: 4.652 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.3663, allocations: 55.41 kB / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.004e-05/0.3664, allocations: 105.9 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.3664, allocations: 29.7 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.3665, allocations: 92.08 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.3665, allocations: 23.83 kB / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.3665, allocations: 17.72 kB / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3667, allocations: 326.8 kB / 1.358 GB, free: 3.969 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-05/0.3668, allocations: 19.98 kB / 1.358 GB, free: 3.949 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3669, allocations: 60.2 kB / 1.358 GB, free: 3.875 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.3671, allocations: 100.1 kB / 1.358 GB, free: 3.762 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3671, allocations: 0 / 1.358 GB, free: 3.762 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002693/0.3674, allocations: 109.6 kB / 1.358 GB, free: 3.648 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.3674, allocations: 9.719 kB / 1.358 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3674, allocations: 0 / 1.358 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3674, allocations: 4 kB / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3675, allocations: 19.98 kB / 1.358 GB, free: 3.617 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.3676, allocations: 0 / 1.358 GB, free: 3.617 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.3676, allocations: 8.203 kB / 1.358 GB, free: 3.609 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.3676, allocations: 8 kB / 1.358 GB, free: 3.602 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 (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 0.000101/0.3677, allocations: 136.5 kB / 1.358 GB, free: 3.461 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/0.3677, allocations: 4 kB / 1.358 GB, free: 3.457 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.368, allocations: 102 kB / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.368, allocations: 0 / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.368, allocations: 4 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.368, allocations: 0 / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004476/0.3685, allocations: 333.4 kB / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3685, allocations: 0 / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.796e-05/0.3685, allocations: 8 kB / 1.359 GB, free: 2.965 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3685, allocations: 0 / 1.359 GB, free: 2.965 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.3685, allocations: 3.984 kB / 1.359 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3685, allocations: 0 / 1.359 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3685, allocations: 0 / 1.359 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.3688, allocations: 195.4 kB / 1.359 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.3688, allocations: 7.953 kB / 1.359 GB, free: 2.746 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.3689, allocations: 3.984 kB / 1.359 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.042e-05/0.3689, allocations: 4 kB / 1.359 GB, free: 2.738 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.369, allocations: 11.98 kB / 1.359 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.369, allocations: 3.938 kB / 1.359 GB, free: 2.723 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.915e-05/0.369, allocations: 83.27 kB / 1.359 GB, free: 2.641 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.369, allocations: 4 kB / 1.359 GB, free: 2.637 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002469/0.3693, allocations: 12 kB / 1.359 GB, free: 2.625 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 (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.0001333/0.3694, allocations: 99.25 kB / 1.359 GB, free: 2.52 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000262/0.3697, allocations: 67.89 kB / 1.359 GB, free: 2.453 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3697, allocations: 0 / 1.359 GB, free: 2.453 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.3698, allocations: 31.91 kB / 1.359 GB, free: 2.422 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.37, allocations: 12.62 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003614/0.3704, allocations: 171.8 kB / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3707, allocations: 0.6845 MB / 1.36 GB, free: 1.496 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.3707, allocations: 15.42 kB / 1.36 GB, free: 1.48 MB / 1.045 GB Notification: Performance of SimCode: time 3.3e-07/0.3707, allocations: 0 / 1.36 GB, free: 1.48 MB / 1.045 GB Notification: Performance of Templates: time 0.002465/0.3732, allocations: 0.8796 MB / 1.361 GB, free: 0.6016 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.568879581987858]