Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.00167/0.00167, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.0019/0.0019, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.669/1.669, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.015/3.015, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.89 kB / 1.107 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425/1.427, allocations: 168.7 MB / 1.272 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002277/1.43, allocations: 0.6865 MB / 1.273 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001843/1.431, allocations: 1.047 MB / 1.274 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/1.432, allocations: 0.6562 kB / 1.274 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.11e-05/1.432, allocations: 5.312 kB / 1.274 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001009/1.432, allocations: 5.422 kB / 1.274 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/1.432, allocations: 44.89 kB / 1.274 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/1.432, allocations: 42.86 kB / 1.274 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/1.432, allocations: 10.39 kB / 1.274 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/1.433, allocations: 24.5 kB / 1.274 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.863e-05/1.433, allocations: 18.5 kB / 1.274 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/1.433, allocations: 3.406 kB / 1.274 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/1.433, allocations: 21.83 kB / 1.274 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/1.433, allocations: 8.203 kB / 1.274 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.519e-05/1.433, allocations: 22.56 kB / 1.274 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002058/1.433, allocations: 49.34 kB / 1.274 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/1.433, allocations: 0.9062 kB / 1.274 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.443e-06/1.433, allocations: 3.938 kB / 1.274 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.645e-06/1.433, allocations: 0 / 1.274 GB, free: 6.559 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006455/1.434, allocations: 361.9 kB / 1.274 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/1.434, allocations: 9.812 kB / 1.274 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/1.434, allocations: 7.359 kB / 1.274 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/1.434, allocations: 168.3 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/1.434, allocations: 2.281 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/1.434, allocations: 3.031 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/1.434, allocations: 63.77 kB / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/1.434, allocations: 192 / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/1.434, allocations: 8.969 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/1.434, allocations: 0 / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/1.434, allocations: 36.22 kB / 1.275 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005059/1.435, allocations: 278.2 kB / 1.275 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/1.435, allocations: 52.67 kB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/1.435, allocations: 24.72 kB / 1.275 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/1.435, allocations: 9.781 kB / 1.275 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/1.436, allocations: 66.33 kB / 1.275 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/1.436, allocations: 0 / 1.275 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.0004524/1.436, allocations: 103.3 kB / 1.275 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/1.436, allocations: 60.56 kB / 1.275 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.856e-05/1.436, allocations: 110.5 kB / 1.275 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/1.436, allocations: 25.7 kB / 1.275 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.207e-05/1.436, allocations: 93.34 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/1.436, allocations: 5.672 kB / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.868e-05/1.436, allocations: 20.34 kB / 1.275 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.181e-05/1.436, allocations: 323 kB / 1.276 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/1.436, allocations: 22.81 kB / 1.276 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/1.437, allocations: 44.78 kB / 1.276 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/1.437, allocations: 86.28 kB / 1.276 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.437, allocations: 1.156 kB / 1.276 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002704/1.437, allocations: 98.72 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/1.437, allocations: 6.219 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/1.437, allocations: 4.844 kB / 1.276 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/1.437, allocations: 1.062 kB / 1.276 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/1.437, allocations: 19.55 kB / 1.276 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/1.437, allocations: 1.438 kB / 1.276 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.107e-05/1.437, allocations: 9.875 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/1.437, allocations: 4.828 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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 8.756e-05/1.437, allocations: 122.2 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/1.437, allocations: 5.578 kB / 1.276 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/1.438, allocations: 99.86 kB / 1.276 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.438, allocations: 3.203 kB / 1.276 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/1.438, allocations: 0 / 1.276 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/1.438, allocations: 1.656 kB / 1.276 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004664/1.438, allocations: 336.1 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.438, allocations: 0 / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.374e-05/1.438, allocations: 17.98 kB / 1.276 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/1.438, allocations: 1.188 kB / 1.276 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/1.438, allocations: 0 / 1.276 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/1.438, allocations: 4.875 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.438, allocations: 1.031 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/1.439, allocations: 182.9 kB / 1.277 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/1.439, allocations: 78.64 kB / 1.277 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/1.439, allocations: 6.766 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/1.439, allocations: 5.828 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/1.439, allocations: 3.984 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/1.439, allocations: 13.44 kB / 1.277 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.919e-05/1.439, allocations: 83.67 kB / 1.277 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.439, allocations: 0 / 1.277 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002579/1.439, allocations: 13.41 kB / 1.277 GB, free: 3.824 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000223/1.439, allocations: 109.4 kB / 1.277 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003237/1.44, allocations: 56.72 kB / 1.277 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.44, allocations: 0 / 1.277 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/1.44, allocations: 28.67 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/1.44, allocations: 14.03 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/1.441, allocations: 148.7 kB / 1.277 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/1.441, allocations: 0.6822 MB / 1.278 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.097e-05/1.441, allocations: 7.922 kB / 1.278 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.061e-05/1.441, allocations: 11.39 kB / 1.278 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of SimCode: time 9.82e-07/1.441, allocations: 1.031 kB / 1.278 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of Templates: time 0.004513/1.445, allocations: 0.7526 MB / 1.279 GB, free: 2.785 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.402632297948003]