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.00122/0.00122, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001222/0.001222, allocations: 191 kB / 17.29 MB, free: 5.516 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.501/2.501, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 77.34 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3541, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003508/0.3577, allocations: 1.937 MB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.3595, allocations: 1.115 MB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.3597, allocations: 7.938 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003549/0.36, allocations: 91.62 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.3603, allocations: 107.5 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.3608, allocations: 159.5 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.361, allocations: 207.5 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.3612, allocations: 49.66 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.3614, allocations: 103.5 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.3615, allocations: 99.59 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.881e-05/0.3616, allocations: 12 kB / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.3617, allocations: 55.92 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.593e-05/0.3618, allocations: 59.81 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.403e-05/0.3619, allocations: 95.41 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.3623, allocations: 267 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3623, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3623, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.3623, allocations: 4 kB / 1.031 GB, free: 13.69 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.0009045/0.3632, allocations: 0.5375 MB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3632, allocations: 8.031 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.89e-05/0.3633, allocations: 28.56 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.3637, allocations: 287.4 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.3638, allocations: 12 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.3638, allocations: 8 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.3641, allocations: 121.6 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3641, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.3641, allocations: 11.92 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3641, allocations: 3.984 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.3644, allocations: 85.42 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007213/0.3651, allocations: 460.3 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.3655, allocations: 126.6 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3656, allocations: 60.81 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.3657, allocations: 3.938 kB / 1.033 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.366, allocations: 123.3 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.863e-06/0.366, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0006405/0.3666, allocations: 244.6 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.3667, allocations: 71.33 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.367, allocations: 326.5 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.3671, allocations: 33.7 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3672, allocations: 136.4 kB / 1.034 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.615e-05/0.3672, allocations: 35.55 kB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.382e-05/0.3673, allocations: 61.59 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3675, allocations: 338.8 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.3677, allocations: 79.95 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.3679, allocations: 142 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/0.3683, allocations: 182.7 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3683, allocations: 3.938 kB / 1.034 GB, free: 9.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005484/0.3689, allocations: 277.2 kB / 1.035 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3689, allocations: 8.031 kB / 1.035 GB, free: 9.688 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3689, allocations: 4 kB / 1.035 GB, free: 9.684 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3689, allocations: 3.984 kB / 1.035 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.3691, allocations: 39.92 kB / 1.035 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.3692, allocations: 11.92 kB / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.3693, allocations: 19.89 kB / 1.035 GB, free: 9.609 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.3693, allocations: 12 kB / 1.035 GB, free: 9.598 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.0001683/0.3695, allocations: 157.8 kB / 1.035 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.3696, allocations: 23.75 kB / 1.035 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.738e-05/0.3696, allocations: 26.17 kB / 1.035 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3697, allocations: 3.938 kB / 1.035 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3697, allocations: 0 / 1.035 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.3697, allocations: 0 / 1.035 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009099/0.3706, allocations: 0.5566 MB / 1.035 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3706, allocations: 8 kB / 1.035 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.802e-05/0.3707, allocations: 15.92 kB / 1.035 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3707, allocations: 0 / 1.035 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.3707, allocations: 12 kB / 1.035 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3707, allocations: 3.984 kB / 1.035 GB, free: 8.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3708, allocations: 0 / 1.035 GB, free: 8.73 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.3712, allocations: 287.2 kB / 1.036 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 9.343e-05/0.3713, allocations: 108.8 kB / 1.036 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.3713, allocations: 0 / 1.036 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.3715, allocations: 15.98 kB / 1.036 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.3716, allocations: 19.97 kB / 1.036 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.3716, allocations: 7.938 kB / 1.036 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002131/0.3718, allocations: 210 kB / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3718, allocations: 0 / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003294/0.3721, allocations: 55.83 kB / 1.036 GB, free: 8.012 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.001088/0.3732, allocations: 428.9 kB / 1.037 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005045/0.3738, allocations: 193.3 kB / 1.037 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3738, allocations: 0 / 1.037 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.374, allocations: 69.97 kB / 1.037 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.3744, allocations: 52.11 kB / 1.037 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000756/0.3752, allocations: 400.3 kB / 1.037 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.3756, allocations: 0.748 MB / 1.038 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.338e-05/0.3757, allocations: 29.94 kB / 1.038 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.718e-05/0.3758, allocations: 27.42 kB / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of SimCode: time 5.11e-07/0.3758, allocations: 0 / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of Templates: time 0.006994/0.3828, allocations: 3.022 MB / 1.041 GB, free: 3.195 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 cvode -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