Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001343/0.001343, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.001659/0.001659, allocations: 213.6 kB / 22.25 MB, free: 5.133 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.328/3.328, allocations: 0.49 GB / 0.7951 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_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.00296/0.00296, allocations: 64.45 kB / 1.154 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3971, allocations: 176.1 MB / 1.326 GB, free: 2 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002388/0.3995, allocations: 0.6845 MB / 1.327 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001704/0.4012, allocations: 1.101 MB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.854e-05/0.4012, allocations: 0 / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.749e-05/0.4013, allocations: 3.938 kB / 1.328 GB, free: 208 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.4014, allocations: 19.91 kB / 1.328 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.4017, allocations: 39.86 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000148/0.4018, allocations: 51.89 kB / 1.328 GB, free: 96 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.4019, allocations: 11.92 kB / 1.328 GB, free: 84 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.137e-05/0.402, allocations: 19.94 kB / 1.328 GB, free: 64 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.317e-05/0.4021, allocations: 15.92 kB / 1.328 GB, free: 48 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.4021, allocations: 4 kB / 1.328 GB, free: 44 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.896e-05/0.4022, allocations: 23.98 kB / 1.328 GB, free: 20 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.599e-05/0.4022, allocations: 19.91 kB / 1.328 GB, free: 0 / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.353e-05/0.4023, allocations: 16.05 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001939/0.4025, allocations: 64 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4025, allocations: 4 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.834e-06/0.4025, allocations: 0 / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.4025, allocations: 4 kB / 1.328 GB, free: 15.91 MB / 1.029 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.0006278/0.4031, allocations: 286.2 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.4032, allocations: 8.031 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.107e-05/0.4032, allocations: 38.75 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4034, allocations: 4.938 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.4035, allocations: 118.3 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.4035, allocations: 8.375 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.4035, allocations: 12.36 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/0.4037, allocations: 54.23 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.4037, allocations: 3.938 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.4038, allocations: 0 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.4038, allocations: 3.984 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.404, allocations: 43.95 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005637/0.4045, allocations: 259.8 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.4047, allocations: 50.55 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4048, allocations: 32.95 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.4048, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.4051, allocations: 71.39 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.4051, allocations: 0 / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.000458/0.4056, allocations: 121.5 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.4057, allocations: 59.41 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4058, allocations: 105.8 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.4058, allocations: 29.7 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.499e-05/0.4059, allocations: 92.12 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.4059, allocations: 15.84 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.406, allocations: 25.66 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4061, allocations: 322.8 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.4062, allocations: 23.98 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.4064, allocations: 60.2 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.4066, allocations: 92.19 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4066, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002939/0.4069, allocations: 109.5 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4069, allocations: 4 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.407, allocations: 4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.407, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.4071, allocations: 24.08 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.4071, allocations: 4.312 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.441e-05/0.4072, allocations: 12.23 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.4072, allocations: 8 kB / 1.33 GB, free: 13.62 MB / 1.029 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 0.0001211/0.4073, allocations: 120.9 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.4073, allocations: 3.953 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.4076, allocations: 106.1 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.4077, allocations: 4 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.4077, allocations: 3.938 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4077, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.4082, allocations: 325.5 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4082, allocations: 4 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.068e-05/0.4082, allocations: 7.984 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4082, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.4082, allocations: 4 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4082, allocations: 4 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4082, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.4086, allocations: 191.4 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.403e-05/0.4086, allocations: 3.984 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.4086, allocations: 4 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.969e-05/0.4087, allocations: 4 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.298e-05/0.4087, allocations: 19.86 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.4087, allocations: 4 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.348e-05/0.4088, allocations: 91.25 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4088, allocations: 0 / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002595/0.4091, allocations: 15.95 kB / 1.331 GB, free: 12.64 MB / 1.029 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.0007814/0.4099, allocations: 0.7244 MB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002851/0.4102, allocations: 71.95 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4102, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.4103, allocations: 31.91 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.4106, allocations: 18.12 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.4125, allocations: 1.407 MB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.4128, allocations: 0.6846 MB / 1.334 GB, free: 9.555 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.373e-05/0.4129, allocations: 96 / 1.334 GB, free: 9.555 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.4129, allocations: 23.36 kB / 1.334 GB, free: 9.531 MB / 1.029 GB Notification: Performance of SimCode: time 6.41e-07/0.4129, allocations: 4 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.4446, allocations: 1.9 MB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.68, allocations: 10.39 kB / 1.336 GB, free: 7.754 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.522883594967425]