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.001754/0.001754, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002171/0.002171, allocations: 215.5 kB / 22.25 MB, free: 5.258 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.542/1.542, allocations: 230.6 MB / 256 MB, free: 7.777 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 2.828/2.828, allocations: 476 MB / 0.7699 GB, free: 4.727 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [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.002133/0.002133, allocations: 65.95 kB / 1.117 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3948, allocations: 170 MB / 1.283 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002047/0.3969, allocations: 0.6533 MB / 1.283 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.3984, allocations: 1.083 MB / 1.284 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.394e-05/0.3985, allocations: 0 / 1.284 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.376e-05/0.3985, allocations: 3.938 kB / 1.284 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.705e-05/0.3986, allocations: 7.938 kB / 1.284 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.3989, allocations: 43.89 kB / 1.284 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.399, allocations: 43.84 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.3991, allocations: 5.688 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.817e-05/0.3992, allocations: 23.92 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.225e-05/0.3993, allocations: 15.91 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.3993, allocations: 4 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.006e-05/0.3994, allocations: 23.98 kB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.3994, allocations: 11.94 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.3994, allocations: 15.92 kB / 1.284 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.3996, allocations: 59.38 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3996, allocations: 0 / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3996, allocations: 0 / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3996, allocations: 3.938 kB / 1.285 GB, free: 10.46 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.0005792/0.4002, allocations: 282.2 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.4002, allocations: 12.03 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.4003, allocations: 30.75 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.4003, allocations: 8.891 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.4005, allocations: 114.4 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.4005, allocations: 8.375 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.4005, allocations: 4.375 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.4007, allocations: 58.23 kB / 1.285 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4007, allocations: 3.938 kB / 1.285 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4007, allocations: 7.984 kB / 1.285 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4007, allocations: 0 / 1.285 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.4009, allocations: 39.89 kB / 1.285 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005051/0.4014, allocations: 255.9 kB / 1.285 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.4016, allocations: 46.55 kB / 1.285 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-05/0.4017, allocations: 24.94 kB / 1.285 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.4017, allocations: 0 / 1.285 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.4019, allocations: 75.31 kB / 1.285 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.173e-06/0.4019, allocations: 0 / 1.285 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003996/0.4023, allocations: 97.64 kB / 1.286 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.4023, allocations: 59.41 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.4025, allocations: 109.8 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.4025, allocations: 29.7 kB / 1.286 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.4025, allocations: 84.14 kB / 1.286 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.4026, allocations: 15.89 kB / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.4026, allocations: 21.72 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4028, allocations: 318.8 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.871e-05/0.4029, allocations: 19.98 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.403, allocations: 55.66 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.4032, allocations: 75.34 kB / 1.286 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4032, allocations: 0 / 1.286 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002558/0.4035, allocations: 101.7 kB / 1.286 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4035, allocations: 4 kB / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4035, allocations: 256 / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.4035, allocations: 4 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.4036, allocations: 15.98 kB / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.4036, allocations: 160 / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.4037, allocations: 23.88 kB / 1.286 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.4037, allocations: 0 / 1.286 GB, free: 8.27 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.0001053/0.4038, allocations: 121.7 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.4039, allocations: 8.031 kB / 1.287 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.4041, allocations: 93.64 kB / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4041, allocations: 0 / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.4041, allocations: 0 / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4041, allocations: 0 / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004426/0.4046, allocations: 305.5 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4046, allocations: 0 / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.4046, allocations: 15.98 kB / 1.287 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4046, allocations: 0 / 1.287 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.4046, allocations: 0 / 1.287 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.4047, allocations: 3.984 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4047, allocations: 3.938 kB / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.4049, allocations: 191.3 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-06/0.405, allocations: 4 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.405, allocations: 0 / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-05/0.4051, allocations: 11.98 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.4051, allocations: 7.938 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.4051, allocations: 4.188 kB / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.639e-05/0.4052, allocations: 87.27 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4052, allocations: 0 / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002763/0.4055, allocations: 11.95 kB / 1.287 GB, free: 7.332 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.0006777/0.4062, allocations: 0.728 MB / 1.288 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002559/0.4064, allocations: 55.95 kB / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4064, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.4065, allocations: 27.92 kB / 1.288 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.4068, allocations: 11.92 kB / 1.288 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.4085, allocations: 1.362 MB / 1.289 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.882e-05/0.4086, allocations: 63.34 kB / 1.289 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.4086, allocations: 7.984 kB / 1.289 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/0.4087, allocations: 11.44 kB / 1.289 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of SimCode: time 3.91e-07/0.4087, allocations: 0 / 1.289 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.4405, allocations: 2.287 MB / 1.292 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.64, allocations: 11.7 kB / 1.292 GB, free: 2.781 MB / 0.9825 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 18.494764662813395]