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.01244/0.01244, allocations: 100.9 kB / 15.73 MB, free: 6 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.002591/0.002591, allocations: 189.2 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.548/1.548, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.781/2.781, allocations: 437 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 64.08 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3868, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002055/0.3889, allocations: 0.6639 MB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.3904, allocations: 1.054 MB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.343e-05/0.3904, allocations: 0 / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.718e-05/0.3905, allocations: 7.922 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.551e-05/0.3906, allocations: 7.938 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.3909, allocations: 39.89 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.391, allocations: 39.86 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.3911, allocations: 8 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.589e-05/0.3912, allocations: 23.91 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.809e-05/0.3912, allocations: 15.92 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.3913, allocations: 4 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.503e-05/0.3913, allocations: 19.98 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.328e-05/0.3914, allocations: 15.92 kB / 1.168 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.3914, allocations: 15.94 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.3916, allocations: 55.72 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3916, allocations: 4 kB / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.285e-06/0.3916, allocations: 0 / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.884e-06/0.3916, allocations: 0 / 1.169 GB, free: 4.828 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.0006837/0.3923, allocations: 363.3 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3924, allocations: 8.031 kB / 1.169 GB, free: 4.414 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.3924, allocations: 8.875 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.3925, allocations: 172.3 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.3926, allocations: 384 / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.3926, allocations: 8.375 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.3928, allocations: 58.22 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.3928, allocations: 192 / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.3928, allocations: 3.938 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3928, allocations: 0 / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.393, allocations: 43.97 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.3935, allocations: 280.9 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.3936, allocations: 50.48 kB / 1.169 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.843e-05/0.3937, allocations: 24.94 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.3938, allocations: 0 / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.394, allocations: 75.38 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 2.906e-06/0.394, allocations: 0 / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.00039/0.3944, allocations: 105.5 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.3944, allocations: 51.41 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/0.3945, allocations: 109.8 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.3946, allocations: 33.7 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3947, allocations: 84.08 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.3947, allocations: 19.89 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.3948, allocations: 17.72 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3949, allocations: 314.8 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.593e-05/0.395, allocations: 23.98 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.3951, allocations: 51.72 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.3953, allocations: 79.28 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3953, allocations: 4.25 kB / 1.17 GB, free: 2.633 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002801/0.3956, allocations: 105.5 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3956, allocations: 7.938 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3956, allocations: 4 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3957, allocations: 4 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.3958, allocations: 11.98 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3958, allocations: 288 / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.392e-05/0.3958, allocations: 19.98 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.3959, allocations: 0 / 1.171 GB, free: 2.477 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 9.073e-05/0.396, allocations: 121.7 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.396, allocations: 7.953 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002558/0.3962, allocations: 89.61 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3963, allocations: 0 / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3963, allocations: 7.938 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3963, allocations: 0 / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.3967, allocations: 346.4 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3967, allocations: 0 / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.437e-05/0.3968, allocations: 7.984 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3968, allocations: 0 / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.3968, allocations: 4 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3968, allocations: 3.984 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3968, allocations: 4 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.3971, allocations: 183.4 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.607e-05/0.3972, allocations: 85.06 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.3972, allocations: 4 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.3973, allocations: 7.984 kB / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.3973, allocations: 192 / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.3973, allocations: 15.94 kB / 1.171 GB, free: 1.496 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.886e-05/0.3974, allocations: 87.27 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3974, allocations: 0 / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002395/0.3977, allocations: 12 kB / 1.172 GB, free: 1.398 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.0002091/0.3979, allocations: 95.25 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002789/0.3982, allocations: 68.08 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3982, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.3983, allocations: 27.97 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.3986, allocations: 4 kB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.399, allocations: 130 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.3994, allocations: 0.6845 MB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.219e-05/0.3994, allocations: 8.062 kB / 1.173 GB, free: 336 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.522e-05/0.3995, allocations: 11.38 kB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of SimCode: time 3.11e-07/0.3995, allocations: 0 / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of Templates: time 0.003627/0.4031, allocations: 0.7587 MB / 1.173 GB, free: 15.56 MB / 0.9356 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=480 -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