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.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.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.001824/0.001824, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002213/0.002213, allocations: 195.7 kB / 16.26 MB, free: 6.629 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.488/1.488, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.478/2.478, allocations: 390.2 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 71.89 kB / 0.812 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8381/0.8397, allocations: 140.4 MB / 0.9491 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002243/0.842, allocations: 0.8817 MB / 0.95 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.8435, allocations: 1.287 MB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.377e-05/0.8436, allocations: 1.375 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.78e-05/0.8436, allocations: 9.297 kB / 0.9512 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.8437, allocations: 17.23 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007869/0.8445, allocations: 296.5 kB / 0.9515 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000329/0.8449, allocations: 304.5 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.845, allocations: 41.36 kB / 0.9519 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.8452, allocations: 123.5 kB / 0.952 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.8453, allocations: 90.92 kB / 0.9521 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.8454, allocations: 25.69 kB / 0.9521 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.8455, allocations: 44 kB / 0.9521 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.088e-05/0.8455, allocations: 22.23 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.8457, allocations: 107.8 kB / 0.9523 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.846, allocations: 258.2 kB / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.846, allocations: 0 / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.074e-06/0.846, allocations: 0 / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.675e-06/0.846, allocations: 0 / 0.9525 GB, free: 6.539 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.0006747/0.8467, allocations: 0.5279 MB / 0.953 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.8467, allocations: 9.75 kB / 0.953 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.123e-05/0.8468, allocations: 22.31 kB / 0.9531 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.847, allocations: 182.4 kB / 0.9532 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.847, allocations: 14.22 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.562e-05/0.8471, allocations: 31.89 kB / 0.9533 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.8473, allocations: 82.36 kB / 0.9534 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.8473, allocations: 0 / 0.9534 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.8473, allocations: 5.5 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.8473, allocations: 2.625 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.8474, allocations: 48.88 kB / 0.9534 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006924/0.8481, allocations: 495.1 kB / 0.9539 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.8484, allocations: 78.83 kB / 0.954 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.113e-05/0.8485, allocations: 30.25 kB / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.8485, allocations: 1.344 kB / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.8487, allocations: 122.4 kB / 0.9541 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.814e-06/0.8488, allocations: 0 / 0.9541 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0004224/0.8492, allocations: 174.9 kB / 0.9543 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.8492, allocations: 58.64 kB / 0.9543 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.8494, allocations: 165.3 kB / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/0.8494, allocations: 35.17 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.695e-05/0.8495, allocations: 109.3 kB / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.8496, allocations: 24.77 kB / 0.9546 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.8497, allocations: 81.78 kB / 0.9547 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.478e-05/0.8498, allocations: 322.2 kB / 0.955 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.85, allocations: 93.11 kB / 0.9551 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.8502, allocations: 147 kB / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.8505, allocations: 255.3 kB / 0.9555 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.8505, allocations: 0 / 0.9555 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006135/0.8511, allocations: 398 kB / 0.9559 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.165e-05/0.8512, allocations: 105.6 kB / 0.956 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.8512, allocations: 1.125 kB / 0.956 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.8512, allocations: 10.33 kB / 0.956 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.8513, allocations: 17.33 kB / 0.956 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.8513, allocations: 2.75 kB / 0.956 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.8518, allocations: 88.19 kB / 0.9561 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.8519, allocations: 18.17 kB / 0.9561 GB, free: 3.438 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.000129/0.852, allocations: 135.2 kB / 0.9562 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.852, allocations: 17.12 kB / 0.9563 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.8521, allocations: 16 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.8521, allocations: 1.469 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8521, allocations: 1.094 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.8521, allocations: 7.984 kB / 0.9563 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.8523, allocations: 216.3 kB / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.8523, allocations: 0 / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.593e-05/0.8524, allocations: 8.875 kB / 0.9565 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.8524, allocations: 3.938 kB / 0.9565 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.8524, allocations: 9.422 kB / 0.9565 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.8524, allocations: 1.562 kB / 0.9565 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8524, allocations: 0 / 0.9565 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.8526, allocations: 166.5 kB / 0.9567 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.8527, allocations: 91.17 kB / 0.9568 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.8527, allocations: 6.125 kB / 0.9568 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.185e-05/0.8527, allocations: 7.938 kB / 0.9568 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.816e-05/0.8528, allocations: 9.641 kB / 0.9568 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.8528, allocations: 11.95 kB / 0.9568 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.648e-05/0.8529, allocations: 113.8 kB / 0.9569 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8529, allocations: 0 / 0.9569 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003018/0.8532, allocations: 52.45 kB / 0.957 GB, free: 2.688 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.0001882/0.8534, allocations: 108.9 kB / 0.9571 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005678/0.8539, allocations: 393.8 kB / 0.9574 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.854, allocations: 1.156 kB / 0.9574 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.711e-05/0.8541, allocations: 51.2 kB / 0.9575 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.8544, allocations: 32.3 kB / 0.9575 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/0.8549, allocations: 274.2 kB / 0.9578 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.855, allocations: 0.718 MB / 0.9585 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.216e-05/0.8551, allocations: 8.656 kB / 0.9585 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.8551, allocations: 14.12 kB / 0.9585 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of SimCode: time 3.4e-07/0.8551, allocations: 0 / 0.9585 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of Templates: time 0.006151/0.8613, allocations: 2.789 MB / 0.9612 GB, free: 15.89 MB / 0.7325 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/jenkins/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