Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.241/2.241, allocations: 390.3 MB / 402.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 172.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.614/1.614, allocations: 221.3 MB / 0.7915 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008751/0.0008751, allocations: 95.89 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.018e-05/3.021e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3482, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.449, allocations: 149.9 MB / 1.365 GB, free: 4.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/1.449, allocations: 75.27 kB / 1.365 GB, free: 4.051 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005389/1.455, allocations: 1.055 MB / 1.366 GB, free: 3.109 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.894e-06/1.455, allocations: 4 kB / 1.366 GB, free: 3.105 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.626e-06/1.455, allocations: 0 / 1.366 GB, free: 3.105 MB / 0.823 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.0006506/1.456, allocations: 350.2 kB / 1.367 GB, free: 2.723 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/1.456, allocations: 15.97 kB / 1.367 GB, free: 2.707 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.855e-05/1.456, allocations: 4.531 kB / 1.367 GB, free: 2.703 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/1.456, allocations: 171 kB / 1.367 GB, free: 2.496 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/1.456, allocations: 0 / 1.367 GB, free: 2.496 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.669e-05/1.456, allocations: 8 kB / 1.367 GB, free: 2.488 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/1.456, allocations: 45.12 kB / 1.367 GB, free: 2.445 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/1.456, allocations: 5.969 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/1.456, allocations: 0 / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/1.456, allocations: 0 / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.411e-05/1.456, allocations: 14.12 kB / 1.367 GB, free: 2.434 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/1.457, allocations: 280.7 kB / 1.367 GB, free: 2.125 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/1.457, allocations: 35.95 kB / 1.367 GB, free: 2.086 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.171e-05/1.457, allocations: 15.61 kB / 1.367 GB, free: 2.07 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/1.457, allocations: 0 / 1.367 GB, free: 2.07 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/1.458, allocations: 56.91 kB / 1.367 GB, free: 2.008 MB / 0.823 GB Notification: Performance of pre-optimization done (n=5): time 2.605e-06/1.458, allocations: 3.938 kB / 1.367 GB, free: 2.004 MB / 0.823 GB Notification: Performance of matching and sorting (n=5): time 0.0002685/1.458, allocations: 62.81 kB / 1.367 GB, free: 1.949 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/1.458, allocations: 59.36 kB / 1.367 GB, free: 1.879 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/1.458, allocations: 108.2 kB / 1.367 GB, free: 1.77 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/1.458, allocations: 28.7 kB / 1.367 GB, free: 1.738 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/1.458, allocations: 80.14 kB / 1.368 GB, free: 1.656 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/1.458, allocations: 19.06 kB / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-06/1.458, allocations: 0 / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.458, allocations: 318.1 kB / 1.368 GB, free: 1.324 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.12e-05/1.459, allocations: 12.19 kB / 1.368 GB, free: 1.316 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.657e-05/1.459, allocations: 37.06 kB / 1.368 GB, free: 1.273 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.891e-05/1.459, allocations: 18.98 kB / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.459, allocations: 3.938 kB / 1.368 GB, free: 1.254 MB / 0.823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002388/1.459, allocations: 74.28 kB / 1.368 GB, free: 1.184 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/1.459, allocations: 12 kB / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/1.459, allocations: 0 / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/1.459, allocations: 0 / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/1.459, allocations: 23.17 kB / 1.368 GB, free: 1.152 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/1.459, allocations: 4 kB / 1.368 GB, free: 1.148 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/1.46, allocations: 19.88 kB / 1.368 GB, free: 1.129 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/1.46, allocations: 0 / 1.368 GB, free: 1.129 MB / 0.823 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001258/1.46, allocations: 112.7 kB / 1.368 GB, free: 1.016 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/1.46, allocations: 0 / 1.368 GB, free: 1.016 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/1.46, allocations: 63.97 kB / 1.368 GB, free: 0.9531 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.46, allocations: 0 / 1.368 GB, free: 0.9531 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.46, allocations: 7.984 kB / 1.368 GB, free: 0.9453 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.46, allocations: 0 / 1.368 GB, free: 0.9453 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004823/1.461, allocations: 319.4 kB / 1.369 GB, free: 0.5938 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.461, allocations: 0 / 1.369 GB, free: 0.5938 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/1.461, allocations: 15.12 kB / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/1.461, allocations: 0 / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/1.461, allocations: 7.984 kB / 1.369 GB, free: 0.5742 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/1.461, allocations: 0 / 1.369 GB, free: 0.5742 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/1.461, allocations: 3.953 kB / 1.369 GB, free: 0.5703 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/1.461, allocations: 157.7 kB / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.017e-05/1.461, allocations: 85.02 kB / 1.369 GB, free: 316 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/1.461, allocations: 4.062 kB / 1.369 GB, free: 312 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/1.461, allocations: 15.98 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/1.461, allocations: 7.703 kB / 1.369 GB, free: 292 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/1.461, allocations: 4 kB / 1.369 GB, free: 288 kB / 0.823 GB Notification: Performance of sorting global known variables: time 8.076e-05/1.462, allocations: 83.27 kB / 1.369 GB, free: 204 kB / 0.823 GB Notification: Performance of sort global known variables: time 5.41e-07/1.462, allocations: 0 / 1.369 GB, free: 204 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004467/1.462, allocations: 23.12 kB / 1.369 GB, free: 184 kB / 0.823 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002718/1.462, allocations: 103.2 kB / 1.369 GB, free: 72 kB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002288/1.463, allocations: 38.23 kB / 1.369 GB, free: 44 kB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.463, allocations: 0 / 1.369 GB, free: 44 kB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 7.713e-05/1.463, allocations: 15.69 kB / 1.369 GB, free: 32 kB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/1.463, allocations: 8.625 kB / 1.369 GB, free: 24 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/1.463, allocations: 84.09 kB / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/1.464, allocations: 0.6929 MB / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.264e-05/1.464, allocations: 0 / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.134e-05/1.464, allocations: 11.44 kB / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of SimCode: time 9.11e-07/1.464, allocations: 0 / 1.37 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of Templates: time 0.004947/1.469, allocations: 0.6342 MB / 1.371 GB, free: 14.58 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches