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.0008085/0.0008085, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 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.000796/0.000796, allocations: 177.9 kB / 23.22 MB, free: 1.352 MB / 18.57 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 0.8441/0.8441, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.77/1.77, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] 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 3.216e-06/3.216e-06, allocations: 0 / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.284e-05/3.606e-05, allocations: 8.891 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002482/0.002518, allocations: 0.6546 MB / 1.002 GB, free: 12.36 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.004084, allocations: 1.093 MB / 1.003 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.853e-05/0.004143, allocations: 3.938 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.607e-05/0.004179, allocations: 3.938 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.004256, allocations: 7.922 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.004621, allocations: 43.78 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.004744, allocations: 47.84 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.004858, allocations: 11.98 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.94e-05/0.004958, allocations: 23.98 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.953e-05/0.005017, allocations: 23.89 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.005038, allocations: 8 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.934e-05/0.005117, allocations: 16 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/0.005142, allocations: 7.984 kB / 1.003 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.005182, allocations: 15.92 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.005356, allocations: 63.83 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.00536, allocations: 0 / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.533e-06/0.005361, allocations: 0 / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.005366, allocations: 0 / 1.003 GB, free: 10.98 MB / 0.9636 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.0005462/0.005913, allocations: 294.1 kB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.005958, allocations: 16.69 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.006072, allocations: 8.891 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.006172, allocations: 105.8 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.006194, allocations: 12.34 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.00621, allocations: 4.375 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.006415, allocations: 58.23 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.006425, allocations: 192 / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.006437, allocations: 384 / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.006442, allocations: 384 / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.006617, allocations: 51.89 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000499/0.007116, allocations: 228.4 kB / 1.004 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.007282, allocations: 46.56 kB / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.359e-05/0.007366, allocations: 28.95 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.007391, allocations: 4 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.007627, allocations: 79.31 kB / 1.004 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 2.635e-06/0.007629, allocations: 3.938 kB / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0004097/0.008039, allocations: 113.6 kB / 1.004 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.008094, allocations: 63.39 kB / 1.004 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/0.008185, allocations: 105.8 kB / 1.004 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.008203, allocations: 25.7 kB / 1.004 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.008268, allocations: 96.06 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.008294, allocations: 11.91 kB / 1.004 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.669e-05/0.008351, allocations: 33.7 kB / 1.004 GB, free: 9.461 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.008471, allocations: 314.8 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.008576, allocations: 27.97 kB / 1.005 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.008686, allocations: 64.14 kB / 1.005 GB, free: 9.039 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/0.008887, allocations: 88.2 kB / 1.005 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.008891, allocations: 0 / 1.005 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002748/0.009166, allocations: 113.7 kB / 1.005 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.009186, allocations: 7.938 kB / 1.005 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.009195, allocations: 4 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.009214, allocations: 160 / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.00934, allocations: 23.98 kB / 1.005 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.009349, allocations: 0 / 1.005 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.189e-05/0.009421, allocations: 15.98 kB / 1.005 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.009433, allocations: 3.938 kB / 1.005 GB, free: 8.766 MB / 0.9636 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 9.256e-05/0.009525, allocations: 117.8 kB / 1.005 GB, free: 8.641 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.009543, allocations: 11.83 kB / 1.005 GB, free: 8.629 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002795/0.009823, allocations: 102.1 kB / 1.005 GB, free: 8.523 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.009827, allocations: 4 kB / 1.005 GB, free: 8.52 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.009832, allocations: 0 / 1.005 GB, free: 8.52 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.009837, allocations: 0 / 1.005 GB, free: 8.52 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.01029, allocations: 302.1 kB / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.01029, allocations: 0 / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.865e-05/0.01035, allocations: 11.98 kB / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.01035, allocations: 0 / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.01037, allocations: 4 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.01037, allocations: 4 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01037, allocations: 4 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002655/0.01064, allocations: 187.4 kB / 1.006 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.01065, allocations: 7.984 kB / 1.006 GB, free: 7.957 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.01067, allocations: 0 / 1.006 GB, free: 7.957 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.01075, allocations: 11.94 kB / 1.006 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.01081, allocations: 3.984 kB / 1.006 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.01082, allocations: 4.188 kB / 1.006 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.518e-05/0.01087, allocations: 87.27 kB / 1.006 GB, free: 7.852 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.01e-07/0.01087, allocations: 0 / 1.006 GB, free: 7.852 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002984/0.01117, allocations: 16 kB / 1.006 GB, free: 7.836 MB / 0.9636 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.0001996/0.01137, allocations: 99.42 kB / 1.006 GB, free: 7.727 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.01162, allocations: 75.81 kB / 1.006 GB, free: 7.652 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.01162, allocations: 4 kB / 1.006 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.404e-05/0.01172, allocations: 23.98 kB / 1.006 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.01204, allocations: 22.64 kB / 1.006 GB, free: 7.605 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004757/0.01251, allocations: 158.5 kB / 1.006 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.659e-05/0.01258, allocations: 71.33 kB / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.99e-05/0.01262, allocations: 12.5 kB / 1.006 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of SimCode: time 6.71e-07/0.01262, allocations: 0 / 1.006 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of Templates: time 0.00299/0.01561, allocations: 0.8879 MB / 1.007 GB, free: 6.434 MB / 0.9636 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: 6.390265006572008]