Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001213/0.001213, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001267/0.001267, allocations: 192.9 kB / 16.91 MB, free: 5.746 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.363/1.363, allocations: 222.9 MB / 240.6 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.744/2.744, allocations: 469.8 MB / 0.7427 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 67.08 kB / 0.9087 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2877, allocations: 159.2 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002199/0.29, allocations: 0.8852 MB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.2916, allocations: 1.295 MB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.135e-05/0.2917, allocations: 0 / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.463e-05/0.2918, allocations: 7.875 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.481e-05/0.2919, allocations: 15.86 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.2927, allocations: 300.9 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.293, allocations: 303.5 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.2931, allocations: 41.42 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.2933, allocations: 115.8 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.2934, allocations: 87.7 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.2935, allocations: 28 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.772e-05/0.2935, allocations: 39.98 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.533e-05/0.2936, allocations: 31.84 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.2937, allocations: 95.69 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.294, allocations: 187.8 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.294, allocations: 8 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.693e-06/0.294, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.294, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 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.0006622/0.2947, allocations: 0.5158 MB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.2947, allocations: 8.031 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.2948, allocations: 20.75 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.2949, allocations: 194.7 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.295, allocations: 12.38 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.295, allocations: 27.92 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.2952, allocations: 85.66 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2952, allocations: 0 / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2952, allocations: 8 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2952, allocations: 3.938 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.2954, allocations: 55.84 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.296, allocations: 0.4884 MB / 1.069 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2963, allocations: 78.67 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.646e-05/0.2963, allocations: 28.84 kB / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.2964, allocations: 0 / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.2965, allocations: 127.1 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.2966, allocations: 0 / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003506/0.2969, allocations: 166.6 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.297, allocations: 59.39 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.2971, allocations: 157.8 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.2972, allocations: 37.7 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.2973, allocations: 104 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.2973, allocations: 31.56 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.2974, allocations: 77.66 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2976, allocations: 326.8 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.2978, allocations: 91.95 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.298, allocations: 145.9 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.2983, allocations: 256.1 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2983, allocations: 0 / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000626/0.299, allocations: 403.6 kB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.811e-05/0.2991, allocations: 105.1 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2991, allocations: 4 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.2991, allocations: 0 / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.745e-05/0.2992, allocations: 11.98 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.2992, allocations: 4 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.2997, allocations: 87.75 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.2997, allocations: 23.98 kB / 1.071 GB, free: 7.141 MB / 0.8262 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.0001375/0.2999, allocations: 137.8 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.2999, allocations: 19.75 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.2999, allocations: 8.844 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3, allocations: 4 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3, allocations: 0 / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3, allocations: 3.984 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.3002, allocations: 221.6 kB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3002, allocations: 0 / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.42e-05/0.3002, allocations: 11.94 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3002, allocations: 3.938 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.3003, allocations: 11.92 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3003, allocations: 4 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3003, allocations: 0 / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.3005, allocations: 167.9 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.3006, allocations: 88.95 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.3006, allocations: 4 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.977e-05/0.3006, allocations: 0 / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.3007, allocations: 11.98 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3007, allocations: 11.98 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.964e-05/0.3008, allocations: 112.6 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3008, allocations: 0 / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002636/0.301, allocations: 59.83 kB / 1.072 GB, free: 6.184 MB / 0.8262 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.0001661/0.3012, allocations: 113.2 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.3017, allocations: 390 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3018, allocations: 0 / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.926e-05/0.3019, allocations: 55.86 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.3021, allocations: 27.34 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00047/0.3026, allocations: 301.6 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.3029, allocations: 0.7162 MB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.303, allocations: 19.38 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.303, allocations: 0 / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of Templates: time 0.004183/0.3072, allocations: 2.254 MB / 1.076 GB, free: 2.238 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches