Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.00141/0.00141, allocations: 188.8 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 221.5 MB / 0.7824 GB, free: 0.9609 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008781/0.0008781, allocations: 106.7 kB / 0.9219 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.649e-05/1.683e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3041, allocations: 142.3 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.325, allocations: 152.9 MB / 1.355 GB, free: 18.44 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/1.326, allocations: 76.86 kB / 1.355 GB, free: 18.44 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01813/1.344, allocations: 7.138 MB / 1.362 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/1.344, allocations: 224 / 1.362 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.852e-05/1.344, allocations: 11.78 kB / 1.362 GB, free: 33.77 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007506/1.344, allocations: 0.4911 MB / 1.363 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.345, allocations: 7.625 kB / 1.363 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.976e-05/1.345, allocations: 23.31 kB / 1.363 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/1.345, allocations: 306.3 kB / 1.363 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/1.345, allocations: 7.844 kB / 1.363 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/1.345, allocations: 3.844 kB / 1.363 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001475/1.345, allocations: 66.53 kB / 1.363 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001636/1.346, allocations: 91.14 kB / 1.363 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/1.346, allocations: 0 / 1.363 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/1.346, allocations: 0 / 1.363 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.346, allocations: 3.969 kB / 1.363 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008117/1.346, allocations: 450.3 kB / 1.364 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/1.347, allocations: 112.4 kB / 1.364 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.834e-05/1.347, allocations: 37.89 kB / 1.364 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/1.347, allocations: 3.938 kB / 1.364 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/1.347, allocations: 112.4 kB / 1.364 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/1.347, allocations: 0 / 1.364 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003149/1.347, allocations: 152.7 kB / 1.364 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/1.347, allocations: 58.2 kB / 1.364 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/1.348, allocations: 296.9 kB / 1.365 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/1.348, allocations: 29.64 kB / 1.365 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.557e-05/1.348, allocations: 133.7 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.295e-05/1.348, allocations: 42.92 kB / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/1.348, allocations: 224 / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001391/1.348, allocations: 333.9 kB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/1.348, allocations: 78.67 kB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/1.348, allocations: 123.4 kB / 1.365 GB, free: 32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/1.348, allocations: 90.69 kB / 1.365 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.309e-06/1.349, allocations: 0 / 1.365 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005246/1.349, allocations: 259.9 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/1.349, allocations: 7.688 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.349, allocations: 0 / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/1.349, allocations: 7.703 kB / 1.366 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002257/1.349, allocations: 50.88 kB / 1.366 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/1.349, allocations: 3.984 kB / 1.366 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/1.35, allocations: 31.22 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.254e-05/1.35, allocations: 11.78 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.decreaseSampler.y,decreaseSampler.y,$PRE.increaseSampler.y,increaseSampler.y,$PRE.changeSampler.y,changeSampler.y,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$whenCondition3,$whenCondition1,$PRE.cha.u,cha.u,cha.y,cha.up,cha.down,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0001578/1.35, allocations: 120.8 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/1.35, allocations: 22.17 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003628/1.35, allocations: 178.9 kB / 1.366 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/1.35, allocations: 0 / 1.366 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/1.35, allocations: 7.734 kB / 1.366 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/1.35, allocations: 0 / 1.366 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008018/1.351, allocations: 0.4955 MB / 1.366 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.351, allocations: 0 / 1.366 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/1.351, allocations: 28.42 kB / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/1.351, allocations: 0 / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/1.351, allocations: 7.922 kB / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/1.351, allocations: 0 / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/1.351, allocations: 0 / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/1.352, allocations: 265.2 kB / 1.367 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.007e-05/1.352, allocations: 102.2 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/1.352, allocations: 3.812 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/1.352, allocations: 24.16 kB / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/1.352, allocations: 12.31 kB / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/1.352, allocations: 6.031 kB / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002013/1.352, allocations: 203.7 kB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.352, allocations: 3.938 kB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003517/1.353, allocations: 64.39 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0008471/1.354, allocations: 354.2 kB / 1.367 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002654/1.354, allocations: 151 kB / 1.368 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.354, allocations: 0 / 1.368 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.744e-05/1.354, allocations: 54.23 kB / 1.368 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/1.354, allocations: 49.39 kB / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006736/1.355, allocations: 284.4 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/1.355, allocations: 0.7646 MB / 1.369 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001236/1.356, allocations: 35.03 kB / 1.369 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/1.356, allocations: 22.25 kB / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of SimCode: time 4.21e-07/1.356, allocations: 0 / 1.369 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of Templates: time 0.005751/1.361, allocations: 2.682 MB / 1.371 GB, free: 29.8 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches