Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001681/0.001681, allocations: 108 kB / 15.61 MB, free: 152 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.00284/0.002841, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.471/1.471, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8775/0.8788, allocations: 140.4 MB / 0.9496 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002375/0.8813, allocations: 0.8319 MB / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.8829, allocations: 1.285 MB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.559e-05/0.883, allocations: 2.781 kB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.643e-05/0.8831, allocations: 15.8 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.251e-05/0.8832, allocations: 13.25 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000834/0.884, allocations: 315 kB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.8843, allocations: 313.5 kB / 0.9523 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.8845, allocations: 49.23 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.8846, allocations: 115.1 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.8847, allocations: 90.2 kB / 0.9525 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.8848, allocations: 26.25 kB / 0.9526 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.8849, allocations: 36.58 kB / 0.9526 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.342e-05/0.8849, allocations: 30.47 kB / 0.9526 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.8851, allocations: 107.1 kB / 0.9527 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.8853, allocations: 256.7 kB / 0.953 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.8854, allocations: 5.375 kB / 0.953 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8854, allocations: 0 / 0.953 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.8854, allocations: 0 / 0.953 GB, free: 6.699 MB / 0.7169 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.0006057/0.886, allocations: 0.5259 MB / 0.9535 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.886, allocations: 9.938 kB / 0.9535 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.687e-05/0.8861, allocations: 21.81 kB / 0.9535 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.8862, allocations: 187.8 kB / 0.9537 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.8863, allocations: 12.22 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.8863, allocations: 24.78 kB / 0.9537 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.8865, allocations: 89.98 kB / 0.9538 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.8865, allocations: 0 / 0.9538 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.8866, allocations: 4.906 kB / 0.9538 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.8866, allocations: 1.938 kB / 0.9538 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.8867, allocations: 46.73 kB / 0.9539 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000639/0.8873, allocations: 497.5 kB / 0.9543 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.8875, allocations: 75.94 kB / 0.9544 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.211e-05/0.8876, allocations: 30.56 kB / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.8876, allocations: 0 / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.8879, allocations: 119.4 kB / 0.9546 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.8879, allocations: 4 kB / 0.9546 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003904/0.8883, allocations: 171.7 kB / 0.9547 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.8883, allocations: 54.75 kB / 0.9548 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.8885, allocations: 165.5 kB / 0.9549 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.8885, allocations: 34.86 kB / 0.955 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.57e-05/0.8886, allocations: 106 kB / 0.9551 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.187e-05/0.8887, allocations: 28.55 kB / 0.9551 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.8888, allocations: 69.61 kB / 0.9552 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.8889, allocations: 330.2 kB / 0.9555 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.8892, allocations: 97.44 kB / 0.9556 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.8894, allocations: 148.4 kB / 0.9557 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.8897, allocations: 255.9 kB / 0.956 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.8897, allocations: 0 / 0.956 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005989/0.8903, allocations: 392.4 kB / 0.9563 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.8904, allocations: 115.8 kB / 0.9564 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.8904, allocations: 2 kB / 0.9564 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.8904, allocations: 5.688 kB / 0.9564 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.406e-05/0.8905, allocations: 13.03 kB / 0.9565 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.8905, allocations: 3.594 kB / 0.9565 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004802/0.891, allocations: 86.86 kB / 0.9565 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.891, allocations: 25.45 kB / 0.9566 GB, free: 3.602 MB / 0.7169 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.0001384/0.8912, allocations: 133.4 kB / 0.9567 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.8912, allocations: 21.23 kB / 0.9567 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.8913, allocations: 19.58 kB / 0.9567 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.8913, allocations: 1.375 kB / 0.9567 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.8913, allocations: 1.375 kB / 0.9567 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.8913, allocations: 0 / 0.9567 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.8915, allocations: 215.7 kB / 0.9569 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.8915, allocations: 7.984 kB / 0.9569 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.8915, allocations: 8.25 kB / 0.957 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.8915, allocations: 5.312 kB / 0.957 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.8916, allocations: 5.375 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.8916, allocations: 1.375 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.8916, allocations: 3.938 kB / 0.957 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.8918, allocations: 160.5 kB / 0.9571 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.8918, allocations: 92.45 kB / 0.9572 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.8919, allocations: 12.92 kB / 0.9572 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.861e-05/0.8919, allocations: 5.062 kB / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.8919, allocations: 9.703 kB / 0.9572 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.892, allocations: 7.531 kB / 0.9572 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.585e-05/0.892, allocations: 118.4 kB / 0.9574 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.892, allocations: 0 / 0.9574 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002673/0.8923, allocations: 48.69 kB / 0.9574 GB, free: 2.855 MB / 0.7169 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.0001782/0.8925, allocations: 120.6 kB / 0.9575 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005126/0.893, allocations: 389.5 kB / 0.9579 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.893, allocations: 0 / 0.9579 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.096e-05/0.8931, allocations: 51.39 kB / 0.9579 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.8934, allocations: 31.05 kB / 0.958 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004601/0.8939, allocations: 251 kB / 0.9582 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.894, allocations: 0.7166 MB / 0.9589 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.607e-05/0.8941, allocations: 12.42 kB / 0.9589 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.8941, allocations: 15.09 kB / 0.9589 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of SimCode: time 9.51e-07/0.8941, allocations: 0 / 0.9589 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of Templates: time 0.006114/0.9002, allocations: 2.789 MB / 0.9617 GB, free: 72 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches