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.001382/0.001382, allocations: 110.6 kB / 17.08 MB, free: 5.984 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.001486/0.001487, allocations: 191.7 kB / 20.03 MB, free: 3.059 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.423/1.423, allocations: 222.9 MB / 245.7 MB, free: 4.199 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.705/2.705, allocations: 437.1 MB / 0.7177 GB, free: 4.555 MB / 0.5606 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.00195/0.00195, allocations: 63.89 kB / 1.028 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 151.6 MB / 1.176 GB, free: 5.895 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001916/0.3136, allocations: 0.6684 MB / 1.176 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3152, allocations: 1.055 MB / 1.178 GB, free: 4.148 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.358e-05/0.3153, allocations: 3.938 kB / 1.178 GB, free: 4.145 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.565e-05/0.3153, allocations: 0 / 1.178 GB, free: 4.145 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.184e-05/0.3154, allocations: 3.938 kB / 1.178 GB, free: 4.141 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.3157, allocations: 39.83 kB / 1.178 GB, free: 4.102 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.3159, allocations: 51.86 kB / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.316, allocations: 7.984 kB / 1.178 GB, free: 4.043 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.176e-05/0.3161, allocations: 19.92 kB / 1.178 GB, free: 4.023 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.01e-05/0.3161, allocations: 19.92 kB / 1.178 GB, free: 4.004 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.3162, allocations: 7.938 kB / 1.178 GB, free: 3.996 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.011e-05/0.3162, allocations: 15.98 kB / 1.178 GB, free: 3.98 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.674e-05/0.3163, allocations: 11.98 kB / 1.178 GB, free: 3.969 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.3163, allocations: 11.94 kB / 1.178 GB, free: 3.957 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.3165, allocations: 59.72 kB / 1.178 GB, free: 3.898 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3165, allocations: 4 kB / 1.178 GB, free: 3.895 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3165, allocations: 0 / 1.178 GB, free: 3.895 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.3165, allocations: 0 / 1.178 GB, free: 3.895 MB / 0.92 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.0007489/0.3173, allocations: 359.3 kB / 1.178 GB, free: 3.492 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.3174, allocations: 12.03 kB / 1.178 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.764e-05/0.3174, allocations: 0.9375 kB / 1.178 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.3176, allocations: 176.3 kB / 1.178 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3176, allocations: 4.375 kB / 1.178 GB, free: 3.266 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.3177, allocations: 4.375 kB / 1.178 GB, free: 3.262 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.3179, allocations: 66.22 kB / 1.178 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3179, allocations: 192 / 1.178 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3179, allocations: 3.938 kB / 1.178 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.318, allocations: 0 / 1.178 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.3181, allocations: 31.97 kB / 1.178 GB, free: 3.156 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.3188, allocations: 280.9 kB / 1.179 GB, free: 2.832 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.3189, allocations: 50.42 kB / 1.179 GB, free: 2.773 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.744e-05/0.319, allocations: 24.94 kB / 1.179 GB, free: 2.746 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3191, allocations: 4 kB / 1.179 GB, free: 2.742 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.3193, allocations: 71.38 kB / 1.179 GB, free: 2.66 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.3193, allocations: 4 kB / 1.179 GB, free: 2.656 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0004444/0.3198, allocations: 105.5 kB / 1.179 GB, free: 2.547 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.3198, allocations: 51.41 kB / 1.179 GB, free: 2.484 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.32, allocations: 117.7 kB / 1.179 GB, free: 2.359 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.32, allocations: 25.7 kB / 1.179 GB, free: 2.328 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.101e-05/0.32, allocations: 88.14 kB / 1.179 GB, free: 2.238 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.3201, allocations: 15.89 kB / 1.179 GB, free: 2.223 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.3201, allocations: 21.72 kB / 1.179 GB, free: 2.195 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000236/0.3204, allocations: 322.8 kB / 1.18 GB, free: 1.871 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.3205, allocations: 19.98 kB / 1.18 GB, free: 1.852 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3206, allocations: 47.41 kB / 1.18 GB, free: 1.793 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.3208, allocations: 83.28 kB / 1.18 GB, free: 1.699 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3209, allocations: 0 / 1.18 GB, free: 1.699 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002827/0.3211, allocations: 109.5 kB / 1.18 GB, free: 1.586 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3212, allocations: 8 kB / 1.18 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3212, allocations: 0 / 1.18 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.3212, allocations: 0 / 1.18 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.3213, allocations: 15.98 kB / 1.18 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.3213, allocations: 0 / 1.18 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.3214, allocations: 7.984 kB / 1.18 GB, free: 1.555 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.3214, allocations: 4 kB / 1.18 GB, free: 1.551 MB / 0.92 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.0001236/0.3215, allocations: 121.9 kB / 1.18 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.3216, allocations: 3.953 kB / 1.18 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.3219, allocations: 97.73 kB / 1.18 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.3219, allocations: 4 kB / 1.18 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3219, allocations: 4.062 kB / 1.18 GB, free: 1.305 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3219, allocations: 0 / 1.18 GB, free: 1.305 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005194/0.3224, allocations: 342.4 kB / 1.18 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3224, allocations: 0 / 1.18 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.073e-05/0.3225, allocations: 11.98 kB / 1.18 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3225, allocations: 0 / 1.18 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.3225, allocations: 4 kB / 1.18 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3225, allocations: 0 / 1.18 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3225, allocations: 4 kB / 1.18 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.3229, allocations: 183.4 kB / 1.181 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.3229, allocations: 85.05 kB / 1.181 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.323, allocations: 4 kB / 1.181 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.358e-05/0.3231, allocations: 7.984 kB / 1.181 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.3231, allocations: 0 / 1.181 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.3231, allocations: 7.938 kB / 1.181 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.446e-05/0.3232, allocations: 87.73 kB / 1.181 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3232, allocations: 7.875 kB / 1.181 GB, free: 496 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002417/0.3235, allocations: 12 kB / 1.181 GB, free: 484 kB / 0.92 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.000192/0.3236, allocations: 107.4 kB / 1.181 GB, free: 368 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002722/0.3239, allocations: 55.89 kB / 1.181 GB, free: 312 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3239, allocations: 0 / 1.181 GB, free: 312 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.3241, allocations: 32.22 kB / 1.181 GB, free: 280 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.3244, allocations: 15.98 kB / 1.181 GB, free: 264 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.3248, allocations: 159.6 kB / 1.181 GB, free: 72 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3252, allocations: 0.6807 MB / 1.182 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/0.3252, allocations: 11.44 kB / 1.182 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.3252, allocations: 0 / 1.182 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of Templates: time 0.002677/0.3279, allocations: 0.8263 MB / 1.183 GB, free: 14.53 MB / 0.9356 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.17545748502016]