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.001584/0.001585, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001803/0.001804, allocations: 195.2 kB / 16.14 MB, free: 6.719 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.425/2.425, allocations: 390.2 MB / 0.6642 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002214, allocations: 67.89 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8295/0.8317, allocations: 140.3 MB / 0.9489 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002101/0.8339, allocations: 0.8909 MB / 0.9498 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.8354, allocations: 1.318 MB / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.457e-05/0.8355, allocations: 1.375 kB / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.789e-05/0.8355, allocations: 5.312 kB / 0.9511 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.389e-05/0.8356, allocations: 17.22 kB / 0.9511 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007393/0.8364, allocations: 299.1 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.8366, allocations: 261.4 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.8368, allocations: 36.05 kB / 0.9517 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.8369, allocations: 103.8 kB / 0.9518 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.837, allocations: 85.7 kB / 0.9519 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.8371, allocations: 20.28 kB / 0.9519 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.8372, allocations: 29.28 kB / 0.9519 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.956e-05/0.8372, allocations: 22.92 kB / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.8373, allocations: 98.81 kB / 0.952 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.8376, allocations: 248.3 kB / 0.9523 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.8376, allocations: 0 / 0.9523 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.41e-07/0.8376, allocations: 0 / 0.9523 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.8376, allocations: 1.375 kB / 0.9523 GB, free: 6.715 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.0005909/0.8382, allocations: 0.5276 MB / 0.9528 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.8383, allocations: 13.53 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.617e-05/0.8384, allocations: 21.03 kB / 0.9528 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.8385, allocations: 188.9 kB / 0.953 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.8385, allocations: 16.97 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/0.8386, allocations: 19.75 kB / 0.953 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.8387, allocations: 92.73 kB / 0.9531 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.8388, allocations: 0 / 0.9531 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.8388, allocations: 5.531 kB / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.8388, allocations: 5 kB / 0.9531 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.8389, allocations: 42.55 kB / 0.9532 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006431/0.8396, allocations: 493.4 kB / 0.9536 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.8398, allocations: 79.92 kB / 0.9537 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.93e-05/0.8399, allocations: 34.78 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.8399, allocations: 0 / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.8401, allocations: 119.9 kB / 0.9539 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.8401, allocations: 1.188 kB / 0.9539 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003821/0.8405, allocations: 170.3 kB / 0.954 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.8405, allocations: 58.84 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.8407, allocations: 170.2 kB / 0.9542 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.8407, allocations: 34.48 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.27e-05/0.8408, allocations: 104.8 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.8408, allocations: 24.86 kB / 0.9544 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.8409, allocations: 74.67 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.841, allocations: 325.8 kB / 0.9548 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.8412, allocations: 93.94 kB / 0.9549 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.8415, allocations: 152.4 kB / 0.955 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002762/0.8417, allocations: 261.3 kB / 0.9553 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.8418, allocations: 1.125 kB / 0.9553 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006491/0.8424, allocations: 394.4 kB / 0.9556 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.719e-05/0.8425, allocations: 105.1 kB / 0.9557 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.8425, allocations: 1.406 kB / 0.9557 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.8425, allocations: 1.719 kB / 0.9557 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.014e-05/0.8426, allocations: 17.91 kB / 0.9558 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.8426, allocations: 2.75 kB / 0.9558 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.8431, allocations: 87.67 kB / 0.9558 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/0.8431, allocations: 22.17 kB / 0.9559 GB, free: 3.609 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.0001097/0.8433, allocations: 136.4 kB / 0.956 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.032e-05/0.8433, allocations: 22.52 kB / 0.956 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.8433, allocations: 12.81 kB / 0.956 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.8433, allocations: 0 / 0.956 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.8433, allocations: 0 / 0.956 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.8433, allocations: 0 / 0.956 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.8435, allocations: 223.2 kB / 0.9562 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.8435, allocations: 1.188 kB / 0.9562 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.043e-05/0.8436, allocations: 7.125 kB / 0.9562 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.8436, allocations: 4.844 kB / 0.9563 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.8436, allocations: 10.75 kB / 0.9563 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.8436, allocations: 0 / 0.9563 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.8436, allocations: 3.938 kB / 0.9563 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.8438, allocations: 165.9 kB / 0.9564 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.8439, allocations: 100.4 kB / 0.9565 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.8439, allocations: 1.844 kB / 0.9565 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.924e-05/0.8439, allocations: 0 / 0.9565 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.844, allocations: 17.33 kB / 0.9565 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.844, allocations: 3.594 kB / 0.9565 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.94e-05/0.8441, allocations: 126.6 kB / 0.9567 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8441, allocations: 0 / 0.9567 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002694/0.8443, allocations: 47.5 kB / 0.9567 GB, free: 2.855 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.0001558/0.8445, allocations: 106.4 kB / 0.9568 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004742/0.845, allocations: 384.8 kB / 0.9572 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.845, allocations: 4.125 kB / 0.9572 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.149e-05/0.8451, allocations: 46.8 kB / 0.9572 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.8454, allocations: 27.78 kB / 0.9573 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004521/0.8458, allocations: 285.3 kB / 0.9575 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.846, allocations: 0.705 MB / 0.9582 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.353e-05/0.846, allocations: 17.08 kB / 0.9582 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.8461, allocations: 14.59 kB / 0.9582 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8461, allocations: 0 / 0.9582 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of Templates: time 0.006258/0.8523, allocations: 2.665 MB / 0.9608 GB, free: 132 kB / 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/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