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.001432/0.001432, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001972/0.001972, allocations: 211 kB / 22.24 MB, free: 4.855 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.583/1.583, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.052/3.052, allocations: 476 MB / 0.7699 GB, free: 4.734 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 68.77 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4232, allocations: 170 MB / 1.283 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002126/0.4253, allocations: 0.6522 MB / 1.284 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.4269, allocations: 1.079 MB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.984e-05/0.427, allocations: 7.938 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.745e-05/0.427, allocations: 0 / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.759e-05/0.4271, allocations: 3.938 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.4274, allocations: 47.83 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.4275, allocations: 47.8 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.4276, allocations: 3.984 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.4277, allocations: 19.94 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.092e-05/0.4277, allocations: 15.92 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.4278, allocations: 4 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.661e-05/0.4278, allocations: 23.97 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.278e-05/0.4279, allocations: 11.98 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.4279, allocations: 11.94 kB / 1.285 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.4281, allocations: 67.72 kB / 1.285 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4281, allocations: 0 / 1.285 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.565e-06/0.4281, allocations: 0 / 1.285 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.078e-05/0.4281, allocations: 0 / 1.285 GB, free: 9.926 MB / 0.9825 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.0005667/0.4286, allocations: 282.2 kB / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.4287, allocations: 12.03 kB / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.4288, allocations: 8.891 kB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.4289, allocations: 110.4 kB / 1.285 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.4289, allocations: 12.31 kB / 1.285 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.429, allocations: 4.375 kB / 1.285 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.4292, allocations: 62.22 kB / 1.285 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4292, allocations: 192 / 1.285 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.4292, allocations: 7.938 kB / 1.285 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.4292, allocations: 0 / 1.285 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.4294, allocations: 35.97 kB / 1.285 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.4301, allocations: 224.5 kB / 1.286 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.4303, allocations: 46.55 kB / 1.286 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.4304, allocations: 24.88 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.4304, allocations: 4 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.4307, allocations: 71.38 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.492e-06/0.4307, allocations: 0 / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.00044/0.4311, allocations: 105.6 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.4312, allocations: 51.41 kB / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.4313, allocations: 117.8 kB / 1.286 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.4313, allocations: 25.7 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/0.4314, allocations: 92.11 kB / 1.286 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.4315, allocations: 11.91 kB / 1.286 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.4315, allocations: 17.72 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.4317, allocations: 322.8 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.722e-05/0.4318, allocations: 19.98 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.4319, allocations: 51.72 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.4321, allocations: 75.33 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4321, allocations: 3.938 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002668/0.4324, allocations: 105.5 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.4324, allocations: 10.66 kB / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4324, allocations: 0 / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4324, allocations: 0 / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.4325, allocations: 15.98 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4326, allocations: 160 / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.217e-05/0.4326, allocations: 15.88 kB / 1.287 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.4326, allocations: 4 kB / 1.287 GB, free: 7.816 MB / 0.9825 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.0001157/0.4328, allocations: 121.9 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.347e-06/0.4328, allocations: 0 / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.4331, allocations: 93.64 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4331, allocations: 4 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4331, allocations: 320 / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4331, allocations: 3.938 kB / 1.287 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.4336, allocations: 286.1 kB / 1.287 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.4336, allocations: 0 / 1.287 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.4337, allocations: 15.98 kB / 1.287 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.4337, allocations: 0 / 1.287 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.4337, allocations: 0 / 1.287 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.737e-06/0.4337, allocations: 7.984 kB / 1.287 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4337, allocations: 0 / 1.287 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.4341, allocations: 187.4 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.084e-05/0.4341, allocations: 4 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.4341, allocations: 0 / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.4342, allocations: 15.98 kB / 1.288 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.4342, allocations: 7.938 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.4342, allocations: 0 / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.909e-05/0.4343, allocations: 87.27 kB / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4343, allocations: 0 / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002437/0.4346, allocations: 15.95 kB / 1.288 GB, free: 6.91 MB / 0.9825 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.0001851/0.4347, allocations: 99.19 kB / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002911/0.435, allocations: 67.83 kB / 1.288 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.435, allocations: 0 / 1.288 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.4352, allocations: 27.97 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.4354, allocations: 7.938 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003853/0.4358, allocations: 134.1 kB / 1.288 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.344e-05/0.4359, allocations: 67.34 kB / 1.288 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.792e-05/0.436, allocations: 8.25 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.436, allocations: 7.438 kB / 1.288 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.436, allocations: 0 / 1.288 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of Templates: time 0.003822/0.4398, allocations: 0.8109 MB / 1.289 GB, free: 5.652 MB / 0.9825 GB " [Timeout remaining time 299] 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: 9.80766462534666]