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.00092/0.00092, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0009719/0.0009719, allocations: 177.9 kB / 23.21 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.8913/0.8913, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.644/1.644, allocations: 359 MB / 0.6044 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] 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 2.465e-06/2.465e-06, allocations: 0 / 0.9517 GB, free: 1.887 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.949e-05, allocations: 6.219 kB / 0.9517 GB, free: 1.879 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001324/0.001354, allocations: 0.6429 MB / 0.9523 GB, free: 1.227 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.002371, allocations: 1.097 MB / 0.9534 GB, free: 120 kB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.223e-05/0.002413, allocations: 0 / 0.9534 GB, free: 120 kB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.002441, allocations: 3.938 kB / 0.9534 GB, free: 116 kB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.616e-05/0.002498, allocations: 3.938 kB / 0.9534 GB, free: 112 kB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.002757, allocations: 47.7 kB / 0.9535 GB, free: 64 kB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.928e-05/0.002836, allocations: 39.86 kB / 0.9535 GB, free: 24 kB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.538e-05/0.002931, allocations: 15.97 kB / 0.9535 GB, free: 8 kB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.99e-05/0.003011, allocations: 19.98 kB / 0.9535 GB, free: 15.99 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 4.189e-05/0.003053, allocations: 19.92 kB / 0.9536 GB, free: 15.97 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.003069, allocations: 4 kB / 0.9536 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.715e-05/0.003126, allocations: 23.97 kB / 0.9536 GB, free: 15.94 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.003144, allocations: 7.984 kB / 0.9536 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 2.448e-05/0.003169, allocations: 11.94 kB / 0.9536 GB, free: 15.92 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.003293, allocations: 59.84 kB / 0.9537 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.003296, allocations: 0 / 0.9537 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.433e-06/0.003297, allocations: 0 / 0.9537 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.003301, allocations: 0 / 0.9537 GB, free: 15.86 MB / 0.8698 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.0004029/0.003704, allocations: 286.2 kB / 0.9539 GB, free: 15.55 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.003738, allocations: 15.91 kB / 0.9539 GB, free: 15.54 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.218e-05/0.00381, allocations: 4.938 kB / 0.954 GB, free: 15.53 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.668e-05/0.003886, allocations: 125.7 kB / 0.9541 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.003898, allocations: 4.375 kB / 0.9541 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.639e-06/0.003908, allocations: 4.375 kB / 0.9541 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.004047, allocations: 54.23 kB / 0.9541 GB, free: 15.32 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.004056, allocations: 4.188 kB / 0.9541 GB, free: 15.31 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.004065, allocations: 384 / 0.9541 GB, free: 15.31 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.00407, allocations: 384 / 0.9541 GB, free: 15.31 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.383e-05/0.004164, allocations: 39.89 kB / 0.9542 GB, free: 15.27 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003344/0.004498, allocations: 224.6 kB / 0.9544 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.004588, allocations: 38.56 kB / 0.9544 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.857e-05/0.004637, allocations: 32.91 kB / 0.9545 GB, free: 14.94 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.004656, allocations: 0 / 0.9545 GB, free: 14.94 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.004786, allocations: 71.33 kB / 0.9545 GB, free: 14.86 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.004787, allocations: 0 / 0.9545 GB, free: 14.86 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.0002436/0.005031, allocations: 117.5 kB / 0.9546 GB, free: 14.74 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.005063, allocations: 51.41 kB / 0.9547 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6e-05/0.005123, allocations: 109.8 kB / 0.9548 GB, free: 14.56 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.005133, allocations: 25.7 kB / 0.9548 GB, free: 14.53 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.7e-05/0.00517, allocations: 88.14 kB / 0.9549 GB, free: 14.44 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.005188, allocations: 19.84 kB / 0.9549 GB, free: 14.42 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.005219, allocations: 21.7 kB / 0.9549 GB, free: 14.39 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.082e-05/0.00529, allocations: 314.8 kB / 0.9552 GB, free: 14.07 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.139e-05/0.005341, allocations: 27.97 kB / 0.9553 GB, free: 14.05 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.642e-05/0.005398, allocations: 43.73 kB / 0.9553 GB, free: 13.99 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.005499, allocations: 75.33 kB / 0.9554 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.005501, allocations: 0 / 0.9554 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001387/0.00564, allocations: 113.4 kB / 0.9555 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.005653, allocations: 11.94 kB / 0.9555 GB, free: 13.78 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.005658, allocations: 0 / 0.9555 GB, free: 13.78 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.005671, allocations: 4 kB / 0.9555 GB, free: 13.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.873e-05/0.00574, allocations: 11.98 kB / 0.9555 GB, free: 13.76 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.005746, allocations: 4.141 kB / 0.9555 GB, free: 13.76 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.216e-05/0.005778, allocations: 12 kB / 0.9555 GB, free: 13.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.005784, allocations: 4.125 kB / 0.9555 GB, free: 13.74 MB / 0.8698 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 6.069e-05/0.005845, allocations: 122.6 kB / 0.9557 GB, free: 13.61 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-06/0.005854, allocations: 11.94 kB / 0.9557 GB, free: 13.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.006005, allocations: 85.78 kB / 0.9557 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.006008, allocations: 3.984 kB / 0.9557 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.006012, allocations: 0 / 0.9557 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.006015, allocations: 0 / 0.9557 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.006254, allocations: 290 kB / 0.956 GB, free: 13.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.006255, allocations: 4 kB / 0.956 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.795e-05/0.006283, allocations: 4.375 kB / 0.956 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.006285, allocations: 0 / 0.956 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.006296, allocations: 11.98 kB / 0.956 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.006298, allocations: 4 kB / 0.956 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.006299, allocations: 0 / 0.956 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.006433, allocations: 175.5 kB / 0.9562 GB, free: 12.98 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.13e-05/0.006445, allocations: 7.953 kB / 0.9562 GB, free: 12.97 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.006457, allocations: 4 kB / 0.9562 GB, free: 12.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.057e-05/0.006498, allocations: 11.92 kB / 0.9562 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.006533, allocations: 7.984 kB / 0.9562 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.006537, allocations: 0 / 0.9562 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 2.94e-05/0.006567, allocations: 87.28 kB / 0.9563 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7e-08/0.006567, allocations: 0 / 0.9563 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001627/0.00673, allocations: 11.94 kB / 0.9563 GB, free: 12.85 MB / 0.8698 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.000121/0.006851, allocations: 103.2 kB / 0.9564 GB, free: 12.74 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000144/0.006995, allocations: 59.89 kB / 0.9565 GB, free: 12.68 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.006996, allocations: 4 kB / 0.9565 GB, free: 12.68 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.312e-05/0.007049, allocations: 23.98 kB / 0.9565 GB, free: 12.65 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001918/0.007241, allocations: 14.58 kB / 0.9565 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002753/0.007516, allocations: 160.8 kB / 0.9567 GB, free: 12.45 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.205e-05/0.007558, allocations: 71.59 kB / 0.9568 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.007583, allocations: 12.48 kB / 0.9568 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of SimCode: time 4.1e-07/0.007583, allocations: 0 / 0.9568 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of Templates: time 0.001873/0.009456, allocations: 0.8374 MB / 0.9576 GB, free: 11.52 MB / 0.8698 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: 6.195348683744669]