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.001113/0.001113, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 198.3 kB / 16.53 MB, free: 6.668 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.544/1.544, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.52/2.52, allocations: 390.2 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9386/0.9399, allocations: 140.4 MB / 0.9496 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002492/0.9425, allocations: 0.6618 MB / 0.9502 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.944, allocations: 1.054 MB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.059e-05/0.9441, allocations: 1.688 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.822e-05/0.9441, allocations: 3.938 kB / 0.9513 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.186e-05/0.9442, allocations: 7.922 kB / 0.9513 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.9445, allocations: 37.36 kB / 0.9513 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.573e-05/0.9446, allocations: 49.52 kB / 0.9514 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.9448, allocations: 9.312 kB / 0.9514 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.372e-05/0.9448, allocations: 17.45 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.383e-05/0.9449, allocations: 17.55 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.9449, allocations: 5.062 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.945, allocations: 17.61 kB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.9451, allocations: 12.95 kB / 0.9514 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.9451, allocations: 17.33 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.9453, allocations: 55.53 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.9453, allocations: 3.938 kB / 0.9515 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.597e-06/0.9453, allocations: 0 / 0.9515 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.705e-06/0.9453, allocations: 1.531 kB / 0.9515 GB, free: 7.691 MB / 0.7169 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.0006566/0.946, allocations: 361.5 kB / 0.9519 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.9461, allocations: 8.906 kB / 0.9519 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/0.9461, allocations: 3.125 kB / 0.9519 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.9462, allocations: 174.3 kB / 0.952 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.9463, allocations: 2.719 kB / 0.952 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.9463, allocations: 3.031 kB / 0.952 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.9465, allocations: 57.3 kB / 0.9521 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.9465, allocations: 192 / 0.9521 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.9465, allocations: 9.5 kB / 0.9521 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.9465, allocations: 0 / 0.9521 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.9467, allocations: 37.83 kB / 0.9521 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005124/0.9472, allocations: 275.8 kB / 0.9524 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.9474, allocations: 51.78 kB / 0.9525 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.038e-05/0.9475, allocations: 28.11 kB / 0.9525 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.9475, allocations: 1.375 kB / 0.9525 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.9477, allocations: 62.45 kB / 0.9525 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.9478, allocations: 0 / 0.9525 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0004109/0.9482, allocations: 118.9 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.9482, allocations: 51.41 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.621e-05/0.9483, allocations: 107 kB / 0.9528 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.9483, allocations: 27.23 kB / 0.9528 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.85e-05/0.9484, allocations: 89.2 kB / 0.9529 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.9484, allocations: 10.34 kB / 0.9529 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.9485, allocations: 23.86 kB / 0.9529 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.9485, allocations: 320.2 kB / 0.9533 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.885e-05/0.9486, allocations: 31.77 kB / 0.9533 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.9488, allocations: 46.45 kB / 0.9533 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.949, allocations: 84.58 kB / 0.9534 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.949, allocations: 1.062 kB / 0.9534 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002572/0.9492, allocations: 101.3 kB / 0.9535 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.9493, allocations: 9.719 kB / 0.9535 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.9493, allocations: 5.047 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.9493, allocations: 5.469 kB / 0.9535 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.9494, allocations: 13.42 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.9495, allocations: 0.9375 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.368e-05/0.9495, allocations: 4.781 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.9495, allocations: 3 kB / 0.9535 GB, free: 5.68 MB / 0.7169 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.88e-05/0.9496, allocations: 125.7 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.9497, allocations: 9.062 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002596/0.9499, allocations: 89.5 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.9499, allocations: 1.156 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.9499, allocations: 0 / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.95, allocations: 5.672 kB / 0.9538 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.9503, allocations: 343.8 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9504, allocations: 4 kB / 0.9541 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.668e-05/0.9504, allocations: 10.02 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.9504, allocations: 1.312 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.9504, allocations: 0 / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.9504, allocations: 1.25 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.9504, allocations: 0 / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.9507, allocations: 185.5 kB / 0.9543 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.9507, allocations: 78.58 kB / 0.9544 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.9508, allocations: 9.297 kB / 0.9544 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.643e-05/0.9509, allocations: 4.531 kB / 0.9544 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.9509, allocations: 13.39 kB / 0.9544 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.9509, allocations: 5.344 kB / 0.9544 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.475e-05/0.951, allocations: 81 kB / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.951, allocations: 0 / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002378/0.9512, allocations: 14 kB / 0.9545 GB, free: 4.754 MB / 0.7169 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.0001677/0.9514, allocations: 108.9 kB / 0.9546 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002741/0.9517, allocations: 58.23 kB / 0.9546 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.9517, allocations: 0 / 0.9546 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.9518, allocations: 24.17 kB / 0.9547 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.9521, allocations: 21.95 kB / 0.9547 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.9524, allocations: 126.5 kB / 0.9548 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.9526, allocations: 0.6839 MB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.9526, allocations: 7.359 kB / 0.9555 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.9526, allocations: 17.94 kB / 0.9555 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.9526, allocations: 0 / 0.9555 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of Templates: time 0.003508/0.9561, allocations: 0.7423 MB / 0.9562 GB, free: 3.391 MB / 0.7169 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