Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001696/0.001696, allocations: 103.9 kB / 16.4 MB, free: 6.484 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.001844/0.001845, allocations: 184 kB / 17.34 MB, free: 5.734 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.631/1.631, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.85/2.85, allocations: 437 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 63.91 kB / 1.019 GB, free: 9.367 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002297/1.036, allocations: 0.8414 MB / 1.168 GB, free: 2.984 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001921/1.038, allocations: 1.288 MB / 1.169 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.33e-05/1.038, allocations: 7.938 kB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.18e-05/1.038, allocations: 7.875 kB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001074/1.038, allocations: 23.78 kB / 1.169 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008925/1.039, allocations: 324.7 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003782/1.039, allocations: 311.4 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/1.039, allocations: 41.44 kB / 1.17 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/1.04, allocations: 111.8 kB / 1.17 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/1.04, allocations: 111.7 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/1.04, allocations: 28 kB / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.599e-05/1.04, allocations: 43.94 kB / 1.17 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.047e-05/1.04, allocations: 19.92 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001372/1.04, allocations: 111.6 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003512/1.04, allocations: 263.7 kB / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/1.04, allocations: 4 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.423e-06/1.04, allocations: 0 / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.861e-06/1.04, allocations: 0 / 1.171 GB, free: 312 kB / 0.8887 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.0007439/1.041, allocations: 0.5272 MB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/1.041, allocations: 8.031 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/1.041, allocations: 20.88 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/1.042, allocations: 201.8 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/1.042, allocations: 12.12 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/1.042, allocations: 20 kB / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/1.042, allocations: 91.53 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/1.042, allocations: 0 / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/1.042, allocations: 4 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/1.042, allocations: 0 / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/1.042, allocations: 55.91 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007358/1.043, allocations: 496.5 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/1.043, allocations: 70.48 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.156e-05/1.043, allocations: 28.98 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 8.115e-06/1.043, allocations: 0 / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/1.043, allocations: 120.1 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/1.043, allocations: 0 / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0003795/1.044, allocations: 167 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/1.044, allocations: 59.41 kB / 1.173 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/1.044, allocations: 165 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/1.044, allocations: 37.7 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.818e-05/1.044, allocations: 112 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/1.044, allocations: 31.73 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/1.044, allocations: 73.67 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.044, allocations: 326.8 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/1.045, allocations: 99.94 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/1.045, allocations: 144.1 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/1.045, allocations: 253.5 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.045, allocations: 0 / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006562/1.046, allocations: 398.5 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.541e-05/1.046, allocations: 105.1 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/1.046, allocations: 0 / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/1.046, allocations: 4 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.571e-05/1.046, allocations: 11.94 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/1.046, allocations: 7.984 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/1.047, allocations: 91.75 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-05/1.047, allocations: 15.98 kB / 1.174 GB, free: 12.28 MB / 0.9044 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.0001337/1.047, allocations: 133.8 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/1.047, allocations: 11.89 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.721e-05/1.047, allocations: 16.84 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/1.047, allocations: 7.984 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.047, allocations: 3.938 kB / 1.175 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.047, allocations: 3.938 kB / 1.175 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/1.047, allocations: 217.5 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/1.047, allocations: 4 kB / 1.175 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.606e-05/1.047, allocations: 15.92 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/1.047, allocations: 4 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/1.047, allocations: 4 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/1.047, allocations: 0 / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/1.047, allocations: 0 / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002467/1.047, allocations: 158 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/1.048, allocations: 96.95 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/1.048, allocations: 8 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.187e-05/1.048, allocations: 3.984 kB / 1.175 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/1.048, allocations: 11.98 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/1.048, allocations: 4 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.562e-05/1.048, allocations: 113.7 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/1.048, allocations: 0 / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002704/1.048, allocations: 59.94 kB / 1.175 GB, free: 11.33 MB / 0.9044 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.0001713/1.048, allocations: 115.2 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005534/1.049, allocations: 386.1 kB / 1.176 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.049, allocations: 0 / 1.176 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.675e-05/1.049, allocations: 49.42 kB / 1.176 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/1.049, allocations: 24.34 kB / 1.176 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004638/1.05, allocations: 251.2 kB / 1.176 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/1.05, allocations: 0.7084 MB / 1.177 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.681e-05/1.05, allocations: 8.656 kB / 1.177 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/1.05, allocations: 23.42 kB / 1.177 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/1.05, allocations: 0 / 1.177 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of Templates: time 0.00645/1.056, allocations: 2.806 MB / 1.179 GB, free: 6.914 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches