Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.001149/0.001149, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001124/0.001124, allocations: 194.9 kB / 16.25 MB, free: 6.625 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.186/1.186, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.375/2.375, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 68.95 kB / 0.8987 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2591, allocations: 157.4 MB / 1.052 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00179/0.2609, allocations: 0.7209 MB / 1.053 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2621, allocations: 1.065 MB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.007e-05/0.2621, allocations: 0 / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.864e-05/0.2622, allocations: 3.938 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.41e-05/0.2622, allocations: 3.938 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.2625, allocations: 31.95 kB / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.235e-05/0.2625, allocations: 47.86 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.643e-05/0.2626, allocations: 4 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.317e-05/0.2627, allocations: 27.91 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.25e-05/0.2628, allocations: 19.92 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.2628, allocations: 4 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.311e-05/0.2628, allocations: 23.98 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.2629, allocations: 7.984 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.2629, allocations: 15.88 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.263, allocations: 51.84 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.263, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.173e-06/0.263, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.263, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 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.0004609/0.2635, allocations: 355.7 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2635, allocations: 12.62 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.2636, allocations: 42.67 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.2636, allocations: 4.938 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.2637, allocations: 172.2 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.2638, allocations: 4.375 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.2638, allocations: 384 / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.2639, allocations: 66.22 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.264, allocations: 3.938 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.264, allocations: 7.984 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.264, allocations: 4 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.2641, allocations: 35.97 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003922/0.2645, allocations: 280.8 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.2647, allocations: 50.55 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.14e-05/0.2648, allocations: 28.88 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2648, allocations: 0 / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001701/0.265, allocations: 67.38 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.223e-06/0.265, allocations: 0 / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.000352/0.2653, allocations: 113.5 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.2654, allocations: 51.41 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.173e-05/0.2655, allocations: 109.8 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.2655, allocations: 25.7 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.2655, allocations: 84.14 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.2655, allocations: 15.8 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.2656, allocations: 21.72 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.892e-05/0.2657, allocations: 322.8 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.978e-05/0.2658, allocations: 23.98 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.476e-05/0.2659, allocations: 47.7 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.2661, allocations: 79.34 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2661, allocations: 0 / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002349/0.2663, allocations: 101.5 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2663, allocations: 9.219 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2663, allocations: 0 / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.2664, allocations: 4 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.385e-05/0.2664, allocations: 11.98 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.2665, allocations: 4 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/0.2665, allocations: 15.83 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2665, allocations: 4 kB / 1.056 GB, free: 4.266 MB / 0.8106 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.819e-05/0.2666, allocations: 113.8 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.2666, allocations: 4 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.2669, allocations: 105.5 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2669, allocations: 0 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2669, allocations: 0 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2669, allocations: 0 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00036/0.2673, allocations: 350.7 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2673, allocations: 4 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.538e-05/0.2673, allocations: 7.984 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2673, allocations: 4 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.2674, allocations: 0 / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.2674, allocations: 0 / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2674, allocations: 3.938 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.2676, allocations: 187.4 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.2676, allocations: 77.11 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.2677, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.991e-05/0.2677, allocations: 7.984 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/0.2678, allocations: 15.88 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.2678, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.112e-05/0.2678, allocations: 87.27 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2678, allocations: 0 / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002278/0.2681, allocations: 15.91 kB / 1.057 GB, free: 3.195 MB / 0.8106 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.000484/0.2686, allocations: 0.7086 MB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002213/0.2688, allocations: 64.08 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2688, allocations: 4.062 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.432e-05/0.2689, allocations: 27.92 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.2692, allocations: 11.92 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2705, allocations: 1.364 MB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.2707, allocations: 0.6846 MB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.817e-05/0.2707, allocations: 4 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.2708, allocations: 15.44 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2708, allocations: 0 / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.409/1.68, allocations: 1.557 MB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/1.68, allocations: 210.2 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/3.557, allocations: 0 / 1.062 GB, free: 14.49 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches