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.0009904/0.0009904, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 182.9 kB / 16.92 MB, free: 6.672 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: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.938/2.938, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003662, allocations: 10.66 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3331, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001182/0.3343, allocations: 0.5407 MB / 1.06 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3364, allocations: 1.319 MB / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.079e-05/0.3365, allocations: 0 / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.099e-05/0.3366, allocations: 3.938 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.3367, allocations: 19.84 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009883/0.3377, allocations: 301.5 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003184/0.338, allocations: 263.5 kB / 1.062 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.3382, allocations: 37.34 kB / 1.062 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.3384, allocations: 103.7 kB / 1.062 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.3386, allocations: 79.7 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.137e-05/0.3387, allocations: 16 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.3388, allocations: 27.98 kB / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.533e-05/0.3389, allocations: 19.92 kB / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.339, allocations: 113.3 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.3393, allocations: 179.8 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.3393, allocations: 3.984 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3393, allocations: 0 / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.3393, allocations: 3.938 kB / 1.062 GB, free: 1.938 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.000757/0.3401, allocations: 484.3 kB / 1.063 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.3402, allocations: 15.97 kB / 1.063 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.3403, allocations: 24.83 kB / 1.063 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.3405, allocations: 189.9 kB / 1.063 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.054e-05/0.3405, allocations: 16.36 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.3406, allocations: 23.94 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.3408, allocations: 87.02 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3409, allocations: 0 / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.3409, allocations: 4 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3409, allocations: 4 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.341, allocations: 39.98 kB / 1.063 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008672/0.3419, allocations: 0.4962 MB / 1.064 GB, free: 424 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.3422, allocations: 78.48 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.988e-05/0.3422, allocations: 24.92 kB / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.3423, allocations: 8 kB / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.3425, allocations: 111.3 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.744e-06/0.3425, allocations: 0 / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004478/0.343, allocations: 174.8 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.343, allocations: 55.41 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.3432, allocations: 164.1 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.3433, allocations: 33.7 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.599e-05/0.3434, allocations: 112 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.3434, allocations: 31.64 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.667e-05/0.3435, allocations: 33.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3437, allocations: 322.8 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.3439, allocations: 99.94 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.3442, allocations: 140.2 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.3445, allocations: 252.5 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3445, allocations: 4 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006998/0.3452, allocations: 400.1 kB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.949e-05/0.3453, allocations: 109 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3453, allocations: 0 / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3454, allocations: 7.938 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.926e-05/0.3454, allocations: 11.94 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.3454, allocations: 4 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005898/0.346, allocations: 123.9 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.3461, allocations: 15.98 kB / 1.066 GB, free: 13.97 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.0001476/0.3462, allocations: 133.8 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.3463, allocations: 11.84 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.215e-05/0.3463, allocations: 20.83 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3463, allocations: 8 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3464, allocations: 7.938 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3464, allocations: 0 / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.3466, allocations: 209.6 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3466, allocations: 4 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.386e-05/0.3466, allocations: 7.984 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3466, allocations: 7.938 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3467, allocations: 4 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3467, allocations: 0 / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3467, allocations: 0 / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.3469, allocations: 175.5 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.669e-05/0.347, allocations: 88.86 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.347, allocations: 7.984 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.54e-05/0.3471, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.3471, allocations: 7.984 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.3471, allocations: 8 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.405e-05/0.3472, allocations: 116.1 kB / 1.067 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3472, allocations: 4 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002807/0.3475, allocations: 55.94 kB / 1.067 GB, free: 13.02 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.0002186/0.3478, allocations: 111.2 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000537/0.3483, allocations: 382 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3483, allocations: 0 / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.801e-05/0.3484, allocations: 55.98 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.3487, allocations: 28.34 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006638/0.3494, allocations: 312.2 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.3498, allocations: 0.7048 MB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.3499, allocations: 23.42 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.3499, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.00515/0.355, allocations: 2.243 MB / 1.07 GB, free: 9.086 MB / 0.8262 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","/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