Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002078/0.002078, allocations: 217.2 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.446/1.446, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.151/3.151, allocations: 0.4892 GB / 0.7951 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 70.23 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3466, allocations: 176.1 MB / 1.326 GB, free: 1.824 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002168/0.3487, allocations: 0.8085 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001977/0.3507, allocations: 1.307 MB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.594e-05/0.3508, allocations: 4 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.644e-05/0.3508, allocations: 7.875 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.384e-05/0.3509, allocations: 23.78 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008983/0.3518, allocations: 324.7 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.3522, allocations: 287.5 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.3523, allocations: 25.62 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.3525, allocations: 123.7 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000191/0.3526, allocations: 99.61 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.086e-05/0.3527, allocations: 24 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.3528, allocations: 39.98 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.726e-05/0.3528, allocations: 31.84 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.353, allocations: 91.75 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.3533, allocations: 275 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3533, allocations: 4 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3533, allocations: 0 / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.3533, allocations: 0 / 1.33 GB, free: 14.37 MB / 1.029 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.0007082/0.354, allocations: 458.9 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3541, allocations: 8.031 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.273e-05/0.3541, allocations: 20.84 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.3543, allocations: 123 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/0.3543, allocations: 24.11 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.454e-05/0.3544, allocations: 16 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.3546, allocations: 99.09 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3546, allocations: 0 / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3546, allocations: 4 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.3546, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.3547, allocations: 47.97 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.3554, allocations: 380.1 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.3556, allocations: 66.55 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.709e-05/0.3557, allocations: 28.97 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.3557, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.3559, allocations: 121.8 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.3559, allocations: 0 / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003883/0.3563, allocations: 177.5 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.3564, allocations: 55.41 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.3565, allocations: 156 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.3566, allocations: 33.7 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3567, allocations: 108.5 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.3567, allocations: 27.8 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.3568, allocations: 81.66 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.357, allocations: 322.8 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.3573, allocations: 189 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.3576, allocations: 236.8 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.3579, allocations: 260.7 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3579, allocations: 0 / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007339/0.3586, allocations: 0.4955 MB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.634e-05/0.3587, allocations: 98.81 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3587, allocations: 7.984 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3587, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.664e-05/0.3588, allocations: 11.94 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.3588, allocations: 7.938 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.3593, allocations: 87.98 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/0.3593, allocations: 19.98 kB / 1.333 GB, free: 10.32 MB / 1.029 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.0001358/0.3594, allocations: 134.3 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.3595, allocations: 15.84 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.3595, allocations: 16.78 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3595, allocations: 4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3595, allocations: 4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3595, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.3597, allocations: 153.2 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3597, allocations: 0 / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.3597, allocations: 11.94 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-06/0.3597, allocations: 7.922 kB / 1.334 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3598, allocations: 7.984 kB / 1.334 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3598, allocations: 0 / 1.334 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3598, allocations: 4 kB / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.36, allocations: 157 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.933e-05/0.36, allocations: 15.89 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.36, allocations: 0 / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.383e-05/0.3601, allocations: 8 kB / 1.334 GB, free: 9.73 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.921e-05/0.3601, allocations: 11.97 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.3601, allocations: 8 kB / 1.334 GB, free: 9.711 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.155e-05/0.3602, allocations: 105.1 kB / 1.334 GB, free: 9.609 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3602, allocations: 3.938 kB / 1.334 GB, free: 9.605 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002763/0.3605, allocations: 55.94 kB / 1.334 GB, free: 9.551 MB / 1.029 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.0001581/0.3606, allocations: 103.2 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005758/0.3612, allocations: 444 kB / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3612, allocations: 0 / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.3613, allocations: 47.91 kB / 1.335 GB, free: 8.906 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3616, allocations: 23.92 kB / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005273/0.3621, allocations: 279.9 kB / 1.335 GB, free: 8.582 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.768e-05/0.3622, allocations: 98.59 kB / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.781e-05/0.3622, allocations: 19.42 kB / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of SimCode: time 5.71e-07/0.3622, allocations: 0 / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of Templates: time 0.004395/0.3666, allocations: 2.271 MB / 1.337 GB, free: 6.188 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.085925388149917]