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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.271/2.271, allocations: 393.5 MB / 408.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 187.9 kB / 0.4902 GB, free: 2.297 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.644/1.644, allocations: 223.1 MB / 0.7992 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001097, allocations: 98.31 kB / 0.9396 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003909, allocations: 15.53 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2869, allocations: 143 MB / 1.229 GB, free: 85.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.4795, allocations: 150.5 MB / 1.376 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.4797, allocations: 71.95 kB / 1.376 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01291/0.4927, allocations: 4.521 MB / 1.381 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.685e-06/0.4927, allocations: 4 kB / 1.381 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.4927, allocations: 4 kB / 1.381 GB, free: 10.16 MB / 0.8855 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.0006003/0.4933, allocations: 0.4897 MB / 1.381 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.4934, allocations: 8.562 kB / 1.381 GB, free: 9.59 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.912e-05/0.4935, allocations: 19.81 kB / 1.381 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.4936, allocations: 183.7 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.4937, allocations: 8 kB / 1.381 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.399e-05/0.4938, allocations: 23.98 kB / 1.381 GB, free: 9.316 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.4939, allocations: 90.52 kB / 1.382 GB, free: 9.223 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.494, allocations: 3.953 kB / 1.382 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.494, allocations: 3.984 kB / 1.382 GB, free: 9.215 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.494, allocations: 4 kB / 1.382 GB, free: 9.211 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.4941, allocations: 43.98 kB / 1.382 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007725/0.4949, allocations: 0.4924 MB / 1.382 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.4951, allocations: 66.56 kB / 1.382 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.4951, allocations: 3.938 kB / 1.382 GB, free: 8.547 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.4953, allocations: 119.3 kB / 1.382 GB, free: 8.418 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.4954, allocations: 4 kB / 1.382 GB, free: 8.414 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0003231/0.4957, allocations: 172.5 kB / 1.382 GB, free: 8.242 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4957, allocations: 55.41 kB / 1.382 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.4959, allocations: 156.3 kB / 1.383 GB, free: 8.02 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.4959, allocations: 29.7 kB / 1.383 GB, free: 7.984 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/0.496, allocations: 108 kB / 1.383 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.496, allocations: 35.7 kB / 1.383 GB, free: 7.84 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.4961, allocations: 8 kB / 1.383 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4962, allocations: 326.8 kB / 1.383 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.4964, allocations: 95.94 kB / 1.383 GB, free: 7.41 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.4966, allocations: 142.6 kB / 1.383 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.4969, allocations: 178.3 kB / 1.383 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.4969, allocations: 4 kB / 1.383 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006177/0.4975, allocations: 390.4 kB / 1.384 GB, free: 6.648 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.455e-05/0.4976, allocations: 101.9 kB / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4976, allocations: 0 / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.4976, allocations: 4 kB / 1.384 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.501e-05/0.4977, allocations: 11.94 kB / 1.384 GB, free: 6.516 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.4977, allocations: 16.12 kB / 1.384 GB, free: 6.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.4982, allocations: 111.8 kB / 1.384 GB, free: 6.391 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.4983, allocations: 15.98 kB / 1.384 GB, free: 6.375 MB / 0.8855 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,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.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 initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.4984, allocations: 134.6 kB / 1.384 GB, free: 6.234 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.4984, allocations: 15.84 kB / 1.384 GB, free: 6.219 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.4985, allocations: 16.84 kB / 1.384 GB, free: 6.203 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.4985, allocations: 3.984 kB / 1.384 GB, free: 6.199 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.4985, allocations: 4 kB / 1.384 GB, free: 6.195 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4985, allocations: 3.953 kB / 1.384 GB, free: 6.191 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.4987, allocations: 217.4 kB / 1.384 GB, free: 5.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.4987, allocations: 0 / 1.384 GB, free: 5.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.511e-05/0.4988, allocations: 11.98 kB / 1.384 GB, free: 5.918 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.4988, allocations: 4 kB / 1.385 GB, free: 5.914 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.4988, allocations: 4 kB / 1.385 GB, free: 5.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4988, allocations: 4 kB / 1.385 GB, free: 5.906 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4988, allocations: 0 / 1.385 GB, free: 5.906 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.499, allocations: 157 kB / 1.385 GB, free: 5.734 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.129e-05/0.4991, allocations: 88.92 kB / 1.385 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.4991, allocations: 0 / 1.385 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.783e-05/0.4992, allocations: 11.98 kB / 1.385 GB, free: 5.617 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.4992, allocations: 11.92 kB / 1.385 GB, free: 5.605 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.4992, allocations: 8 kB / 1.385 GB, free: 5.598 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.018e-05/0.4993, allocations: 124.7 kB / 1.385 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4993, allocations: 0 / 1.385 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002642/0.4996, allocations: 55.94 kB / 1.385 GB, free: 5.422 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001702/0.4998, allocations: 123.8 kB / 1.385 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004551/0.5002, allocations: 378.1 kB / 1.385 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5002, allocations: 384 / 1.385 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.791e-05/0.5003, allocations: 55.92 kB / 1.385 GB, free: 4.832 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.5005, allocations: 20.84 kB / 1.385 GB, free: 4.812 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004623/0.501, allocations: 264.2 kB / 1.386 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.5013, allocations: 0.7164 MB / 1.386 GB, free: 3.781 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.269e-05/0.5014, allocations: 16.62 kB / 1.386 GB, free: 3.766 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.081e-05/0.5014, allocations: 19.44 kB / 1.386 GB, free: 3.746 MB / 0.8855 GB Notification: Performance of SimCode: time 2.61e-07/0.5014, allocations: 0 / 1.386 GB, free: 3.746 MB / 0.8855 GB Notification: Performance of Templates: time 0.005092/0.5065, allocations: 2.527 MB / 1.389 GB, free: 1.25 MB / 0.8855 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches