Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.001891/0.001891, allocations: 112.5 kB / 17.13 MB, free: 5.914 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.002231/0.002231, allocations: 198 kB / 20.08 MB, free: 2.977 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.43/1.43, allocations: 225.6 MB / 248.5 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.577/2.577, allocations: 443.5 MB / 0.7293 GB, free: 14.5 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 71.88 kB / 1.057 GB, free: 1.941 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.321, allocations: 160.7 MB / 1.214 GB, free: 0.9062 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00197/0.323, allocations: 0.6645 MB / 1.215 GB, free: 240 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.3244, allocations: 1.059 MB / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.205e-05/0.3244, allocations: 0 / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.971e-05/0.3244, allocations: 3.938 kB / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.651e-05/0.3245, allocations: 11.92 kB / 1.216 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.3248, allocations: 35.91 kB / 1.216 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.569e-05/0.3249, allocations: 47.84 kB / 1.216 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.728e-05/0.3249, allocations: 4 kB / 1.216 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.847e-05/0.325, allocations: 27.91 kB / 1.216 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.369e-05/0.3251, allocations: 15.92 kB / 1.216 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.3251, allocations: 4 kB / 1.216 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.3251, allocations: 19.98 kB / 1.216 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/0.3252, allocations: 11.92 kB / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.933e-05/0.3252, allocations: 11.94 kB / 1.216 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.3253, allocations: 55.78 kB / 1.216 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3253, allocations: 11.88 kB / 1.216 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3253, allocations: 4 kB / 1.216 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.3253, allocations: 0 / 1.216 GB, free: 14.9 MB / 0.9669 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.0005522/0.3259, allocations: 359.3 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.3259, allocations: 8.031 kB / 1.216 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.3259, allocations: 4.875 kB / 1.216 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.3261, allocations: 172.3 kB / 1.217 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3261, allocations: 384 / 1.217 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.3261, allocations: 4.375 kB / 1.217 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.3263, allocations: 66.22 kB / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3263, allocations: 192 / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3264, allocations: 3.938 kB / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3264, allocations: 0 / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.3265, allocations: 35.97 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.327, allocations: 276.9 kB / 1.217 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.3272, allocations: 50.48 kB / 1.217 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.3273, allocations: 24.94 kB / 1.217 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3273, allocations: 0 / 1.217 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.3275, allocations: 75.38 kB / 1.217 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.313e-06/0.3275, allocations: 4 kB / 1.217 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0004088/0.3279, allocations: 105.5 kB / 1.217 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.328, allocations: 55.41 kB / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3281, allocations: 113.8 kB / 1.217 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3281, allocations: 25.7 kB / 1.217 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.492e-05/0.3282, allocations: 88.14 kB / 1.217 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.3282, allocations: 11.89 kB / 1.217 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.3282, allocations: 21.72 kB / 1.217 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3284, allocations: 318.8 kB / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.3285, allocations: 23.97 kB / 1.218 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.3286, allocations: 47.72 kB / 1.218 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.3288, allocations: 79.28 kB / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3288, allocations: 0 / 1.218 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002856/0.3291, allocations: 109.6 kB / 1.218 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3291, allocations: 8 kB / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3291, allocations: 0 / 1.218 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3291, allocations: 3.938 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.3292, allocations: 15.98 kB / 1.218 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.3292, allocations: 160 / 1.218 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.861e-05/0.3293, allocations: 7.984 kB / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.3293, allocations: 11.97 kB / 1.218 GB, free: 12.56 MB / 0.9669 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.0001093/0.3294, allocations: 129.7 kB / 1.218 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.3294, allocations: 3.953 kB / 1.218 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.3297, allocations: 89.61 kB / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3297, allocations: 0 / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3297, allocations: 0 / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3297, allocations: 4 kB / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004627/0.3302, allocations: 346.4 kB / 1.219 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3302, allocations: 0 / 1.219 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.43e-05/0.3303, allocations: 11.98 kB / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3303, allocations: 0 / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.3303, allocations: 4.375 kB / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3303, allocations: 0 / 1.219 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3303, allocations: 4 kB / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.3306, allocations: 191.4 kB / 1.219 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.3306, allocations: 81.06 kB / 1.219 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.3306, allocations: 4 kB / 1.219 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.033e-05/0.3307, allocations: 3.984 kB / 1.219 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.3308, allocations: 4 kB / 1.219 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.3308, allocations: 3.938 kB / 1.219 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.605e-05/0.3308, allocations: 91.27 kB / 1.219 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3308, allocations: 0 / 1.219 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002564/0.3311, allocations: 8 kB / 1.219 GB, free: 11.49 MB / 0.9669 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.0001448/0.3312, allocations: 107.2 kB / 1.219 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002594/0.3315, allocations: 55.89 kB / 1.219 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3315, allocations: 0 / 1.219 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3316, allocations: 27.97 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.3318, allocations: 10.12 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003608/0.3322, allocations: 167.6 kB / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.3325, allocations: 0.6807 MB / 1.22 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.3326, allocations: 11.44 kB / 1.22 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/0.3326, allocations: 7.875 kB / 1.22 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of Templates: time 0.002553/0.3351, allocations: 0.8284 MB / 1.221 GB, free: 9.539 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.124578787945211]