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.001344/0.001344, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001219/0.001219, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.371/2.371, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 71.88 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9272/0.9288, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002048/0.9308, allocations: 0.6735 MB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.9321, allocations: 1.051 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.608e-05/0.9322, allocations: 1.219 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.9322, allocations: 4.641 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.149e-05/0.9323, allocations: 5.812 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.9326, allocations: 32.27 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.581e-05/0.9327, allocations: 50.28 kB / 1.09 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.9328, allocations: 11.69 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.049e-05/0.9329, allocations: 16.98 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.976e-05/0.933, allocations: 22.19 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.933, allocations: 3.125 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.878e-05/0.9331, allocations: 17.61 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.9331, allocations: 16.22 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.9331, allocations: 15 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.9333, allocations: 54.69 kB / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.9333, allocations: 0 / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.435e-06/0.9333, allocations: 1.031 kB / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.9333, allocations: 11.88 kB / 1.091 GB, free: 4.184 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.0004797/0.9338, allocations: 349.5 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.9338, allocations: 9.188 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.9339, allocations: 3.125 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.639e-05/0.934, allocations: 174.1 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.934, allocations: 5.312 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.934, allocations: 3.656 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.9342, allocations: 63.48 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.9342, allocations: 192 / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.9342, allocations: 4.906 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.9342, allocations: 1.062 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.9344, allocations: 36.61 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003858/0.9348, allocations: 273 kB / 1.091 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.9349, allocations: 50.03 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.184e-05/0.935, allocations: 26.3 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.9351, allocations: 2.141 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001689/0.9352, allocations: 68.06 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 2.444e-06/0.9353, allocations: 5 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003635/0.9356, allocations: 107.4 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.134e-05/0.9357, allocations: 52.34 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.433e-05/0.9357, allocations: 110.4 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.9357, allocations: 26.8 kB / 1.092 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.82e-05/0.9358, allocations: 91.81 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.9358, allocations: 14.38 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.9358, allocations: 24.41 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.9359, allocations: 319.2 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-05/0.936, allocations: 22.41 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.943e-05/0.9361, allocations: 45.17 kB / 1.092 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.9363, allocations: 82.61 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9363, allocations: 5.062 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002481/0.9365, allocations: 107.6 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.9366, allocations: 5.188 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.9366, allocations: 1.438 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.9366, allocations: 1.375 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.9367, allocations: 13.25 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.9367, allocations: 6.875 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.721e-05/0.9368, allocations: 10.91 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.9368, allocations: 2.219 kB / 1.093 GB, free: 2.324 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 5.807e-05/0.9369, allocations: 130.2 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.9369, allocations: 2.922 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000253/0.9372, allocations: 88.12 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.9372, allocations: 0.7969 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.9372, allocations: 0.9062 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.113e-05/0.9372, allocations: 82.55 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.9372, allocations: 2.484 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.378e-05/0.9373, allocations: 9.828 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.9373, allocations: 11.97 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002654/0.9376, allocations: 167.1 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002498/0.9379, allocations: 250.8 kB / 1.093 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.715e-05/0.938, allocations: 28.08 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.9e-05/0.938, allocations: 86.72 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of Backend: time 2.2e-07/0.938, allocations: 0.875 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004606/0.9385, allocations: 119.2 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003779/0.9389, allocations: 0.5796 MB / 1.094 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of Templates: time 0.003541/0.9424, allocations: 0.851 MB / 1.095 GB, free: 0.8438 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/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