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.001062/0.001061, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007481/0.007481, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.507/1.507, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.527/2.527, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004493, allocations: 8 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9117/0.9122, allocations: 142.4 MB / 0.9551 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0008738/0.9131, allocations: 0.5384 MB / 0.9556 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.9145, allocations: 1.304 MB / 0.9569 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.561e-05/0.9146, allocations: 5.469 kB / 0.9569 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.9146, allocations: 7.922 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.007e-05/0.9147, allocations: 18.2 kB / 0.9569 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006922/0.9154, allocations: 297.9 kB / 0.9572 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000204/0.9156, allocations: 256.8 kB / 0.9574 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.9157, allocations: 44.25 kB / 0.9575 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.9158, allocations: 92.78 kB / 0.9575 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.9159, allocations: 86.28 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.916, allocations: 13.03 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.202e-05/0.9161, allocations: 31.61 kB / 0.9577 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.9161, allocations: 10.75 kB / 0.9577 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.9162, allocations: 122.9 kB / 0.9578 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.9164, allocations: 241.4 kB / 0.958 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9165, allocations: 0 / 0.958 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9165, allocations: 5.375 kB / 0.958 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.9165, allocations: 0 / 0.958 GB, free: 5.422 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.0004465/0.9169, allocations: 492 kB / 0.9585 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.917, allocations: 9.875 kB / 0.9585 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.346e-05/0.917, allocations: 25.31 kB / 0.9585 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.958e-05/0.9171, allocations: 180.1 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.9172, allocations: 13.5 kB / 0.9587 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.9172, allocations: 23.47 kB / 0.9587 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.9174, allocations: 92.89 kB / 0.9588 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.9174, allocations: 0 / 0.9588 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.9174, allocations: 4 kB / 0.9588 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.9174, allocations: 2.5 kB / 0.9588 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.9176, allocations: 49.86 kB / 0.9589 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006718/0.9182, allocations: 498.2 kB / 0.9594 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.9185, allocations: 67.56 kB / 0.9594 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.26e-05/0.9186, allocations: 34.53 kB / 0.9595 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.9186, allocations: 5.375 kB / 0.9595 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.9187, allocations: 125 kB / 0.9596 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.9188, allocations: 1.375 kB / 0.9596 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000343/0.9191, allocations: 166.8 kB / 0.9597 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/0.9191, allocations: 54.16 kB / 0.9598 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.9193, allocations: 165.1 kB / 0.96 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.9193, allocations: 39.19 kB / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.605e-05/0.9194, allocations: 113.7 kB / 0.9601 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.9194, allocations: 29.11 kB / 0.9601 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.603e-05/0.9195, allocations: 34.08 kB / 0.9602 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.287e-05/0.9195, allocations: 326.9 kB / 0.9605 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.9197, allocations: 97.44 kB / 0.9606 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.9199, allocations: 141 kB / 0.9607 GB, free: 3 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.9202, allocations: 247.1 kB / 0.9609 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9202, allocations: 0 / 0.9609 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006083/0.9208, allocations: 407.4 kB / 0.9613 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.631e-05/0.9209, allocations: 105 kB / 0.9614 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.9209, allocations: 1.844 kB / 0.9614 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.9209, allocations: 1.875 kB / 0.9614 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.194e-05/0.921, allocations: 21.19 kB / 0.9614 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.921, allocations: 6.188 kB / 0.9615 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006165/0.9216, allocations: 125 kB / 0.9616 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.9217, allocations: 18.2 kB / 0.9616 GB, free: 2.352 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.0001333/0.9218, allocations: 127.3 kB / 0.9617 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.9218, allocations: 21.72 kB / 0.9617 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.109e-05/0.9219, allocations: 11.84 kB / 0.9617 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.9219, allocations: 9.953 kB / 0.9618 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.9219, allocations: 0 / 0.9618 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.9219, allocations: 1.031 kB / 0.9618 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.9221, allocations: 211.4 kB / 0.962 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.9221, allocations: 1 kB / 0.962 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.093e-05/0.9222, allocations: 19.83 kB / 0.962 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.9222, allocations: 4.844 kB / 0.962 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.9222, allocations: 1.031 kB / 0.962 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.9222, allocations: 1 kB / 0.962 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9222, allocations: 1.094 kB / 0.962 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.9225, allocations: 164.6 kB / 0.9621 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.9225, allocations: 89.17 kB / 0.9622 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.9226, allocations: 9 kB / 0.9622 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.362e-05/0.9226, allocations: 5.109 kB / 0.9622 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.9227, allocations: 12.52 kB / 0.9622 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.9227, allocations: 4.719 kB / 0.9623 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.012e-05/0.9228, allocations: 121.1 kB / 0.9624 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9228, allocations: 0 / 0.9624 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003219/0.9231, allocations: 56.19 kB / 0.9624 GB, free: 1.605 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.0002416/0.9234, allocations: 111.4 kB / 0.9625 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006019/0.924, allocations: 384.5 kB / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.924, allocations: 0 / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.9241, allocations: 54.5 kB / 0.9629 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.9244, allocations: 25.36 kB / 0.963 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005474/0.925, allocations: 286.6 kB / 0.9632 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.9252, allocations: 0.7053 MB / 0.9639 GB, free: 248 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.616e-05/0.9253, allocations: 13.33 kB / 0.9639 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.9253, allocations: 18.81 kB / 0.964 GB, free: 232 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.9253, allocations: 0 / 0.964 GB, free: 232 kB / 0.7169 GB Notification: Performance of Templates: time 0.006332/0.9316, allocations: 2.66 MB / 0.9666 GB, free: 14.88 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