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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002206/0.002206, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002003/0.002003, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.882/2.882, allocations: 476.7 MB / 0.7629 GB, free: 15.12 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 63.89 kB / 1.107 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.2/1.202, allocations: 168.7 MB / 1.272 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002383/1.204, allocations: 0.8363 MB / 1.273 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001834/1.206, allocations: 1.287 MB / 1.274 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.361e-05/1.206, allocations: 1.625 kB / 1.274 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.374e-05/1.206, allocations: 13.8 kB / 1.274 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/1.206, allocations: 25.42 kB / 1.274 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008568/1.207, allocations: 328.6 kB / 1.274 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003947/1.208, allocations: 291.9 kB / 1.275 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/1.208, allocations: 38.86 kB / 1.275 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/1.208, allocations: 118.4 kB / 1.275 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/1.208, allocations: 114.3 kB / 1.275 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.279e-05/1.208, allocations: 26.5 kB / 1.275 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/1.208, allocations: 36 kB / 1.275 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.575e-05/1.208, allocations: 27.17 kB / 1.275 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/1.208, allocations: 103 kB / 1.275 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003775/1.209, allocations: 270 kB / 1.275 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/1.209, allocations: 4 kB / 1.275 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.994e-06/1.209, allocations: 0 / 1.275 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.593e-06/1.209, allocations: 4.844 kB / 1.275 GB, free: 5.844 MB / 0.9981 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.0006529/1.209, allocations: 0.5186 MB / 1.276 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/1.209, allocations: 10 kB / 1.276 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.908e-05/1.21, allocations: 19.22 kB / 1.276 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/1.21, allocations: 185.3 kB / 1.276 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/1.21, allocations: 17.73 kB / 1.276 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/1.21, allocations: 21.98 kB / 1.276 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/1.21, allocations: 86.16 kB / 1.276 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.21, allocations: 1.062 kB / 1.276 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/1.21, allocations: 10.42 kB / 1.276 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/1.21, allocations: 2 kB / 1.276 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/1.21, allocations: 47.48 kB / 1.276 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006638/1.211, allocations: 495.3 kB / 1.277 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/1.211, allocations: 72.95 kB / 1.277 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.333e-05/1.211, allocations: 25.84 kB / 1.277 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/1.211, allocations: 4.938 kB / 1.277 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/1.211, allocations: 116.3 kB / 1.277 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/1.211, allocations: 3.938 kB / 1.277 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.000394/1.212, allocations: 176.8 kB / 1.277 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/1.212, allocations: 53.78 kB / 1.277 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/1.212, allocations: 162.5 kB / 1.277 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/1.212, allocations: 39.58 kB / 1.277 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/1.212, allocations: 109.4 kB / 1.277 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/1.212, allocations: 33.67 kB / 1.278 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.212, allocations: 75.27 kB / 1.278 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.52e-05/1.212, allocations: 326.9 kB / 1.278 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/1.212, allocations: 92 kB / 1.278 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/1.213, allocations: 146.4 kB / 1.278 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/1.213, allocations: 251.1 kB / 1.278 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.213, allocations: 0.9062 kB / 1.278 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006372/1.214, allocations: 410.6 kB / 1.279 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.427e-05/1.214, allocations: 98.75 kB / 1.279 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.214, allocations: 1.75 kB / 1.279 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/1.214, allocations: 5.875 kB / 1.279 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.059e-05/1.214, allocations: 13.8 kB / 1.279 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/1.214, allocations: 8.141 kB / 1.279 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/1.214, allocations: 81.67 kB / 1.279 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-05/1.214, allocations: 25.8 kB / 1.279 GB, free: 3.086 MB / 0.9981 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.0001103/1.214, allocations: 138.8 kB / 1.279 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/1.214, allocations: 23.28 kB / 1.279 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/1.214, allocations: 15.78 kB / 1.279 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/1.214, allocations: 1.938 kB / 1.279 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/1.214, allocations: 0.9375 kB / 1.279 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/1.214, allocations: 2.359 kB / 1.279 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/1.215, allocations: 213.6 kB / 1.279 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.215, allocations: 0 / 1.279 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.757e-05/1.215, allocations: 17.72 kB / 1.279 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/1.215, allocations: 0.9062 kB / 1.279 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/1.215, allocations: 5.625 kB / 1.279 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/1.215, allocations: 0.875 kB / 1.279 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.215, allocations: 7 kB / 1.279 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/1.215, allocations: 165.2 kB / 1.28 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/1.215, allocations: 87.81 kB / 1.28 GB, free: 2.492 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/1.215, allocations: 1.75 kB / 1.28 GB, free: 2.492 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.267e-05/1.215, allocations: 7.422 kB / 1.28 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/1.215, allocations: 14.11 kB / 1.28 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/1.215, allocations: 8.438 kB / 1.28 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.395e-05/1.215, allocations: 117.8 kB / 1.28 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.215, allocations: 0 / 1.28 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002867/1.215, allocations: 56.23 kB / 1.28 GB, free: 2.379 MB / 0.9981 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.0001706/1.216, allocations: 108.3 kB / 1.28 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004728/1.216, allocations: 336.6 kB / 1.28 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.216, allocations: 1.625 kB / 1.28 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.753e-05/1.216, allocations: 50.06 kB / 1.28 GB, free: 2.027 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/1.216, allocations: 30.7 kB / 1.28 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005807/1.217, allocations: 264.2 kB / 1.281 GB, free: 1.828 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/1.217, allocations: 0.7115 MB / 1.281 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.405e-05/1.217, allocations: 12.34 kB / 1.281 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/1.217, allocations: 23.3 kB / 1.281 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/1.217, allocations: 3.938 kB / 1.281 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of Templates: time 0.007731/1.225, allocations: 2.818 MB / 1.284 GB, free: 0.8672 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (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) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.81161320116371]