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.01021/0.01021, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002046/0.002046, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.546/1.546, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.875/2.875, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 55.91 kB / 1.019 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3751, allocations: 151.6 MB / 1.167 GB, free: 6.836 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001903/0.3771, allocations: 0.6752 MB / 1.167 GB, free: 6.156 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.3787, allocations: 1.054 MB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.335e-05/0.3787, allocations: 0 / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.3788, allocations: 7.938 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.989e-05/0.3789, allocations: 3.938 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.3793, allocations: 43.83 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.3794, allocations: 39.91 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.3795, allocations: 8 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.391e-05/0.3796, allocations: 19.92 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.405e-05/0.3797, allocations: 23.91 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.3797, allocations: 4 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.585e-05/0.3798, allocations: 23.92 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.3798, allocations: 7.938 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.3799, allocations: 19.92 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.3801, allocations: 55.72 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3801, allocations: 4 kB / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3801, allocations: 0 / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.3801, 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.0006424/0.3808, allocations: 359.3 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3808, allocations: 8.031 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.3809, allocations: 4.938 kB / 1.169 GB, free: 4.414 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.3811, allocations: 172.3 kB / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.3811, allocations: 384 / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.3811, allocations: 8.375 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.3814, allocations: 62.17 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3814, allocations: 192 / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.3814, allocations: 7.938 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3814, allocations: 0 / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.3816, allocations: 43.95 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.3822, allocations: 269 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.3823, allocations: 46.5 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.867e-05/0.3824, allocations: 36.8 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3825, allocations: 4 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.3827, allocations: 67.39 kB / 1.17 GB, free: 3.594 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.794e-06/0.3827, allocations: 0 / 1.17 GB, free: 3.594 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0003994/0.3831, allocations: 105.6 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.3832, allocations: 51.41 kB / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3833, allocations: 117.8 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.3833, allocations: 29.7 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3834, allocations: 88.06 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.3834, allocations: 15.91 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.993e-05/0.3835, allocations: 21.7 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3836, allocations: 314.8 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.3837, allocations: 27.97 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3838, allocations: 43.42 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.384, allocations: 91.27 kB / 1.17 GB, free: 2.629 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.384, allocations: 0 / 1.17 GB, free: 2.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002639/0.3843, allocations: 93.55 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3843, allocations: 13.8 kB / 1.171 GB, free: 2.52 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3843, allocations: 0 / 1.171 GB, free: 2.52 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3844, allocations: 4 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3845, allocations: 19.92 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3845, allocations: 4.594 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.091e-05/0.3846, allocations: 8 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.3846, allocations: 0 / 1.171 GB, free: 2.484 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.0001055/0.3847, allocations: 121.8 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.712e-05/0.3848, allocations: 7.953 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.385, allocations: 89.56 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.385, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3851, allocations: 4.312 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3851, allocations: 3.984 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.3855, allocations: 342.5 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3855, allocations: 0 / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.106e-05/0.3856, allocations: 7.984 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3856, allocations: 3.984 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.3856, allocations: 4 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.3856, allocations: 4 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3856, allocations: 3.938 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.3859, allocations: 175.5 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.386, allocations: 93 kB / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.386, allocations: 3.984 kB / 1.171 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.3861, allocations: 4 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.3861, allocations: 7.984 kB / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.3862, allocations: 7.938 kB / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.078e-05/0.3862, allocations: 87.27 kB / 1.171 GB, free: 1.422 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3862, allocations: 0 / 1.171 GB, free: 1.422 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002452/0.3865, allocations: 12 kB / 1.172 GB, free: 1.41 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.0001486/0.3866, allocations: 103.2 kB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002639/0.3869, allocations: 63.89 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3869, allocations: 0 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.387, allocations: 27.92 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.3873, allocations: 7.984 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.3876, allocations: 130 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.3879, allocations: 0.6926 MB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.379e-05/0.388, allocations: 4 kB / 1.173 GB, free: 336 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.682e-05/0.388, allocations: 7.438 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of SimCode: time 2.41e-07/0.388, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of Templates: time 0.003291/0.3913, allocations: 0.7556 MB / 1.173 GB, free: 15.57 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