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.001057/0.001057, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.246/1.246, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.506/2.506, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 65.97 kB / 0.9083 GB, free: 34.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2418, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001734/0.2436, allocations: 0.6678 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2446, allocations: 1.059 MB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.25e-05/0.2447, allocations: 0 / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.226e-05/0.2447, allocations: 0 / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.877e-05/0.2448, allocations: 11.88 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.245, allocations: 39.89 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.804e-05/0.2451, allocations: 43.86 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.629e-05/0.2452, allocations: 15.98 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.706e-05/0.2453, allocations: 15.92 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.541e-05/0.2453, allocations: 19.92 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.2453, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.2454, allocations: 19.97 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.2454, allocations: 7.984 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.2455, allocations: 23.88 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.2456, allocations: 51.84 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2456, allocations: 4 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2456, allocations: 0 / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.2456, allocations: 0 / 1.066 GB, free: 12.52 MB / 0.8262 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.0004401/0.246, allocations: 355.7 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2461, allocations: 8.031 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.762e-05/0.2461, allocations: 30.75 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.703e-05/0.2461, allocations: 8.844 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.385e-05/0.2462, allocations: 176.2 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.2463, allocations: 384 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.2463, allocations: 16.31 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.2465, allocations: 62.22 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.2465, allocations: 3.938 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.2465, allocations: 4 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2465, allocations: 0 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.2467, allocations: 35.95 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.2471, allocations: 280.8 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.2472, allocations: 42.55 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.861e-05/0.2473, allocations: 28.88 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.2473, allocations: 4 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.2475, allocations: 75.28 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.273e-06/0.2475, allocations: 0 / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0003451/0.2478, allocations: 109.6 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.2479, allocations: 51.41 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.2479, allocations: 109.8 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.248, allocations: 25.7 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.248, allocations: 92.12 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.248, allocations: 15.8 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.2481, allocations: 21.72 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.2482, allocations: 322.8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.003e-05/0.2483, allocations: 15.98 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.2484, allocations: 55.41 kB / 1.067 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.2486, allocations: 75.33 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2486, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002432/0.2488, allocations: 101.4 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.2488, allocations: 8 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2488, allocations: 0 / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.2489, allocations: 0 / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-05/0.249, allocations: 19.98 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.249, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.559e-05/0.249, allocations: 12.05 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.2491, allocations: 8 kB / 1.068 GB, free: 10.13 MB / 0.8262 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 7.573e-05/0.2491, allocations: 119.5 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.2492, allocations: 0 / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002506/0.2494, allocations: 93.55 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.2494, allocations: 0 / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2494, allocations: 4 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2494, allocations: 0 / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.2498, allocations: 346.3 kB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2498, allocations: 0 / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.835e-05/0.2499, allocations: 11.98 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2499, allocations: 0 / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.2499, allocations: 0 / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2499, allocations: 384 / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2499, allocations: 3.938 kB / 1.068 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.2502, allocations: 191.4 kB / 1.068 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.2502, allocations: 85.02 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2502, allocations: 7.984 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.2503, allocations: 7.984 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.2504, allocations: 3.938 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.2504, allocations: 0 / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.572e-05/0.2504, allocations: 99.2 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2504, allocations: 0 / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002253/0.2507, allocations: 8 kB / 1.069 GB, free: 9.062 MB / 0.8262 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.000494/0.2512, allocations: 0.7169 MB / 1.069 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.2514, allocations: 59.89 kB / 1.069 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2514, allocations: 0 / 1.069 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.2515, allocations: 27.97 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.2517, allocations: 15.88 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.253, allocations: 1.36 MB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.2532, allocations: 0.6807 MB / 1.071 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.635e-05/0.2533, allocations: 7.906 kB / 1.071 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.2533, allocations: 19.42 kB / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2533, allocations: 0 / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.2694, allocations: 1.697 MB / 1.073 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.811/7.08, allocations: 8.922 kB / 1.073 GB, free: 4.422 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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