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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001223/0.001223, allocations: 192.4 kB / 16.14 MB, free: 6.734 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.423/1.423, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.442/2.442, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 67.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8368/0.838, allocations: 140.3 MB / 0.9489 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003649/0.8417, allocations: 1.963 MB / 0.9509 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.8434, allocations: 1.113 MB / 0.9519 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.8435, allocations: 2.406 kB / 0.9519 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004082/0.844, allocations: 85.92 kB / 0.952 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002425/0.8442, allocations: 87.91 kB / 0.9521 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.8446, allocations: 131.2 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.8449, allocations: 201 kB / 0.9524 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.8451, allocations: 46.05 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.8453, allocations: 92.58 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.8454, allocations: 97.53 kB / 0.9527 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.8454, allocations: 6.906 kB / 0.9527 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.8456, allocations: 56.52 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.8457, allocations: 55.33 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.158e-05/0.8458, allocations: 91.83 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.8461, allocations: 258.5 kB / 0.9531 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8461, allocations: 5.031 kB / 0.9531 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.72e-07/0.8461, allocations: 0 / 0.9531 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.8461, allocations: 3.938 kB / 0.9531 GB, free: 5.914 MB / 0.7169 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.0008622/0.847, allocations: 0.5349 MB / 0.9536 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.847, allocations: 13.75 kB / 0.9536 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.8471, allocations: 23.62 kB / 0.9537 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.8474, allocations: 294 kB / 0.954 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.8475, allocations: 8.719 kB / 0.954 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.8475, allocations: 11.84 kB / 0.954 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.8478, allocations: 112.5 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.8478, allocations: 0 / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.8479, allocations: 13.41 kB / 0.9541 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.8479, allocations: 5.469 kB / 0.9541 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.8481, allocations: 90.3 kB / 0.9542 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000676/0.8488, allocations: 447.4 kB / 0.9546 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.8492, allocations: 128.2 kB / 0.9547 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.8493, allocations: 59.59 kB / 0.9548 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.8494, allocations: 1.406 kB / 0.9548 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.8497, allocations: 135.4 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/0.8497, allocations: 0 / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0006671/0.8503, allocations: 245.3 kB / 0.9552 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.8504, allocations: 54.38 kB / 0.9552 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.8507, allocations: 338.1 kB / 0.9555 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.8507, allocations: 29.7 kB / 0.9556 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.8508, allocations: 134.7 kB / 0.9557 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.8508, allocations: 42.84 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.361e-05/0.8509, allocations: 55.23 kB / 0.9558 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.851, allocations: 337.2 kB / 0.9561 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.8512, allocations: 83.69 kB / 0.9562 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.8514, allocations: 130.9 kB / 0.9563 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/0.8518, allocations: 186.3 kB / 0.9565 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.8518, allocations: 3.938 kB / 0.9565 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005346/0.8523, allocations: 282.5 kB / 0.9568 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.8524, allocations: 5.75 kB / 0.9568 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.8524, allocations: 10.2 kB / 0.9568 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.8524, allocations: 1.906 kB / 0.9568 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.8526, allocations: 42.53 kB / 0.9568 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.8526, allocations: 2.125 kB / 0.9568 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.8528, allocations: 27.23 kB / 0.9568 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.8528, allocations: 15.48 kB / 0.9569 GB, free: 2.941 MB / 0.7169 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.0001308/0.853, allocations: 157.8 kB / 0.957 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.853, allocations: 29.25 kB / 0.957 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.8531, allocations: 26.58 kB / 0.9571 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.8531, allocations: 6.156 kB / 0.9571 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.8531, allocations: 0 / 0.9571 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8531, allocations: 0 / 0.9571 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.8538, allocations: 0.5468 MB / 0.9576 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8538, allocations: 4 kB / 0.9576 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.833e-05/0.8539, allocations: 18.55 kB / 0.9576 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.8539, allocations: 0 / 0.9576 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.854, allocations: 6.734 kB / 0.9576 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.854, allocations: 0 / 0.9576 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.854, allocations: 1.375 kB / 0.9576 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/0.8544, allocations: 303.8 kB / 0.9579 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.8544, allocations: 101 kB / 0.958 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.8545, allocations: 9.359 kB / 0.958 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.8546, allocations: 12.23 kB / 0.958 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.8547, allocations: 14.86 kB / 0.958 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.8547, allocations: 12.11 kB / 0.9581 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001726/0.8549, allocations: 208.9 kB / 0.9583 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8549, allocations: 0 / 0.9583 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003318/0.8553, allocations: 48.64 kB / 0.9583 GB, free: 1.793 MB / 0.7169 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.00106/0.8563, allocations: 419.3 kB / 0.9587 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004812/0.8568, allocations: 186.8 kB / 0.9589 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8568, allocations: 0 / 0.9589 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.857, allocations: 82.41 kB / 0.959 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.8575, allocations: 49.89 kB / 0.959 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007165/0.8582, allocations: 446.7 kB / 0.9594 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/0.8584, allocations: 0.7506 MB / 0.9602 GB, free: 416 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001136/0.8585, allocations: 37.8 kB / 0.9602 GB, free: 396 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.102e-05/0.8586, allocations: 29.92 kB / 0.9602 GB, free: 380 kB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8586, allocations: 0 / 0.9602 GB, free: 380 kB / 0.7169 GB Notification: Performance of Templates: time 0.007343/0.866, allocations: 2.836 MB / 0.963 GB, free: 14.97 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches