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.001628/0.001628, allocations: 101.6 kB / 16.27 MB, free: 5.852 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.001893/0.001893, allocations: 188.7 kB / 17.19 MB, free: 5.5 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.456/1.456, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.232/2.232, allocations: 390.3 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.86 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.267, allocations: 140.4 MB / 0.9503 GB, free: 8.91 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002274/0.2694, allocations: 0.6754 MB / 0.9509 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.2708, allocations: 1.048 MB / 0.952 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.272e-05/0.2709, allocations: 0 / 0.952 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.207e-05/0.2709, allocations: 3.938 kB / 0.952 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.129e-05/0.271, allocations: 3.938 kB / 0.952 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.2713, allocations: 43.83 kB / 0.952 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.391e-05/0.2714, allocations: 39.86 kB / 0.952 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2716, allocations: 19.98 kB / 0.9521 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.121e-05/0.2716, allocations: 15.98 kB / 0.9521 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.29e-05/0.2717, allocations: 27.84 kB / 0.9521 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.2717, allocations: 4 kB / 0.9521 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.561e-05/0.2718, allocations: 15.98 kB / 0.9521 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.2718, allocations: 4 kB / 0.9521 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.34e-05/0.2719, allocations: 27.84 kB / 0.9521 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.272, allocations: 43.88 kB / 0.9522 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.272, allocations: 0 / 0.9522 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.815e-06/0.272, allocations: 0 / 0.9522 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.272, allocations: 3.938 kB / 0.9522 GB, free: 6.914 MB / 0.7325 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.0005369/0.2726, allocations: 363.6 kB / 0.9525 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2726, allocations: 12.03 kB / 0.9526 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.2727, allocations: 0.9375 kB / 0.9526 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.2728, allocations: 172.3 kB / 0.9527 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.2728, allocations: 384 / 0.9527 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.2728, allocations: 12.36 kB / 0.9527 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.273, allocations: 54.23 kB / 0.9528 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.2731, allocations: 4.188 kB / 0.9528 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.2731, allocations: 3.938 kB / 0.9528 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.2731, allocations: 0 / 0.9528 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.2733, allocations: 47.89 kB / 0.9528 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.2737, allocations: 268.9 kB / 0.9531 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.2739, allocations: 54.47 kB / 0.9531 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.471e-05/0.274, allocations: 24.94 kB / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.274, allocations: 4 kB / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.2742, allocations: 75.31 kB / 0.9532 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.383e-06/0.2742, allocations: 0 / 0.9532 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003788/0.2746, allocations: 105.5 kB / 0.9533 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.2747, allocations: 51.41 kB / 0.9534 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.794e-05/0.2748, allocations: 105.8 kB / 0.9535 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.2748, allocations: 29.7 kB / 0.9535 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.2748, allocations: 92.06 kB / 0.9536 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2749, allocations: 11.81 kB / 0.9536 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.2749, allocations: 25.72 kB / 0.9536 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.275, allocations: 314.8 kB / 0.9539 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.2751, allocations: 19.98 kB / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.2752, allocations: 59.28 kB / 0.954 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2754, allocations: 75.33 kB / 0.9541 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-06/0.2754, allocations: 0 / 0.9541 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000256/0.2757, allocations: 97.66 kB / 0.9542 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.2757, allocations: 12 kB / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2757, allocations: 0 / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2758, allocations: 256 / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.2759, allocations: 19.98 kB / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2759, allocations: 4 kB / 0.9542 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.276, allocations: 11.92 kB / 0.9542 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.276, allocations: 4 kB / 0.9542 GB, free: 4.57 MB / 0.7325 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 9.012e-05/0.2761, allocations: 123.7 kB / 0.9544 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.2761, allocations: 11.91 kB / 0.9544 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002668/0.2764, allocations: 85.61 kB / 0.9544 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2764, allocations: 4 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2764, allocations: 0 / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2764, allocations: 0 / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004167/0.2768, allocations: 346.4 kB / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2768, allocations: 0 / 0.9548 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.882e-05/0.2769, allocations: 8 kB / 0.9548 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.2769, allocations: 0 / 0.9548 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-06/0.2769, allocations: 0 / 0.9548 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.2769, allocations: 7.984 kB / 0.9548 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2769, allocations: 0 / 0.9548 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.2772, allocations: 187.3 kB / 0.955 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.129e-05/0.2773, allocations: 81.11 kB / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.2773, allocations: 4 kB / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.289e-05/0.2774, allocations: 7.984 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.2774, allocations: 0 / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-06/0.2774, allocations: 7.938 kB / 0.9551 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.358e-05/0.2775, allocations: 87.27 kB / 0.9552 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2775, allocations: 0 / 0.9552 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002469/0.2777, allocations: 8 kB / 0.9552 GB, free: 3.512 MB / 0.7325 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.000153/0.2779, allocations: 115.2 kB / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002542/0.2782, allocations: 60.08 kB / 0.9553 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2782, allocations: 7.938 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.2783, allocations: 27.98 kB / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.2786, allocations: 13.61 kB / 0.9554 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.2789, allocations: 155.2 kB / 0.9555 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.2792, allocations: 0.6844 MB / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.919e-05/0.2792, allocations: 11.44 kB / 0.9562 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.2792, allocations: 0 / 0.9562 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of Templates: time 0.002279/0.2815, allocations: 0.8332 MB / 0.957 GB, free: 1.555 MB / 0.7325 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