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.001432/0.001432, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.001662/0.001662, allocations: 167.1 kB / 22.46 MB, free: 5.359 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.498/1.498, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.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.017/3.017, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.374e-06/2.374e-06, allocations: 0 / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.007e-05/3.244e-05, allocations: 5.797 kB / 1 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001984/0.002017, allocations: 0.6604 MB / 1.001 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.003543, allocations: 1.096 MB / 1.002 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.751e-05/0.003601, allocations: 0 / 1.002 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.776e-05/0.003629, allocations: 3.938 kB / 1.002 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.003699, allocations: 0 / 1.002 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.00401, allocations: 47.77 kB / 1.002 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.00412, allocations: 43.86 kB / 1.002 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.004221, allocations: 15.97 kB / 1.002 GB, free: 5.41 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.408e-05/0.004305, allocations: 23.92 kB / 1.002 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.806e-05/0.004363, allocations: 19.97 kB / 1.002 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.004382, allocations: 8 kB / 1.002 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.756e-05/0.00446, allocations: 23.86 kB / 1.002 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.004486, allocations: 11.98 kB / 1.002 GB, free: 5.324 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.721e-05/0.004523, allocations: 12 kB / 1.002 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.00468, allocations: 67.75 kB / 1.002 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.004683, allocations: 0 / 1.002 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.021e-06/0.004684, allocations: 0 / 1.002 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.004688, allocations: 3.938 kB / 1.002 GB, free: 5.242 MB / 0.9512 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.0005516/0.00524, allocations: 282.2 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.00528, allocations: 12.03 kB / 1.002 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.066e-05/0.005371, allocations: 12.89 kB / 1.002 GB, free: 4.91 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.005482, allocations: 105.8 kB / 1.003 GB, free: 4.781 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.005498, allocations: 8.375 kB / 1.003 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.005512, allocations: 4.375 kB / 1.003 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.005713, allocations: 58.23 kB / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.005724, allocations: 192 / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.005735, allocations: 384 / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.005743, allocations: 4.375 kB / 1.003 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.00594, allocations: 51.83 kB / 1.003 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004718/0.006412, allocations: 228.4 kB / 1.003 GB, free: 4.398 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.006585, allocations: 50.5 kB / 1.003 GB, free: 4.34 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.00669, allocations: 32.95 kB / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.006715, allocations: 0 / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.006933, allocations: 83.25 kB / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.006934, allocations: 4 kB / 1.003 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0004229/0.007357, allocations: 113.6 kB / 1.003 GB, free: 4.09 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.00741, allocations: 59.39 kB / 1.003 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.007521, allocations: 105.9 kB / 1.003 GB, free: 3.906 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.007547, allocations: 29.69 kB / 1.003 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.00761, allocations: 92.12 kB / 1.003 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.007629, allocations: 7.906 kB / 1.003 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.337e-05/0.007683, allocations: 29.7 kB / 1.003 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.007849, allocations: 318.8 kB / 1.004 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.007954, allocations: 23.97 kB / 1.004 GB, free: 3.391 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.008085, allocations: 64.2 kB / 1.004 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.008307, allocations: 84.2 kB / 1.004 GB, free: 3.215 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.008309, allocations: 4 kB / 1.004 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002863/0.008596, allocations: 113.5 kB / 1.004 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.008616, allocations: 7.938 kB / 1.004 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.008624, allocations: 4 kB / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.008641, allocations: 0 / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.00876, allocations: 15.98 kB / 1.004 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.008766, allocations: 4.156 kB / 1.004 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.662e-05/0.008852, allocations: 19.92 kB / 1.004 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.008864, allocations: 4 kB / 1.004 GB, free: 3.039 MB / 0.9512 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.0001118/0.008976, allocations: 121.8 kB / 1.004 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.008991, allocations: 7.891 kB / 1.004 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003071/0.009298, allocations: 102.1 kB / 1.004 GB, free: 2.797 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.0093, allocations: 0 / 1.004 GB, free: 2.797 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.009304, allocations: 0 / 1.004 GB, free: 2.797 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.009308, allocations: 4 kB / 1.004 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000464/0.009772, allocations: 294.1 kB / 1.005 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.009774, allocations: 4 kB / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.009835, allocations: 7.984 kB / 1.005 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.009836, allocations: 0 / 1.005 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.009847, allocations: 4.562 kB / 1.005 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.009849, allocations: 3.938 kB / 1.005 GB, free: 2.449 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.009849, allocations: 3.938 kB / 1.005 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.01018, allocations: 203.3 kB / 1.005 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.188e-05/0.01019, allocations: 7.984 kB / 1.005 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.01021, allocations: 0 / 1.005 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.01029, allocations: 8 kB / 1.005 GB, free: 2.215 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.01034, allocations: 7.984 kB / 1.005 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.01034, allocations: 0 / 1.005 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.041e-05/0.0104, allocations: 87.27 kB / 1.005 GB, free: 2.121 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.0104, allocations: 0 / 1.005 GB, free: 2.121 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002527/0.01066, allocations: 12 kB / 1.005 GB, free: 2.109 MB / 0.9512 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.0001674/0.01082, allocations: 107.2 kB / 1.005 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002826/0.01111, allocations: 71.88 kB / 1.005 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01111, allocations: 0 / 1.005 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.01122, allocations: 23.98 kB / 1.005 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.0115, allocations: 15.92 kB / 1.005 GB, free: 1.883 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000372/0.01187, allocations: 137.2 kB / 1.005 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.838e-05/0.01196, allocations: 75.33 kB / 1.005 GB, free: 1.629 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.901e-05/0.01199, allocations: 4 kB / 1.005 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.01202, allocations: 8.5 kB / 1.005 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of SimCode: time 3.91e-07/0.01202, allocations: 0 / 1.005 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of Templates: time 0.003994/0.01601, allocations: 0.8321 MB / 1.006 GB, free: 0.793 MB / 0.9512 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/jenkins/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: 8.489583030343056]