Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001781/0.001781, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.508/2.508, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 63.86 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4131, allocations: 153 MB / 1.027 GB, free: 2.105 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00212/0.4152, allocations: 0.6714 MB / 1.027 GB, free: 1.438 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.4166, allocations: 1.052 MB / 1.028 GB, free: 380 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.4167, allocations: 4 kB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.4168, allocations: 7.938 kB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.571e-05/0.4168, allocations: 7.922 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.4171, allocations: 35.91 kB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.4173, allocations: 43.84 kB / 1.029 GB, free: 280 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.4174, allocations: 19.98 kB / 1.029 GB, free: 260 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.735e-05/0.4174, allocations: 15.92 kB / 1.029 GB, free: 244 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.515e-05/0.4175, allocations: 19.92 kB / 1.029 GB, free: 224 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.4175, allocations: 8 kB / 1.029 GB, free: 216 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.63e-05/0.4176, allocations: 15.98 kB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.847e-05/0.4177, allocations: 11.94 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.476e-05/0.4177, allocations: 23.91 kB / 1.029 GB, free: 164 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.4179, allocations: 51.8 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4179, allocations: 0 / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of FrontEnd: time 3.045e-06/0.4179, allocations: 0 / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.418, allocations: 0 / 1.029 GB, free: 112 kB / 0.795 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.0006492/0.4186, allocations: 359.3 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4187, allocations: 12.03 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.4187, allocations: 4.938 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.4189, allocations: 180.2 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.4189, allocations: 384 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.4189, allocations: 4.375 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.4191, allocations: 54.23 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.4192, allocations: 4.188 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.4192, allocations: 3.938 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4192, allocations: 0 / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.4194, allocations: 43.95 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.42, allocations: 272.9 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.4201, allocations: 46.5 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.987e-05/0.4202, allocations: 36.91 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.4202, allocations: 0 / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.4205, allocations: 67.33 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.744e-06/0.4205, allocations: 0 / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.000395/0.4209, allocations: 109.5 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.4209, allocations: 59.41 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.4211, allocations: 105.8 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.4211, allocations: 25.7 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.259e-05/0.4212, allocations: 88.14 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.4212, allocations: 11.81 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-05/0.4213, allocations: 21.7 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002138/0.4215, allocations: 314.8 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.689e-05/0.4216, allocations: 27.97 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.4217, allocations: 47.61 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.4219, allocations: 79.33 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4219, allocations: 4 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002386/0.4222, allocations: 97.53 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4222, allocations: 4 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4222, allocations: 11.92 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.4223, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.4224, allocations: 20.11 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4224, allocations: 0 / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.812e-05/0.4225, allocations: 11.84 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.4225, allocations: 8 kB / 1.031 GB, free: 13.77 MB / 0.8106 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.0001276/0.4226, allocations: 125.6 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.4226, allocations: 7.938 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.4229, allocations: 85.62 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4229, allocations: 4 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4229, allocations: 0 / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4229, allocations: 7.984 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004271/0.4234, allocations: 342.3 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4234, allocations: 0 / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.837e-05/0.4235, allocations: 11.98 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.4235, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.4235, allocations: 4 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4235, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4235, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.4238, allocations: 183.4 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.4238, allocations: 77.11 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.4238, allocations: 4.172 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.709e-05/0.4239, allocations: 12 kB / 1.032 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.424, allocations: 11.98 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.424, allocations: 3.938 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.18e-05/0.4241, allocations: 87.28 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4241, allocations: 0 / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002537/0.4243, allocations: 11.91 kB / 1.032 GB, free: 12.7 MB / 0.8106 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.0001936/0.4245, allocations: 103.2 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002642/0.4248, allocations: 59.89 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4248, allocations: 0 / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.762e-05/0.4249, allocations: 23.98 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.4252, allocations: 11.98 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000385/0.4256, allocations: 134.1 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.4259, allocations: 0.6926 MB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.341e-05/0.426, allocations: 7.938 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.426, allocations: 7.438 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.426, allocations: 0 / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.003711/0.4297, allocations: 0.7465 MB / 1.033 GB, free: 10.86 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches