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.008549/0.008549, allocations: 101 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.001675/0.001675, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.514/1.514, allocations: 222.9 MB / 240.4 MB, free: 4.191 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.694/2.694, allocations: 390.2 MB / 0.6648 GB, free: 140 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 66.94 kB / 0.9508 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.347, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001996/0.349, allocations: 0.6641 MB / 1.089 GB, free: 0.8477 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.3504, allocations: 1.056 MB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.374e-05/0.3505, allocations: 0 / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.14e-05/0.3505, allocations: 3.938 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.996e-05/0.3507, allocations: 3.938 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.351, allocations: 47.83 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.808e-05/0.3511, allocations: 39.92 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3512, allocations: 7.984 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.095e-05/0.3513, allocations: 23.92 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.529e-05/0.3514, allocations: 19.91 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/0.3514, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.958e-05/0.3515, allocations: 27.86 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.846e-05/0.3515, allocations: 4 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.3515, allocations: 19.86 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.3517, allocations: 47.86 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3517, allocations: 8 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3517, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.3517, allocations: 0 / 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.0005323/0.3522, allocations: 355.4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.3523, allocations: 8.031 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.3523, allocations: 0.9375 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.3525, allocations: 180.2 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.3525, allocations: 384 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.3525, allocations: 8.375 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.3527, allocations: 62.17 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3527, allocations: 192 / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3528, allocations: 3.938 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3528, allocations: 3.938 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.3529, allocations: 39.95 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004719/0.3534, allocations: 273 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.3536, allocations: 58.42 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.856e-05/0.3537, allocations: 20.94 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.3537, allocations: 7.984 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.3539, allocations: 71.38 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.853e-06/0.3539, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003724/0.3543, allocations: 105.5 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3544, allocations: 59.39 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/0.3545, allocations: 101.9 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.3545, allocations: 33.69 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.3545, allocations: 88.14 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.3546, allocations: 11.81 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.3546, allocations: 21.7 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3548, allocations: 314.8 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-05/0.3548, allocations: 19.98 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.355, allocations: 47.41 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.3552, allocations: 91.27 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3552, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002397/0.3554, allocations: 97.59 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.3554, allocations: 4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3555, allocations: 480 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3555, allocations: 4 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.3556, allocations: 15.92 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3556, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.831e-05/0.3557, allocations: 23.77 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.3557, allocations: 128 / 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 8.609e-05/0.3558, allocations: 121.8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.3558, allocations: 4 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.3561, allocations: 93.55 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3561, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3561, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.3561, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.3565, allocations: 346.4 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3565, allocations: 384 / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.719e-05/0.3566, allocations: 15.88 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3566, allocations: 3.984 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3566, allocations: 8 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3566, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3566, allocations: 3.984 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.3569, allocations: 179.5 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.357, allocations: 89 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.357, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.3571, allocations: 7.984 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.3571, allocations: 3.984 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.3571, allocations: 11.94 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.029e-05/0.3572, allocations: 79.28 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3572, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002446/0.3574, allocations: 16 kB / 1.093 GB, free: 12.11 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.0001605/0.3576, allocations: 103.7 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002437/0.3579, allocations: 55.95 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.3579, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.358, allocations: 36.16 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.0002632/0.3582, allocations: 14.48 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.3586, allocations: 129.5 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3589, allocations: 0.6807 MB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.051e-05/0.3589, allocations: 3.984 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.359, allocations: 11.44 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.359, allocations: 0 / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of Templates: time 0.003298/0.3623, allocations: 0.7428 MB / 1.095 GB, free: 10.28 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