Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 101.7 kB / 16.35 MB, free: 6.289 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.001442/0.001442, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.504/2.504, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.44 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3392, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.004362/0.3436, allocations: 1.933 MB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3457, allocations: 1.127 MB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.3459, allocations: 0 / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004222/0.3463, allocations: 95.56 kB / 1.03 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003524/0.3467, allocations: 99.58 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00054/0.3473, allocations: 159.5 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003668/0.3476, allocations: 207.5 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3478, allocations: 45.64 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.348, allocations: 103.6 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.3481, allocations: 103.5 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.3482, allocations: 19.92 kB / 1.031 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.3484, allocations: 59.97 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.281e-05/0.3485, allocations: 55.83 kB / 1.031 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.766e-05/0.3486, allocations: 87.41 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.3489, allocations: 271 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3489, allocations: 0 / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3489, allocations: 0 / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.3489, allocations: 0 / 1.031 GB, free: 13.71 MB / 0.8106 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.0008859/0.3498, allocations: 0.5414 MB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3499, allocations: 12.02 kB / 1.032 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.549e-05/0.3499, allocations: 28.56 kB / 1.032 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.3503, allocations: 283.4 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.3504, allocations: 11.98 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.3504, allocations: 12 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.3507, allocations: 113.6 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3507, allocations: 0 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.3507, allocations: 7.938 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.3507, allocations: 4 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.351, allocations: 88.98 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000746/0.3517, allocations: 448.4 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.3521, allocations: 134.6 kB / 1.033 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3522, allocations: 56.83 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3523, allocations: 7.938 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.3525, allocations: 119.3 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.3526, allocations: 0 / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0006355/0.3532, allocations: 260.4 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.3533, allocations: 55.41 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.3536, allocations: 326.5 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3537, allocations: 37.7 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3538, allocations: 132.4 kB / 1.034 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/0.3538, allocations: 39.55 kB / 1.034 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.873e-05/0.3539, allocations: 65.59 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.3541, allocations: 330.8 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.3543, allocations: 87.95 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.3545, allocations: 138.1 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3549, allocations: 190.3 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3549, allocations: 3.938 kB / 1.034 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005472/0.3555, allocations: 274.8 kB / 1.035 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3555, allocations: 8 kB / 1.035 GB, free: 9.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3555, allocations: 4.156 kB / 1.035 GB, free: 9.699 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3555, allocations: 4 kB / 1.035 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.3558, allocations: 51.84 kB / 1.035 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3558, allocations: 0 / 1.035 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.3559, allocations: 23.89 kB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.356, allocations: 8 kB / 1.035 GB, free: 9.613 MB / 0.8106 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 (decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.3561, allocations: 157.7 kB / 1.035 GB, free: 9.449 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3562, allocations: 27.73 kB / 1.035 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.3562, allocations: 26.19 kB / 1.035 GB, free: 9.398 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.3562, allocations: 7.984 kB / 1.035 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.3562, allocations: 0 / 1.035 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3563, allocations: 7.922 kB / 1.035 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008038/0.3571, allocations: 0.5527 MB / 1.035 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3571, allocations: 0 / 1.035 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.374e-05/0.3572, allocations: 19.98 kB / 1.035 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3572, allocations: 0 / 1.035 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.3572, allocations: 0 / 1.035 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3572, allocations: 4 kB / 1.035 GB, free: 8.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3572, allocations: 0 / 1.035 GB, free: 8.75 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.3577, allocations: 291.1 kB / 1.036 GB, free: 8.449 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.677e-05/0.3577, allocations: 104.8 kB / 1.036 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.3578, allocations: 8 kB / 1.036 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.3579, allocations: 11.98 kB / 1.036 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.391e-05/0.358, allocations: 19.97 kB / 1.036 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.358, allocations: 8 kB / 1.036 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001935/0.3582, allocations: 205.9 kB / 1.036 GB, free: 8.086 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3582, allocations: 4 kB / 1.036 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003247/0.3586, allocations: 55.84 kB / 1.036 GB, free: 8.027 MB / 0.8106 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009906/0.3596, allocations: 427.6 kB / 1.037 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004696/0.3601, allocations: 187.7 kB / 1.037 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3601, allocations: 0 / 1.037 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.3603, allocations: 71.89 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.3607, allocations: 53.78 kB / 1.037 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007304/0.3614, allocations: 400.4 kB / 1.037 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.3618, allocations: 0.744 MB / 1.038 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001009/0.3619, allocations: 33.95 kB / 1.038 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.362, allocations: 31.42 kB / 1.038 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.362, allocations: 0 / 1.038 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of Templates: time 0.007268/0.3692, allocations: 3.023 MB / 1.041 GB, free: 3.211 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches