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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007583/0.007583, allocations: 99.58 kB / 15.73 MB, free: 6.004 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.001955/0.001955, allocations: 191 kB / 16.67 MB, free: 5.934 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.657/2.657, allocations: 469.4 MB / 0.7422 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2507, allocations: 159.1 MB / 1.22 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001718/0.2524, allocations: 0.6807 MB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2536, allocations: 1.051 MB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.223e-05/0.2537, allocations: 0 / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.984e-05/0.2537, allocations: 3.938 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.001e-05/0.2538, allocations: 11.88 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.254, allocations: 39.83 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.166e-05/0.2541, allocations: 39.92 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.51e-05/0.2542, allocations: 15.98 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.577e-05/0.2543, allocations: 19.92 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.371e-05/0.2543, allocations: 19.92 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.2544, allocations: 4 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.2544, allocations: 19.97 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.568e-05/0.2545, allocations: 4 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.346e-05/0.2545, allocations: 23.86 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.2546, allocations: 55.73 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2546, allocations: 0 / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2546, allocations: 0 / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.2546, allocations: 3.984 kB / 1.222 GB, free: 12.66 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.0004516/0.2551, allocations: 355.3 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2551, allocations: 8.031 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.2552, allocations: 38.75 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.2552, allocations: 0.9375 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.485e-05/0.2553, allocations: 180.2 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.2553, allocations: 384 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2553, allocations: 4.375 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.2555, allocations: 62.23 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.2555, allocations: 7.875 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.2556, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2556, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.2558, allocations: 43.89 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/0.2562, allocations: 280.8 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.2563, allocations: 42.56 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.416e-05/0.2564, allocations: 28.92 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.2564, allocations: 4 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.2566, allocations: 67.28 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.383e-06/0.2566, allocations: 4 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.0003877/0.257, allocations: 109.6 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.2571, allocations: 51.41 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.631e-05/0.2572, allocations: 105.8 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2572, allocations: 25.7 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.2573, allocations: 96.08 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.2573, allocations: 11.89 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.2573, allocations: 33.64 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.2574, allocations: 314.8 kB / 1.223 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.86e-05/0.2575, allocations: 23.97 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.2576, allocations: 47.42 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.2579, allocations: 75.33 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2579, allocations: 0 / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002791/0.2581, allocations: 105.6 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2582, allocations: 9.719 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2582, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.2582, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.2583, allocations: 15.98 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2583, allocations: 4.188 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.2584, allocations: 8 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.2584, allocations: 8 kB / 1.224 GB, free: 10.27 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 8.408e-05/0.2585, allocations: 127.2 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.2585, allocations: 3.953 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.2588, allocations: 89.61 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2588, allocations: 4 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2588, allocations: 0 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2588, allocations: 0 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.2592, allocations: 338.5 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2592, allocations: 0 / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.935e-05/0.2593, allocations: 15.92 kB / 1.224 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.2593, allocations: 0 / 1.224 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.2593, allocations: 3.938 kB / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2593, allocations: 0 / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2593, allocations: 4 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.2596, allocations: 187.3 kB / 1.224 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.2596, allocations: 85.08 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.2596, allocations: 4 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.489e-05/0.2597, allocations: 8 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.2598, allocations: 7.922 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.2598, allocations: 4 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.893e-05/0.2598, allocations: 83.28 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2598, allocations: 0 / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002409/0.2601, allocations: 11.94 kB / 1.225 GB, free: 9.199 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.0005163/0.2606, allocations: 0.7204 MB / 1.225 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002378/0.2608, allocations: 68 kB / 1.225 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2608, allocations: 3.938 kB / 1.225 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.261, allocations: 23.98 kB / 1.225 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.2612, allocations: 7.938 kB / 1.225 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.2626, allocations: 1.372 MB / 1.227 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.2628, allocations: 0.6807 MB / 1.227 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.2629, allocations: 8 kB / 1.227 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.2629, allocations: 19.42 kB / 1.228 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of SimCode: time 2.084e-06/0.2629, allocations: 0 / 1.228 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01582/0.2787, allocations: 1.722 MB / 1.229 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.255/7.534, allocations: 5.969 kB / 1.229 GB, free: 4.539 MB / 0.9825 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