Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009395/0.009395, allocations: 98.48 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.002192/0.002193, allocations: 194 kB / 16.67 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.529/2.529, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.75 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3498, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001955/0.3518, allocations: 0.6656 MB / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3533, allocations: 1.044 MB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.667e-05/0.3534, allocations: 0 / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.626e-05/0.3534, allocations: 11.94 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.07e-05/0.3535, allocations: 11.92 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.3538, allocations: 35.84 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.822e-05/0.3539, allocations: 39.91 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.746e-05/0.3539, allocations: 15.98 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.347e-05/0.354, allocations: 15.92 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.162e-05/0.3541, allocations: 19.92 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.3541, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.18e-05/0.3542, allocations: 15.98 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.3542, allocations: 15.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.521e-05/0.3543, allocations: 23.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.3544, allocations: 47.8 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3544, allocations: 3.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.782e-06/0.3544, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.3544, allocations: 3.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 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.0004921/0.3549, allocations: 355.3 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3549, allocations: 8.031 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.355, allocations: 16.88 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.3551, allocations: 164.4 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.3551, allocations: 4.375 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.3551, allocations: 384 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.3553, allocations: 58.23 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.3554, allocations: 192 / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.3554, allocations: 7.938 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3554, allocations: 3.938 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.3556, allocations: 47.89 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004254/0.356, allocations: 280.9 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.3561, allocations: 42.5 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.978e-05/0.3562, allocations: 28.92 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.3563, allocations: 4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.3565, allocations: 71.33 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 2.014e-06/0.3565, allocations: 0 / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0004309/0.357, allocations: 101.6 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.357, allocations: 55.41 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.807e-05/0.3571, allocations: 113.8 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3571, allocations: 29.7 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.208e-05/0.3572, allocations: 84.08 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.3572, allocations: 15.91 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.3573, allocations: 21.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3574, allocations: 314.8 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.3575, allocations: 23.97 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.3576, allocations: 59.34 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.3578, allocations: 75.34 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3578, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002357/0.358, allocations: 101.5 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3581, allocations: 5.719 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3581, allocations: 4 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3581, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.3582, allocations: 11.98 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3582, allocations: 8.125 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.3583, allocations: 8 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3583, allocations: 7.984 kB / 1.092 GB, free: 13.18 MB / 0.8575 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.0002001/0.3585, allocations: 125.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.3585, allocations: 3.953 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.3588, allocations: 89.61 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3588, allocations: 3.984 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3588, allocations: 4 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3588, allocations: 0 / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.3594, allocations: 342.8 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3594, allocations: 0 / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.947e-05/0.3594, allocations: 19.92 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.3594, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.3595, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3595, allocations: 4 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3595, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.3597, allocations: 187.3 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.3598, allocations: 85.03 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.3598, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.876e-05/0.3599, allocations: 8 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.3599, allocations: 11.98 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.3599, allocations: 3.938 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.954e-05/0.36, allocations: 87.75 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.36, allocations: 0 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002296/0.3602, allocations: 11.98 kB / 1.093 GB, free: 12.1 MB / 0.8575 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.0001479/0.3604, allocations: 100 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.3606, allocations: 63.89 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3606, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.968e-05/0.3607, allocations: 27.97 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000242/0.361, allocations: 7.938 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002801/0.3613, allocations: 128.6 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.3615, allocations: 0.6886 MB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.747e-05/0.3615, allocations: 8 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.3616, allocations: 11.44 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of SimCode: time 1.81e-07/0.3616, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of Templates: time 0.002958/0.3645, allocations: 0.7541 MB / 1.095 GB, free: 10.27 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches