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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001547/0.001548, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001413/0.001413, allocations: 192.1 kB / 17.31 MB, free: 5.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.403/1.403, 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.0-master/package.mo): time 2.658/2.658, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 68.17 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4216, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002313/0.4239, allocations: 0.8246 MB / 1.028 GB, free: 1.199 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.4256, allocations: 1.292 MB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.284e-05/0.4257, allocations: 4 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.72e-05/0.4257, allocations: 11.86 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.022e-05/0.4258, allocations: 23.72 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008129/0.4267, allocations: 329.2 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003483/0.427, allocations: 311.4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.4272, allocations: 41.41 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.4273, allocations: 111.8 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.4275, allocations: 119.6 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.4275, allocations: 24 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.689e-05/0.4276, allocations: 43.98 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.258e-05/0.4277, allocations: 19.92 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.4278, allocations: 107.7 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.4281, allocations: 267 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4281, allocations: 0 / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.934e-06/0.4281, allocations: 0 / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.4281, allocations: 0 / 1.03 GB, free: 14.51 MB / 0.8106 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.0006739/0.4288, allocations: 0.5236 MB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.4289, allocations: 8.031 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.195e-05/0.4289, allocations: 24.69 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.4291, allocations: 184.7 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.4291, allocations: 12.38 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.4292, allocations: 23.88 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.4294, allocations: 89.64 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4294, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.4294, allocations: 8 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4294, allocations: 0 / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.672e-05/0.4295, allocations: 43.98 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007319/0.4302, allocations: 0.4923 MB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.4305, allocations: 70.61 kB / 1.032 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.548e-05/0.4306, allocations: 28.86 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.4306, allocations: 4 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.4308, allocations: 123.1 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.4308, allocations: 4 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003523/0.4312, allocations: 161.6 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.4312, allocations: 59.34 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.4314, allocations: 164.1 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.4314, allocations: 33.7 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.4315, allocations: 108 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.4316, allocations: 35.55 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.4317, allocations: 73.67 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.4318, allocations: 326.8 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.432, allocations: 95.94 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.4323, allocations: 143.6 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.4326, allocations: 265.1 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4326, allocations: 0 / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006/0.4332, allocations: 394.4 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.54e-05/0.4333, allocations: 105 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4333, allocations: 0 / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.4333, allocations: 4 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.585e-05/0.4334, allocations: 11.94 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.4334, allocations: 4 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.4338, allocations: 91.92 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.606e-05/0.4339, allocations: 19.98 kB / 1.034 GB, free: 10.49 MB / 0.8106 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.0001348/0.434, allocations: 130.6 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.171e-05/0.434, allocations: 15.75 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.4341, allocations: 12.84 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4341, allocations: 4 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.4341, allocations: 7.922 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.4341, allocations: 0 / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.4343, allocations: 217.6 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4343, allocations: 0 / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.539e-05/0.4344, allocations: 11.98 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4344, allocations: 3.938 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.4344, allocations: 4 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4344, allocations: 0 / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.4344, allocations: 0 / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.4347, allocations: 168.2 kB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.4347, allocations: 92.94 kB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.4348, allocations: 7.938 kB / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.19e-05/0.4348, allocations: 7.984 kB / 1.034 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.4348, allocations: 11.98 kB / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.4349, allocations: 4 kB / 1.034 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.107e-05/0.4349, allocations: 118.3 kB / 1.035 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4349, allocations: 7.875 kB / 1.035 GB, free: 9.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002655/0.4352, allocations: 59.84 kB / 1.035 GB, free: 9.531 MB / 0.8106 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.0001641/0.4354, allocations: 103.2 kB / 1.035 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004842/0.4359, allocations: 390 kB / 1.035 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4359, allocations: 0 / 1.035 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.177e-05/0.436, allocations: 47.98 kB / 1.035 GB, free: 8.957 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.4363, allocations: 34.08 kB / 1.035 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004601/0.4367, allocations: 239.6 kB / 1.035 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.437, allocations: 0.7084 MB / 1.036 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.833e-05/0.4371, allocations: 8.656 kB / 1.036 GB, free: 7.926 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.4371, allocations: 19.44 kB / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.4371, allocations: 0 / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of Templates: time 0.005943/0.4431, allocations: 2.803 MB / 1.039 GB, free: 5.137 MB / 0.8106 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 -s cvode -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