Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_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_latest_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.001341/0.001341, allocations: 102.2 kB / 16.4 MB, free: 6.461 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.001312/0.001312, allocations: 192.2 kB / 17.34 MB, free: 5.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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.46/2.46, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 67.89 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7364/0.7377, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001971/0.7397, allocations: 0.8146 MB / 1.209 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.7413, allocations: 1.299 MB / 1.211 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.424e-05/0.7414, allocations: 0 / 1.211 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.233e-05/0.7415, allocations: 7.875 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.005e-05/0.7416, allocations: 23.78 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008548/0.7425, allocations: 320 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.7428, allocations: 315.5 kB / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.743, allocations: 41.42 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.7431, allocations: 115.7 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.7433, allocations: 111.6 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/0.7434, allocations: 31.98 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.7435, allocations: 35.98 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.718e-05/0.7436, allocations: 27.92 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.7437, allocations: 95.67 kB / 1.212 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.744, allocations: 267.1 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.744, allocations: 0 / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.523e-06/0.744, allocations: 0 / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.7441, allocations: 0 / 1.212 GB, free: 10.16 MB / 0.9356 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.0007616/0.7448, allocations: 0.5214 MB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.7449, allocations: 16.02 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.966e-05/0.745, allocations: 20.78 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.7452, allocations: 180.7 kB / 1.213 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.7452, allocations: 20.12 kB / 1.213 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.718e-05/0.7453, allocations: 20 kB / 1.213 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.7454, allocations: 89.64 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.7455, allocations: 0 / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.7455, allocations: 4 kB / 1.213 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.7455, allocations: 7.938 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.7456, allocations: 51.91 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006576/0.7463, allocations: 488.1 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.7465, allocations: 86.59 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.179e-05/0.7466, allocations: 24.92 kB / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.7466, allocations: 0 / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.7468, allocations: 123.2 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.7468, allocations: 0 / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0003457/0.7472, allocations: 169.1 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.7472, allocations: 55.41 kB / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.7474, allocations: 171.6 kB / 1.214 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.7474, allocations: 33.7 kB / 1.214 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.7475, allocations: 108 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.7475, allocations: 27.7 kB / 1.214 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.7476, allocations: 69.67 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.7478, allocations: 326.8 kB / 1.214 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.748, allocations: 95.95 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.7482, allocations: 149.9 kB / 1.215 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.7485, allocations: 252.9 kB / 1.215 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.7485, allocations: 0 / 1.215 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000594/0.7491, allocations: 406.2 kB / 1.215 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.154e-05/0.7492, allocations: 97.09 kB / 1.215 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.7492, allocations: 4 kB / 1.215 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.7492, allocations: 4.172 kB / 1.215 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.653e-05/0.7493, allocations: 20 kB / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.7493, allocations: 3.984 kB / 1.215 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.7497, allocations: 83.66 kB / 1.215 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.7498, allocations: 23.98 kB / 1.215 GB, free: 6.137 MB / 0.9356 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.0001248/0.7499, allocations: 136.4 kB / 1.216 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.75, allocations: 15.84 kB / 1.216 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.75, allocations: 16.83 kB / 1.216 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.75, allocations: 4 kB / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.75, allocations: 0 / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.75, allocations: 0 / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.7502, allocations: 217.5 kB / 1.216 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7502, allocations: 0 / 1.216 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.707e-05/0.7503, allocations: 23.8 kB / 1.216 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.7503, allocations: 4 kB / 1.216 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.7503, allocations: 0 / 1.216 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.7503, allocations: 4 kB / 1.216 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.7503, allocations: 0 / 1.216 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.7505, allocations: 164.9 kB / 1.216 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.7506, allocations: 92.86 kB / 1.216 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.7506, allocations: 3.984 kB / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.422e-05/0.7507, allocations: 8 kB / 1.216 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.683e-05/0.7507, allocations: 15.98 kB / 1.216 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.7507, allocations: 4 kB / 1.216 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.919e-05/0.7508, allocations: 119.2 kB / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7508, allocations: 0 / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002773/0.7511, allocations: 48 kB / 1.216 GB, free: 5.172 MB / 0.9356 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.0001571/0.7512, allocations: 114.7 kB / 1.216 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004814/0.7517, allocations: 386.4 kB / 1.217 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7517, allocations: 3.938 kB / 1.217 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.631e-05/0.7518, allocations: 55.92 kB / 1.217 GB, free: 4.582 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.7521, allocations: 27.91 kB / 1.217 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004514/0.7526, allocations: 269.2 kB / 1.217 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.7528, allocations: 0.7124 MB / 1.218 GB, free: 3.527 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.7529, allocations: 19.44 kB / 1.218 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of SimCode: time 2e-07/0.7529, allocations: 0 / 1.218 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of Templates: time 0.004045/0.7569, allocations: 2.28 MB / 1.22 GB, free: 1.246 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches