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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001236/0.001236, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001211/0.001211, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.344/1.344, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.63/2.63, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 73.58 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7228/0.7247, allocations: 162.2 MB / 1.083 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001874/0.7266, allocations: 0.8301 MB / 1.084 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.7279, allocations: 1.279 MB / 1.085 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-05/0.728, allocations: 5.25 kB / 1.085 GB, free: 208 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.478e-05/0.728, allocations: 17.78 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.657e-05/0.7281, allocations: 24.48 kB / 1.085 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.7288, allocations: 315.5 kB / 1.085 GB, free: 16 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.7292, allocations: 308.9 kB / 1.086 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.7293, allocations: 47.02 kB / 1.086 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.7295, allocations: 109.3 kB / 1.086 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.7296, allocations: 94.98 kB / 1.086 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.7297, allocations: 25.72 kB / 1.086 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.558e-05/0.7298, allocations: 40.16 kB / 1.086 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.577e-05/0.7298, allocations: 26.22 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.7299, allocations: 101.2 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.7303, allocations: 265.7 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.7303, allocations: 0 / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of FrontEnd: time 4.048e-06/0.7303, allocations: 1.469 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.7303, allocations: 7.938 kB / 1.086 GB, free: 15.61 MB / 0.8419 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.0006457/0.7309, allocations: 0.5216 MB / 1.087 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.731, allocations: 9.984 kB / 1.087 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.7311, allocations: 17.19 kB / 1.087 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.7312, allocations: 177.2 kB / 1.087 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.7312, allocations: 18.78 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.7313, allocations: 23.84 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.7315, allocations: 93.08 kB / 1.087 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.7315, allocations: 3.938 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.7315, allocations: 5.656 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.7315, allocations: 1.656 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.865e-05/0.7316, allocations: 47.55 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006924/0.7323, allocations: 0.4884 MB / 1.088 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.7325, allocations: 74.09 kB / 1.088 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.567e-05/0.7326, allocations: 29.27 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.7326, allocations: 1.781 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.7328, allocations: 115.6 kB / 1.088 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.7328, allocations: 0 / 1.088 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0003613/0.7332, allocations: 168.3 kB / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.7332, allocations: 59.23 kB / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.7334, allocations: 166.5 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.7334, allocations: 40.38 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.7335, allocations: 112.7 kB / 1.088 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.7336, allocations: 21.52 kB / 1.088 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.7337, allocations: 75.42 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.7339, allocations: 327 kB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.7341, allocations: 99.41 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.7343, allocations: 141 kB / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.7346, allocations: 257.4 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.7347, allocations: 0 / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000636/0.7353, allocations: 395.1 kB / 1.09 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.78e-05/0.7354, allocations: 106.7 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7354, allocations: 1.094 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.7354, allocations: 8.125 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.214e-05/0.7355, allocations: 10.77 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.7355, allocations: 11.61 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005009/0.736, allocations: 89.14 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.736, allocations: 17.72 kB / 1.09 GB, free: 12.86 MB / 0.8419 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.0001351/0.7362, allocations: 138.1 kB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.7362, allocations: 13.89 kB / 1.09 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.7363, allocations: 16.52 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.7363, allocations: 2.328 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7363, allocations: 1.344 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.7363, allocations: 0.7031 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.7365, allocations: 221.2 kB / 1.09 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.7365, allocations: 1.875 kB / 1.09 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.574e-05/0.7365, allocations: 16.53 kB / 1.09 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.7366, allocations: 5.344 kB / 1.09 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.7366, allocations: 6.469 kB / 1.09 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.7366, allocations: 1.125 kB / 1.09 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7366, allocations: 0 / 1.09 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.7368, allocations: 160.9 kB / 1.09 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/0.7369, allocations: 93.22 kB / 1.091 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.7369, allocations: 6.25 kB / 1.091 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.475e-05/0.7369, allocations: 10.55 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.737, allocations: 7.531 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.737, allocations: 9.781 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.119e-05/0.7371, allocations: 119 kB / 1.091 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7371, allocations: 0 / 1.091 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002692/0.7374, allocations: 53.47 kB / 1.091 GB, free: 12.16 MB / 0.8419 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.0001428/0.7375, allocations: 110.6 kB / 1.091 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005311/0.7381, allocations: 394.4 kB / 1.091 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7381, allocations: 1.094 kB / 1.091 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.182e-05/0.7382, allocations: 52.47 kB / 1.091 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.7384, allocations: 34.77 kB / 1.091 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004461/0.7389, allocations: 272.1 kB / 1.092 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.7392, allocations: 0.7113 MB / 1.092 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.368e-05/0.7393, allocations: 16.45 kB / 1.092 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.7393, allocations: 0 / 1.092 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.004441/0.7437, allocations: 2.267 MB / 1.094 GB, free: 10.61 MB / 0.8419 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=400 -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