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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.007497/0.007497, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001724/0.001724, allocations: 194.4 kB / 16.79 MB, free: 5.809 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.353/1.353, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.594/2.594, allocations: 390.2 MB / 0.6649 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 71.83 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7025/0.7041, allocations: 140.3 MB / 0.9496 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001849/0.706, allocations: 0.7345 MB / 0.9503 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.7071, allocations: 1.044 MB / 0.9513 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.521e-05/0.7072, allocations: 1.562 kB / 0.9513 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.272e-05/0.7072, allocations: 3.938 kB / 0.9513 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.634e-05/0.7073, allocations: 5.594 kB / 0.9513 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.7075, allocations: 40.55 kB / 0.9514 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.437e-05/0.7076, allocations: 40.11 kB / 0.9514 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.724e-05/0.7077, allocations: 8.031 kB / 0.9514 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.156e-05/0.7078, allocations: 22.73 kB / 0.9514 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.416e-05/0.7078, allocations: 17.42 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.7078, allocations: 2.75 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.402e-05/0.7079, allocations: 20.22 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.7079, allocations: 5.359 kB / 0.9515 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.686e-05/0.708, allocations: 21.38 kB / 0.9515 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.708e-05/0.708, allocations: 32.17 kB / 0.9515 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.7081, allocations: 4 kB / 0.9515 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.72e-07/0.7081, allocations: 1.375 kB / 0.9515 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.7081, allocations: 0 / 0.9515 GB, free: 7.566 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.0004541/0.7085, allocations: 364.5 kB / 0.9519 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.7086, allocations: 9.625 kB / 0.9519 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.7086, allocations: 2.312 kB / 0.9519 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.734e-05/0.7087, allocations: 171 kB / 0.9521 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.7087, allocations: 1.75 kB / 0.9521 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.7087, allocations: 7.125 kB / 0.9521 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.7089, allocations: 65.28 kB / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.7089, allocations: 1.562 kB / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.709, allocations: 3.938 kB / 0.9521 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.709, allocations: 1.375 kB / 0.9521 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.7091, allocations: 40.58 kB / 0.9522 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.7095, allocations: 268.2 kB / 0.9524 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.7097, allocations: 54.92 kB / 0.9525 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.376e-05/0.7098, allocations: 25.31 kB / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.7098, allocations: 1.375 kB / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.71, allocations: 70.5 kB / 0.9526 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.543e-06/0.71, allocations: 0 / 0.9526 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003762/0.7104, allocations: 105.5 kB / 0.9527 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.7104, allocations: 56.72 kB / 0.9527 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.845e-05/0.7105, allocations: 107.2 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.7105, allocations: 25.7 kB / 0.9529 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.7105, allocations: 99.19 kB / 0.953 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.7105, allocations: 13.41 kB / 0.953 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.7106, allocations: 19.38 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.531e-05/0.7106, allocations: 316 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.647e-05/0.7107, allocations: 24.52 kB / 0.9533 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.7108, allocations: 55.11 kB / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.711, allocations: 79.7 kB / 0.9534 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.711, allocations: 3.938 kB / 0.9534 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002287/0.7113, allocations: 98.94 kB / 0.9535 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.7113, allocations: 4.594 kB / 0.9535 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.7113, allocations: 1.062 kB / 0.9535 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.7113, allocations: 1.375 kB / 0.9535 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.7114, allocations: 18.45 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.7114, allocations: 1.562 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.7115, allocations: 11.89 kB / 0.9536 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.7115, allocations: 6.688 kB / 0.9536 GB, free: 5.547 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 5.64e-05/0.7116, allocations: 113.2 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.7116, allocations: 10.12 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.7118, allocations: 97.05 kB / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.7118, allocations: 1.312 kB / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7119, allocations: 0 / 0.9538 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.7119, allocations: 5.188 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.7122, allocations: 336.5 kB / 0.9541 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.7122, allocations: 0 / 0.9541 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.777e-05/0.7123, allocations: 10.36 kB / 0.9541 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.7123, allocations: 1.344 kB / 0.9541 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.7123, allocations: 0 / 0.9541 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.7123, allocations: 5.219 kB / 0.9541 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7123, allocations: 0 / 0.9541 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.7125, allocations: 189.4 kB / 0.9543 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.96e-05/0.7125, allocations: 78.39 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.7126, allocations: 1.312 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.251e-05/0.7127, allocations: 11.58 kB / 0.9544 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.7127, allocations: 2.625 kB / 0.9544 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.7127, allocations: 12.67 kB / 0.9544 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.656e-05/0.7127, allocations: 85.33 kB / 0.9545 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7127, allocations: 0 / 0.9545 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002617/0.713, allocations: 12.88 kB / 0.9545 GB, free: 4.629 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.0001232/0.7131, allocations: 98.56 kB / 0.9546 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.7134, allocations: 65.62 kB / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.7134, allocations: 4.062 kB / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.7135, allocations: 28.42 kB / 0.9547 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.7138, allocations: 8.656 kB / 0.9547 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.714, allocations: 166.4 kB / 0.9549 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.7142, allocations: 0.6839 MB / 0.9555 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.7142, allocations: 10.19 kB / 0.9555 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.7142, allocations: 0 / 0.9555 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of Templates: time 0.002045/0.7163, allocations: 0.8234 MB / 0.9563 GB, free: 3.191 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/jenkins1/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