Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_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.001252/0.001252, allocations: 108 kB / 15.6 MB, free: 132 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.001243/0.001243, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.4/2.4, allocations: 437 MB / 0.7104 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001213, allocations: 59.91 kB / 0.8694 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5006/0.5019, allocations: 151.6 MB / 1.017 GB, free: 2.543 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001855/0.5037, allocations: 0.6561 MB / 1.018 GB, free: 1.891 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.5049, allocations: 1.05 MB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.262e-05/0.505, allocations: 4 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.949e-05/0.505, allocations: 3.938 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.688e-05/0.5051, allocations: 3.938 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.5053, allocations: 51.77 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.439e-05/0.5054, allocations: 39.91 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.5055, allocations: 7.984 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.26e-05/0.5056, allocations: 23.92 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.834e-05/0.5057, allocations: 15.92 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.5057, allocations: 8 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.542e-05/0.5057, allocations: 23.98 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.5058, allocations: 4 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.582e-05/0.5058, allocations: 23.84 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.5059, allocations: 43.88 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.5059, allocations: 7.984 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5059, allocations: 0 / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.5059, allocations: 0 / 1.019 GB, free: 0.5664 MB / 0.7637 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.0004354/0.5064, allocations: 361.5 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.5064, allocations: 12.03 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.5065, allocations: 34.75 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.5065, allocations: 8.922 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.5066, allocations: 168.3 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.5066, allocations: 8.312 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.5066, allocations: 384 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.5068, allocations: 58.23 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.5068, allocations: 7.922 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.5068, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.5069, allocations: 4 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.507, allocations: 43.89 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.5074, allocations: 276.9 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.5076, allocations: 42.56 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.838e-05/0.5077, allocations: 28.92 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.5077, allocations: 0 / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.5079, allocations: 71.33 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.5079, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0003572/0.5082, allocations: 113.5 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.5083, allocations: 59.34 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.5084, allocations: 105.8 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.5084, allocations: 29.7 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.583e-05/0.5084, allocations: 84.08 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.5084, allocations: 15.81 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.5085, allocations: 21.7 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.187e-05/0.5086, allocations: 322.8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.312e-05/0.5087, allocations: 23.97 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.5088, allocations: 55.34 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.509, allocations: 71.34 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.509, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002394/0.5092, allocations: 97.58 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.5092, allocations: 4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.5093, allocations: 8.125 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.5093, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.764e-05/0.5094, allocations: 11.98 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.5094, allocations: 4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.398e-05/0.5095, allocations: 8 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.5095, allocations: 7.984 kB / 1.021 GB, free: 14.18 MB / 0.7794 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.168e-05/0.5096, allocations: 121.7 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.5096, allocations: 3.906 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.5098, allocations: 93.61 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.5098, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5098, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5098, allocations: 3.938 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.5102, allocations: 346.4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5102, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.955e-05/0.5103, allocations: 15.98 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.5103, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.5103, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.5103, allocations: 384 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5103, allocations: 480 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.5106, allocations: 191.3 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.5106, allocations: 85.09 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.5106, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.5107, allocations: 8 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.5108, allocations: 15.86 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.5108, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.838e-05/0.5108, allocations: 91.27 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5108, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002325/0.5111, allocations: 11.98 kB / 1.022 GB, free: 13.1 MB / 0.7794 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.0004763/0.5115, allocations: 0.7162 MB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.5118, allocations: 59.94 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5118, allocations: 4.25 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.5119, allocations: 27.92 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.5121, allocations: 7.938 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.5134, allocations: 1.36 MB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.5136, allocations: 0.6846 MB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.741e-05/0.5137, allocations: 8 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.5137, allocations: 15.44 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of SimCode: time 1.402e-06/0.5137, allocations: 0 / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.5296, allocations: 1.688 MB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.722/7.252, allocations: 12.56 kB / 1.027 GB, free: 8.453 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches