Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006898/0.006898, allocations: 101.8 kB / 15.88 MB, free: 5.867 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.001572/0.001572, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 67.88 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6743/0.6762, allocations: 140.4 MB / 0.9496 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002143/0.6784, allocations: 0.8973 MB / 0.9505 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.6799, allocations: 1.307 MB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.423e-05/0.6799, allocations: 5.031 kB / 0.9517 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.084e-05/0.68, allocations: 11.86 kB / 0.9518 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.547e-05/0.6801, allocations: 18.66 kB / 0.9518 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.6808, allocations: 289.5 kB / 0.952 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.681, allocations: 268.2 kB / 0.9523 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.6811, allocations: 35.86 kB / 0.9523 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.6813, allocations: 107.5 kB / 0.9524 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.6814, allocations: 85.91 kB / 0.9525 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.634e-05/0.6814, allocations: 20.75 kB / 0.9525 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.236e-05/0.6815, allocations: 28.64 kB / 0.9526 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.6816, allocations: 22.92 kB / 0.9526 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.6817, allocations: 95.14 kB / 0.9527 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001953/0.6819, allocations: 185.3 kB / 0.9529 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.6819, allocations: 0 / 0.9529 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.02e-07/0.6819, allocations: 1.125 kB / 0.9529 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.682, allocations: 0 / 0.9529 GB, free: 6.926 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006442/0.6826, allocations: 0.5282 MB / 0.9534 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.6827, allocations: 9.719 kB / 0.9534 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.6828, allocations: 30.42 kB / 0.9534 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.6829, allocations: 180.4 kB / 0.9536 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.6829, allocations: 13.38 kB / 0.9536 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/0.683, allocations: 23.25 kB / 0.9536 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.6831, allocations: 91.89 kB / 0.9537 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.6832, allocations: 0 / 0.9537 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.6832, allocations: 1.938 kB / 0.9537 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.6832, allocations: 2.156 kB / 0.9537 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.6833, allocations: 49.06 kB / 0.9538 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006491/0.684, allocations: 495.5 kB / 0.9542 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.6842, allocations: 74.8 kB / 0.9543 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.6843, allocations: 26.8 kB / 0.9543 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.6843, allocations: 4 kB / 0.9543 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.6845, allocations: 121.6 kB / 0.9544 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.6845, allocations: 3.938 kB / 0.9545 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003676/0.6849, allocations: 167 kB / 0.9546 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.6849, allocations: 54.59 kB / 0.9547 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.685, allocations: 169.2 kB / 0.9548 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.6851, allocations: 38.8 kB / 0.9549 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.6852, allocations: 109.3 kB / 0.955 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.6852, allocations: 25.33 kB / 0.955 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.6853, allocations: 74.14 kB / 0.9551 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.39e-05/0.6854, allocations: 325.6 kB / 0.9554 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.6856, allocations: 97.83 kB / 0.9555 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.6858, allocations: 146.4 kB / 0.9556 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.6861, allocations: 255.2 kB / 0.9558 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6861, allocations: 4 kB / 0.9559 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005918/0.6867, allocations: 395.3 kB / 0.9562 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/0.6868, allocations: 105.4 kB / 0.9563 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.6868, allocations: 2.125 kB / 0.9563 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.6868, allocations: 6.172 kB / 0.9563 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.687e-05/0.6869, allocations: 13.06 kB / 0.9564 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.6869, allocations: 7.359 kB / 0.9564 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.6874, allocations: 88.22 kB / 0.9564 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.6875, allocations: 25.36 kB / 0.9565 GB, free: 3.824 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0001108/0.6876, allocations: 135.8 kB / 0.9566 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.6876, allocations: 17.81 kB / 0.9566 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.6877, allocations: 20 kB / 0.9566 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.6877, allocations: 1.094 kB / 0.9566 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6877, allocations: 0 / 0.9566 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6877, allocations: 1.25 kB / 0.9566 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.6878, allocations: 219.3 kB / 0.9568 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6878, allocations: 1.312 kB / 0.9568 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.581e-05/0.6879, allocations: 7.5 kB / 0.9569 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.6879, allocations: 4.938 kB / 0.9569 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.6879, allocations: 5.156 kB / 0.9569 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.6879, allocations: 5.109 kB / 0.9569 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6879, allocations: 4 kB / 0.9569 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.6882, allocations: 163.8 kB / 0.957 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.6882, allocations: 92.11 kB / 0.9571 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.6882, allocations: 1.188 kB / 0.9571 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.277e-05/0.6883, allocations: 5.125 kB / 0.9571 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.6883, allocations: 9.391 kB / 0.9571 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.6883, allocations: 8.469 kB / 0.9571 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.453e-05/0.6884, allocations: 121.4 kB / 0.9573 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6884, allocations: 0 / 0.9573 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002736/0.6887, allocations: 51.86 kB / 0.9573 GB, free: 3.078 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001621/0.6889, allocations: 105.7 kB / 0.9574 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004483/0.6893, allocations: 380.2 kB / 0.9578 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.6893, allocations: 0 / 0.9578 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.821e-05/0.6894, allocations: 60.78 kB / 0.9578 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.6897, allocations: 24.48 kB / 0.9578 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004108/0.6901, allocations: 303.4 kB / 0.9581 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.6903, allocations: 0.7055 MB / 0.9588 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.6903, allocations: 23.67 kB / 0.9588 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.6903, allocations: 0 / 0.9588 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of Templates: time 0.004151/0.6945, allocations: 2.265 MB / 0.9611 GB, free: 0.5039 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches