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.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.00139/0.00139, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001515/0.001515, allocations: 189.6 kB / 22.23 MB, free: 5.098 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.522/1.522, allocations: 225.6 MB / 251 MB, free: 13.22 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.337/3.337, allocations: 496 MB / 0.7835 GB, free: 33.68 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-maint.12.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_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: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 72.06 kB / 1.138 GB, free: 33.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4899/0.492, allocations: 173.6 MB / 1.307 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002748/0.4947, allocations: 0.6785 MB / 1.308 GB, free: 1.16 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.4964, allocations: 1.062 MB / 1.309 GB, free: 88 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.917e-05/0.4965, allocations: 3.938 kB / 1.309 GB, free: 84 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.4965, allocations: 0 / 1.309 GB, free: 84 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.27e-05/0.4966, allocations: 19.86 kB / 1.309 GB, free: 64 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.4969, allocations: 31.91 kB / 1.309 GB, free: 32 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000154/0.4971, allocations: 55.86 kB / 1.309 GB, free: 15.97 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.4972, allocations: 11.91 kB / 1.309 GB, free: 15.96 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.913e-05/0.4973, allocations: 15.98 kB / 1.309 GB, free: 15.95 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.706e-05/0.4974, allocations: 23.86 kB / 1.309 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.4974, allocations: 8 kB / 1.309 GB, free: 15.92 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.099e-05/0.4975, allocations: 15.98 kB / 1.309 GB, free: 15.9 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.4975, allocations: 11.98 kB / 1.309 GB, free: 15.89 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.531e-05/0.4975, allocations: 23.86 kB / 1.309 GB, free: 15.87 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.4977, allocations: 51.8 kB / 1.309 GB, free: 15.82 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4977, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4977, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.4977, allocations: 0 / 1.309 GB, free: 15.82 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006449/0.4984, allocations: 286.1 kB / 1.31 GB, free: 15.5 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4984, allocations: 16.92 kB / 1.31 GB, free: 15.49 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.384e-05/0.4985, allocations: 4.891 kB / 1.31 GB, free: 15.48 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.4986, allocations: 122.5 kB / 1.31 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.4986, allocations: 4.375 kB / 1.31 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.4986, allocations: 8.375 kB / 1.31 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.4989, allocations: 58.23 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.4989, allocations: 192 / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.4989, allocations: 3.938 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.4989, allocations: 3.984 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.4991, allocations: 43.95 kB / 1.31 GB, free: 15.21 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.4996, allocations: 263.7 kB / 1.31 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.4998, allocations: 50.48 kB / 1.31 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.4999, allocations: 40.95 kB / 1.31 GB, free: 14.81 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.4999, allocations: 0 / 1.31 GB, free: 14.81 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002481/0.5002, allocations: 67.39 kB / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.5002, allocations: 0 / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.0004031/0.5006, allocations: 117.6 kB / 1.31 GB, free: 14.61 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.5006, allocations: 59.41 kB / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.5007, allocations: 109.8 kB / 1.31 GB, free: 14.43 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.5008, allocations: 29.7 kB / 1.31 GB, free: 14.39 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.405e-05/0.5008, allocations: 88.19 kB / 1.311 GB, free: 14.3 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.5008, allocations: 15.91 kB / 1.311 GB, free: 14.29 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.5009, allocations: 25.7 kB / 1.311 GB, free: 14.25 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.501, allocations: 314.8 kB / 1.311 GB, free: 13.94 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.5011, allocations: 32.22 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.5013, allocations: 60.22 kB / 1.311 GB, free: 13.83 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.5015, allocations: 92.12 kB / 1.311 GB, free: 13.73 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5015, allocations: 0 / 1.311 GB, free: 13.73 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002659/0.5017, allocations: 113.5 kB / 1.311 GB, free: 13.61 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.5018, allocations: 8.156 kB / 1.311 GB, free: 13.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.5018, allocations: 4 kB / 1.311 GB, free: 13.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.5018, allocations: 3.938 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.5019, allocations: 15.98 kB / 1.311 GB, free: 13.58 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.5019, allocations: 0 / 1.311 GB, free: 13.58 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.851e-05/0.502, allocations: 15.92 kB / 1.311 GB, free: 13.56 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.502, allocations: 4.188 kB / 1.311 GB, free: 13.56 MB / 1.014 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.0001061/0.5021, allocations: 122.5 kB / 1.311 GB, free: 13.43 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.5021, allocations: 3.938 kB / 1.311 GB, free: 13.43 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002982/0.5024, allocations: 113.9 kB / 1.311 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.5024, allocations: 0 / 1.311 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.5024, allocations: 0 / 1.311 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5024, allocations: 0 / 1.311 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004549/0.5029, allocations: 321.5 kB / 1.312 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5029, allocations: 4 kB / 1.312 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.545e-05/0.5029, allocations: 11.98 kB / 1.312 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.5029, allocations: 0 / 1.312 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.503, allocations: 7.938 kB / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.503, allocations: 0 / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.503, allocations: 0 / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.5032, allocations: 191.6 kB / 1.312 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-06/0.5033, allocations: 7.953 kB / 1.312 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.5033, allocations: 8 kB / 1.312 GB, free: 12.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.22e-05/0.5034, allocations: 15.92 kB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.5034, allocations: 0 / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.5034, allocations: 7.938 kB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.99e-05/0.5035, allocations: 87.27 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.5035, allocations: 0 / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002535/0.5037, allocations: 15.94 kB / 1.312 GB, free: 12.57 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 (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.0001655/0.5039, allocations: 103.2 kB / 1.312 GB, free: 12.46 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002627/0.5042, allocations: 63.88 kB / 1.312 GB, free: 12.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5042, allocations: 0 / 1.312 GB, free: 12.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.5043, allocations: 27.98 kB / 1.312 GB, free: 12.38 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.5045, allocations: 13.23 kB / 1.312 GB, free: 12.36 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.5049, allocations: 146.2 kB / 1.312 GB, free: 12.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.5053, allocations: 0.6884 MB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.182e-05/0.5053, allocations: 4 kB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.5053, allocations: 7.438 kB / 1.313 GB, free: 11.47 MB / 1.014 GB Notification: Performance of SimCode: time 3.3e-07/0.5053, allocations: 0 / 1.313 GB, free: 11.47 MB / 1.014 GB Notification: Performance of Templates: time 0.003992/0.5093, allocations: 0.8327 MB / 1.314 GB, free: 10.64 MB / 1.014 GB " [Timeout remaining time 299] 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/jenkins/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: 9.71020136680454]