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.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.002046/0.002046, allocations: 78.41 kB / 19.18 MB, free: 2.531 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.002761/0.002761, allocations: 168.2 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.553/1.553, allocations: 177.1 MB / 202.8 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.733/2.733, allocations: 359 MB / 0.6037 GB, free: 14.98 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 3.877e-06/3.877e-06, allocations: 0 / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.978e-05, allocations: 2.281 kB / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002409/0.002449, allocations: 0.6585 MB / 0.9516 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001984/0.004433, allocations: 1.093 MB / 0.9527 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.427e-05/0.004507, allocations: 4 kB / 0.9527 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.004538, allocations: 3.938 kB / 0.9527 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.938e-05/0.004627, allocations: 0 / 0.9527 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.005025, allocations: 43.77 kB / 0.9527 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.005152, allocations: 43.86 kB / 0.9528 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.005264, allocations: 7.984 kB / 0.9528 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.005371, allocations: 23.92 kB / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.711e-05/0.005438, allocations: 19.97 kB / 0.9528 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.005457, allocations: 0 / 0.9528 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.005573, allocations: 23.98 kB / 0.9528 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.228e-05/0.005605, allocations: 15.92 kB / 0.9528 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.811e-05/0.005643, allocations: 7.984 kB / 0.9529 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.005844, allocations: 63.78 kB / 0.9529 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.005849, allocations: 0 / 0.9529 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.005851, allocations: 0 / 0.9529 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.005856, allocations: 0 / 0.9529 GB, free: 9.559 MB / 0.8575 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.0006577/0.006514, allocations: 292.5 kB / 0.9532 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.006557, allocations: 12.03 kB / 0.9532 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.00668, allocations: 4.938 kB / 0.9532 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.00681, allocations: 109.7 kB / 0.9533 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.006831, allocations: 8.375 kB / 0.9533 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.006845, allocations: 4.359 kB / 0.9533 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.007066, allocations: 58.23 kB / 0.9534 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.007077, allocations: 192 / 0.9534 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.007088, allocations: 4.375 kB / 0.9534 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.007095, allocations: 384 / 0.9534 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.007287, allocations: 43.89 kB / 0.9534 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004794/0.007767, allocations: 220.6 kB / 0.9536 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.007935, allocations: 38.56 kB / 0.9537 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.008052, allocations: 24.92 kB / 0.9537 GB, free: 8.652 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.00808, allocations: 4 kB / 0.9537 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.008326, allocations: 75.27 kB / 0.9538 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.684e-06/0.008328, allocations: 3.938 kB / 0.9538 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0004499/0.008778, allocations: 109.6 kB / 0.9539 GB, free: 8.445 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.008839, allocations: 51.41 kB / 0.9539 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.008949, allocations: 109.8 kB / 0.954 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.008972, allocations: 29.7 kB / 0.9541 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.009039, allocations: 84.12 kB / 0.9541 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.009068, allocations: 19.84 kB / 0.9542 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/0.009118, allocations: 25.64 kB / 0.9542 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001941/0.009312, allocations: 314.8 kB / 0.9545 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.009423, allocations: 23.97 kB / 0.9545 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.009556, allocations: 55.36 kB / 0.9546 GB, free: 7.688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.009774, allocations: 67.39 kB / 0.9546 GB, free: 7.609 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.009777, allocations: 256 / 0.9546 GB, free: 7.609 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003/0.01008, allocations: 105.5 kB / 0.9547 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.01011, allocations: 11.94 kB / 0.9547 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.01012, allocations: 7.984 kB / 0.9547 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.01013, allocations: 0 / 0.9547 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.01025, allocations: 15.98 kB / 0.9548 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.01025, allocations: 0 / 0.9548 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.184e-05/0.01033, allocations: 8 kB / 0.9548 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.01034, allocations: 4 kB / 0.9548 GB, free: 7.453 MB / 0.8575 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 0.0001058/0.01044, allocations: 125.9 kB / 0.9549 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.01046, allocations: 7.938 kB / 0.9549 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.01076, allocations: 85.78 kB / 0.955 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.01076, allocations: 0 / 0.955 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01077, allocations: 0 / 0.955 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01077, allocations: 3.984 kB / 0.955 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004738/0.01125, allocations: 286.1 kB / 0.9553 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.01125, allocations: 4 kB / 0.9553 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.01131, allocations: 8 kB / 0.9553 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.01132, allocations: 0 / 0.9553 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.01133, allocations: 3.984 kB / 0.9553 GB, free: 6.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.01133, allocations: 4 kB / 0.9553 GB, free: 6.883 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01133, allocations: 0 / 0.9553 GB, free: 6.883 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.01167, allocations: 179.5 kB / 0.9555 GB, free: 6.691 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.227e-05/0.01168, allocations: 7.891 kB / 0.9555 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.0117, allocations: 0 / 0.9555 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.888e-05/0.01179, allocations: 11.98 kB / 0.9555 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.01184, allocations: 12.11 kB / 0.9555 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.01186, allocations: 7.984 kB / 0.9555 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.785e-05/0.01192, allocations: 87.75 kB / 0.9556 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.01192, allocations: 0 / 0.9556 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002745/0.0122, allocations: 11.94 kB / 0.9556 GB, free: 6.555 MB / 0.8575 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.0001949/0.01239, allocations: 109.5 kB / 0.9557 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002844/0.01268, allocations: 59.89 kB / 0.9557 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.01268, allocations: 0 / 0.9557 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.01279, allocations: 23.98 kB / 0.9558 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.01312, allocations: 11.92 kB / 0.9558 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004319/0.01355, allocations: 140.8 kB / 0.9559 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.01363, allocations: 63.59 kB / 0.956 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.636e-05/0.01368, allocations: 11.98 kB / 0.956 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.01371, allocations: 16.5 kB / 0.956 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.01371, allocations: 3.938 kB / 0.956 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of Templates: time 0.004144/0.01786, allocations: 0.7652 MB / 0.9568 GB, free: 5.316 MB / 0.8575 GB " [Timeout remaining time 300] 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: 8.109624739736319]