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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 109.1 kB / 15.99 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 189.2 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.573/2.573, allocations: 469.8 MB / 0.7427 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 61.47 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2935, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001937/0.2955, allocations: 0.7231 MB / 1.065 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001313/0.2968, allocations: 1.061 MB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.81e-05/0.2969, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.322e-05/0.2969, allocations: 7.938 kB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.621e-05/0.297, allocations: 0 / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2973, allocations: 31.91 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.488e-05/0.2974, allocations: 43.92 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.846e-05/0.2974, allocations: 7.984 kB / 1.066 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.211e-05/0.2975, allocations: 23.91 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.2976, allocations: 27.8 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.2976, allocations: 8 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.172e-05/0.2977, allocations: 15.98 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.2977, allocations: 8 kB / 1.066 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.2977, allocations: 19.86 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.2978, allocations: 39.92 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2978, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2979, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2979, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8419 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.0005202/0.2984, allocations: 347.7 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2984, allocations: 16.03 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.2985, allocations: 0.9375 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.2986, allocations: 176.2 kB / 1.067 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.2986, allocations: 4.375 kB / 1.067 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.2986, allocations: 4.375 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.2989, allocations: 62.17 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.2989, allocations: 192 / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2989, allocations: 3.938 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.2989, allocations: 0 / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.2991, allocations: 43.95 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.2995, allocations: 269 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.2997, allocations: 42.5 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.641e-05/0.2998, allocations: 40.84 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.2998, allocations: 11.92 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.3, allocations: 67.39 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=5): time 1.432e-06/0.3, allocations: 0 / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5): time 0.0003647/0.3004, allocations: 113.5 kB / 1.067 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3004, allocations: 51.41 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.114e-05/0.3005, allocations: 113.8 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3006, allocations: 25.7 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3006, allocations: 88.14 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.3006, allocations: 7.812 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.3007, allocations: 25.7 kB / 1.068 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3008, allocations: 314.8 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-05/0.3009, allocations: 27.97 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.301, allocations: 43.42 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.3012, allocations: 83.27 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3013, allocations: 0 / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000243/0.3015, allocations: 97.58 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3015, allocations: 8 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3015, allocations: 0 / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.3016, allocations: 4.125 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.3017, allocations: 23.86 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.3017, allocations: 0 / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/0.3017, allocations: 11.84 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3018, allocations: 4 kB / 1.068 GB, free: 10.75 MB / 0.8419 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.0001022/0.3019, allocations: 121.8 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.3019, allocations: 4 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002528/0.3021, allocations: 89.61 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3022, allocations: 7.938 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3022, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3022, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.3026, allocations: 334.4 kB / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3026, allocations: 0 / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.3027, allocations: 15.98 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3027, allocations: 0 / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.3027, allocations: 4 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3027, allocations: 4.844 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.3027, allocations: 3.938 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.303, allocations: 183.4 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.197e-05/0.3031, allocations: 89 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.3031, allocations: 4 kB / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.819e-05/0.3032, allocations: 4 kB / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.3032, allocations: 3.984 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.3032, allocations: 7.938 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.106e-05/0.3033, allocations: 87.27 kB / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3033, allocations: 0 / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002318/0.3035, allocations: 12 kB / 1.069 GB, free: 9.688 MB / 0.8419 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.0001513/0.3037, allocations: 111.2 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.3039, allocations: 59.89 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3039, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.3041, allocations: 31.91 kB / 1.069 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.3043, allocations: 11.98 kB / 1.069 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003343/0.3047, allocations: 171.9 kB / 1.069 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.305, allocations: 0.6807 MB / 1.07 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.305, allocations: 11.44 kB / 1.07 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.305, allocations: 0 / 1.07 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of Templates: time 0.002445/0.3075, allocations: 0.817 MB / 1.071 GB, free: 7.738 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (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) 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) Reference file matches