Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007329/0.007329, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001818/0.001818, allocations: 200.6 kB / 16.68 MB, free: 5.969 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.567/1.567, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.598/2.598, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 66.61 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2984, allocations: 140.4 MB / 1.087 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002227/0.3006, allocations: 0.6617 MB / 1.088 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.302, allocations: 1.044 MB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.651e-05/0.3021, allocations: 0 / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.3022, allocations: 7.875 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.396e-05/0.3023, allocations: 7.875 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.3027, allocations: 47.83 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.3028, allocations: 39.91 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3029, allocations: 12 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.511e-05/0.303, allocations: 23.91 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.303, allocations: 15.92 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.303, allocations: 4 kB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.051e-05/0.3031, allocations: 19.92 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.3031, allocations: 8 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.749e-05/0.3032, allocations: 23.86 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.3033, allocations: 52.06 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3033, allocations: 0 / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3034, allocations: 0 / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.3034, allocations: 0 / 1.089 GB, free: 48 kB / 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.0005593/0.3039, allocations: 359.3 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.304, allocations: 12.03 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.304, allocations: 34.73 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.685e-05/0.3041, allocations: 4.891 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.3042, allocations: 164.4 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.3042, allocations: 384 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.3042, allocations: 12.31 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.3045, allocations: 62.22 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3045, allocations: 3.938 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3045, allocations: 4 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.3045, allocations: 3.984 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.3047, allocations: 39.91 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004964/0.3052, allocations: 280.8 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.3053, allocations: 50.5 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.322e-05/0.3054, allocations: 28.92 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3055, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.3057, allocations: 67.39 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.3057, allocations: 0 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003843/0.3061, allocations: 109.6 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.3062, allocations: 51.41 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.671e-05/0.3063, allocations: 113.8 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.3063, allocations: 33.7 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.3063, allocations: 84.08 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.3063, allocations: 15.91 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/0.3064, allocations: 25.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3065, allocations: 318.8 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.3066, allocations: 23.97 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.3067, allocations: 47.66 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.3069, allocations: 87.28 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3069, allocations: 4 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002536/0.3072, allocations: 97.67 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3072, allocations: 4 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3072, allocations: 0 / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3073, allocations: 4 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3074, allocations: 19.92 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3074, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.3075, allocations: 11.98 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3075, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 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 8.952e-05/0.3076, allocations: 117.8 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.3076, allocations: 11.98 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.3079, allocations: 93.55 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3079, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3079, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3079, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3083, allocations: 334.5 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3083, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.634e-05/0.3084, allocations: 11.92 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3084, allocations: 3.938 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3084, allocations: 4 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3084, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3085, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002762/0.3087, allocations: 191.4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.3088, allocations: 85.05 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.3088, allocations: 4.188 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.3089, allocations: 8 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.309, allocations: 7.922 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.309, allocations: 4 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.211e-05/0.309, allocations: 87.27 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.309, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002502/0.3093, allocations: 12 kB / 1.092 GB, free: 12.58 MB / 0.8575 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.0005807/0.3099, allocations: 0.7202 MB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002589/0.3101, allocations: 60.02 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3102, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.3103, allocations: 27.98 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.3106, allocations: 21.27 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.3121, allocations: 1.352 MB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.3124, allocations: 0.6807 MB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.945e-05/0.3124, allocations: 7.984 kB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.3125, allocations: 19.42 kB / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of SimCode: time 1.042e-06/0.3125, allocations: 0 / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.3332, allocations: 1.709 MB / 1.097 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.029/8.362, allocations: 6.219 kB / 1.097 GB, free: 7.93 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches