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.01144/0.01144, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.002756/0.002756, allocations: 196.9 kB / 16.68 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.566/2.566, 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 10.1.1-maint.10.0.x/package.mo): time 4.973/4.973, allocations: 437 MB / 0.7105 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003316/0.003316, allocations: 64.05 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5694/0.5727, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002779/0.5756, allocations: 0.6722 MB / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002246/0.5778, allocations: 1.047 MB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.665e-05/0.5779, allocations: 4 kB / 1.168 GB, free: 5.574 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.402e-05/0.578, allocations: 7.922 kB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.816e-05/0.5781, allocations: 11.94 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.5786, allocations: 39.83 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.5787, allocations: 35.92 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.5788, allocations: 12 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.181e-05/0.5789, allocations: 15.92 kB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.576e-05/0.579, allocations: 23.91 kB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.5791, allocations: 8 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.5792, allocations: 19.92 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.5792, allocations: 11.92 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.504e-05/0.5793, allocations: 19.94 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.5795, allocations: 56 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5795, allocations: 0 / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.993e-06/0.5795, allocations: 0 / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.5795, allocations: 3.938 kB / 1.168 GB, free: 5.312 MB / 0.92 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.0007858/0.5803, allocations: 363.3 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.5804, allocations: 12.03 kB / 1.168 GB, free: 4.895 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.601e-05/0.5805, allocations: 34.75 kB / 1.168 GB, free: 4.852 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.5805, allocations: 0.9375 kB / 1.168 GB, free: 4.852 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.5807, allocations: 168.3 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.5808, allocations: 4.375 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.5808, allocations: 4.375 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.5811, allocations: 62.16 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.5811, allocations: 3.938 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.5811, allocations: 4 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.5811, allocations: 4 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.5814, allocations: 35.95 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006575/0.5821, allocations: 272.9 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.5824, allocations: 50.47 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.5826, allocations: 28.94 kB / 1.169 GB, free: 4.121 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/0.5826, allocations: 7.984 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003409/0.583, allocations: 67.38 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 2.214e-06/0.583, allocations: 4 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0006046/0.5836, allocations: 105.6 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.5837, allocations: 55.34 kB / 1.169 GB, free: 3.855 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.5838, allocations: 109.8 kB / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.5839, allocations: 25.7 kB / 1.169 GB, free: 3.707 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.672e-05/0.584, allocations: 96.06 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.584, allocations: 7.906 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.258e-05/0.5841, allocations: 21.72 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002207/0.5843, allocations: 322.8 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.5845, allocations: 23.98 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.5847, allocations: 51.41 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.5851, allocations: 79.33 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5851, allocations: 3.938 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004187/0.5855, allocations: 97.55 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.5855, allocations: 8 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.5856, allocations: 256 / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.5856, allocations: 4.125 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.5858, allocations: 23.92 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.5858, allocations: 0 / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.5859, allocations: 7.984 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.5859, allocations: 4 kB / 1.17 GB, free: 2.922 MB / 0.92 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 0.0001432/0.5861, allocations: 121.7 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.5861, allocations: 3.953 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004433/0.5866, allocations: 97.55 kB / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.5866, allocations: 4 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.5866, allocations: 0 / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5866, allocations: 0 / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007208/0.5874, allocations: 338.4 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5874, allocations: 0 / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.272e-05/0.5875, allocations: 8 kB / 1.171 GB, free: 2.285 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.5875, allocations: 7.938 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.5875, allocations: 0 / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.5875, allocations: 3.984 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5875, allocations: 0 / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004965/0.5881, allocations: 183.5 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.408e-05/0.5881, allocations: 81.06 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.5882, allocations: 4 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.5883, allocations: 11.98 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.5884, allocations: 3.938 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.5884, allocations: 4 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.32e-05/0.5885, allocations: 91.72 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5885, allocations: 0 / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000467/0.589, allocations: 8 kB / 1.171 GB, free: 1.859 MB / 0.92 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.0009632/0.59, allocations: 0.7321 MB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001836/0.5918, allocations: 55.89 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5919, allocations: 0 / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.5921, allocations: 32.22 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.5925, allocations: 15.88 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.5949, allocations: 1.367 MB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.5954, allocations: 0.6846 MB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.383e-05/0.5954, allocations: 4 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.235e-05/0.5955, allocations: 15.44 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of SimCode: time 1.172e-06/0.5955, allocations: 0 / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05248/0.648, allocations: 1.7 MB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/17.61, allocations: 11.72 kB / 1.176 GB, free: 13.2 MB / 0.9356 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