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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001959/0.001959, 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.002193/0.002193, allocations: 193.9 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.589/1.589, allocations: 222.9 MB / 240.2 MB, free: 4.363 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 3.181/3.181, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002177, allocations: 71.88 kB / 0.8692 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8645/0.8667, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002618/0.8694, allocations: 0.6655 MB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.8712, allocations: 1.046 MB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.257e-05/0.8712, allocations: 0 / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.012e-05/0.8713, allocations: 3.938 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.72e-05/0.8714, allocations: 15.91 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.8718, allocations: 35.86 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.8719, allocations: 43.84 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.872, allocations: 15.98 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.089e-05/0.8721, allocations: 15.92 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.374e-05/0.8722, allocations: 19.92 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.8722, allocations: 4 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-05/0.8723, allocations: 15.98 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.8723, allocations: 4 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.476e-05/0.8724, allocations: 35.84 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.8725, allocations: 47.86 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.8726, allocations: 0 / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.524e-06/0.8726, allocations: 0 / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.8726, allocations: 0 / 1.019 GB, free: 0.4961 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.0006987/0.8733, allocations: 365.2 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.8733, allocations: 8.031 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.8734, allocations: 4.938 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.8736, allocations: 172.3 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.8736, allocations: 8.375 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.8736, allocations: 8.312 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.8739, allocations: 54.23 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.8739, allocations: 192 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.8739, allocations: 3.938 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.8739, allocations: 4 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.8741, allocations: 39.95 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/0.8747, allocations: 280.9 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.8749, allocations: 46.48 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.875, allocations: 28.92 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.8751, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.8753, allocations: 75.33 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.462e-06/0.8753, allocations: 0 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004329/0.8758, allocations: 105.5 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.8759, allocations: 55.41 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.876, allocations: 105.8 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.876, allocations: 33.7 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.8761, allocations: 84.08 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.8761, allocations: 19.75 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-05/0.8762, allocations: 21.7 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.8763, allocations: 314.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.8765, allocations: 23.97 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.8766, allocations: 55.36 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.8768, allocations: 71.33 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8768, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002852/0.8771, allocations: 97.53 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.8772, allocations: 7.984 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.8772, allocations: 4 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.8772, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.8773, allocations: 11.98 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.8773, allocations: 4.25 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.262e-05/0.8774, allocations: 12.12 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.8774, allocations: 8 kB / 1.021 GB, free: 14.15 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 0.0001162/0.8776, allocations: 125.7 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.8776, allocations: 3.906 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000297/0.8779, allocations: 85.62 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.8779, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.8779, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8779, allocations: 7.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005169/0.8785, allocations: 350.3 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.8785, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.8785, allocations: 11.98 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.8785, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.8786, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.8786, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8786, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.8789, allocations: 187.3 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/0.879, allocations: 77.11 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.879, allocations: 7.984 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.87e-05/0.8791, allocations: 4 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.8791, allocations: 7.984 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.8792, allocations: 7.938 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.349e-05/0.8792, allocations: 91.73 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.345e-06/0.8792, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002503/0.8795, allocations: 11.94 kB / 1.022 GB, free: 13.08 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.0001963/0.8797, allocations: 103.2 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002756/0.88, allocations: 64.08 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.88, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.8801, allocations: 24.17 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.8804, allocations: 8.109 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.8808, allocations: 142 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.8812, allocations: 0.6885 MB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.417e-05/0.8813, allocations: 4 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.8813, allocations: 7.438 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8813, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of Templates: time 0.003921/0.8852, allocations: 0.7471 MB / 1.024 GB, free: 11.25 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/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