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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007961/0.007962, allocations: 96.7 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.002098/0.002098, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.866/2.866, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003175/0.003175, allocations: 63.91 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3123, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001847/0.3142, allocations: 0.6659 MB / 1.221 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.3156, allocations: 1.047 MB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.148e-05/0.3156, allocations: 0 / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.77e-05/0.3156, allocations: 7.922 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.151e-05/0.3157, allocations: 7.922 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.316, allocations: 39.84 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.93e-05/0.3161, allocations: 43.84 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.233e-05/0.3162, allocations: 15.94 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.088e-05/0.3162, allocations: 19.92 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.909e-05/0.3163, allocations: 19.92 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.3163, allocations: 4 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.739e-05/0.3164, allocations: 23.92 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.3164, allocations: 11.97 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.585e-05/0.3164, allocations: 15.88 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.3166, allocations: 51.78 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3166, allocations: 4 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3166, allocations: 4 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.3166, allocations: 4 kB / 1.222 GB, free: 12.32 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.0005418/0.3171, allocations: 351.3 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3172, allocations: 12.03 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.3172, allocations: 34.75 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.3173, allocations: 4.938 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.3174, allocations: 168.3 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3174, allocations: 4.375 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.3174, allocations: 4.375 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.3176, allocations: 70.16 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3177, allocations: 3.938 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.3177, allocations: 0 / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3177, allocations: 4 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.3179, allocations: 35.95 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004451/0.3183, allocations: 276.9 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.3185, allocations: 50.48 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.839e-05/0.3186, allocations: 24.94 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.3186, allocations: 3.938 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.3188, allocations: 75.33 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.362e-06/0.3188, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003849/0.3192, allocations: 101.6 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.3193, allocations: 55.34 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.132e-05/0.3194, allocations: 109.8 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.3194, allocations: 25.7 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.3195, allocations: 96.08 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.3195, allocations: 11.89 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.3195, allocations: 17.72 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3197, allocations: 326.8 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3198, allocations: 23.97 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.3199, allocations: 43.41 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.3201, allocations: 83.33 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3202, allocations: 0 / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002688/0.3204, allocations: 101.5 kB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3204, allocations: 7.938 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3205, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3205, allocations: 4 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.3206, allocations: 15.92 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3206, allocations: 4 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.597e-05/0.3207, allocations: 7.984 kB / 1.224 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3207, allocations: 4.125 kB / 1.224 GB, free: 9.945 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 9.142e-05/0.3208, allocations: 117.8 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.3208, allocations: 7.953 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002795/0.3211, allocations: 97.55 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3211, allocations: 0 / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3211, allocations: 320 / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3211, allocations: 0 / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004581/0.3216, allocations: 350.5 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3216, allocations: 0 / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-05/0.3217, allocations: 4 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.3217, allocations: 4 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.3217, allocations: 3.938 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3217, allocations: 3.984 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3217, allocations: 0 / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.322, allocations: 191.3 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.322, allocations: 77.11 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.3221, allocations: 0 / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.3222, allocations: 7.984 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.3222, allocations: 11.94 kB / 1.225 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.3222, allocations: 0 / 1.225 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.677e-05/0.3223, allocations: 83.27 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3223, allocations: 4 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002474/0.3225, allocations: 19.94 kB / 1.225 GB, free: 8.867 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.0006226/0.3232, allocations: 0.7129 MB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.3234, allocations: 67.89 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3235, allocations: 0 / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3236, allocations: 27.97 kB / 1.226 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.3239, allocations: 11.88 kB / 1.226 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.3255, allocations: 1.374 MB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.3258, allocations: 0.6885 MB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.3258, allocations: 4.312 kB / 1.228 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.3259, allocations: 11.44 kB / 1.228 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.3259, allocations: 0 / 1.228 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.3487, allocations: 1.711 MB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/8.096, allocations: 15.98 kB / 1.23 GB, free: 4.203 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv","/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