Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009663/0.0009663, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000993/0.000993, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9707/0.9707, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.275/0.275, allocations: 34.86 MB / 296.3 MB, free: 0.5469 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.001e-05/3.189e-05, allocations: 8.703 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005891/0.005923, allocations: 4.052 MB / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003175/0.009098, allocations: 1.473 MB / 384.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004979/0.009596, allocations: 15.88 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005217/0.01012, allocations: 134.7 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009419/0.01106, allocations: 297.7 kB / 384.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009656/0.01202, allocations: 367.3 kB / 385.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.01343, allocations: 1.12 MB / 386.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.01375, allocations: 131 kB / 386.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.01491, allocations: 0.6588 MB / 387 MB, free: 9.836 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000714/0.01562, allocations: 430.9 kB / 387.4 MB, free: 9.414 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000199/0.01582, allocations: 84 kB / 387.5 MB, free: 9.332 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003588/0.01618, allocations: 139.9 kB / 387.6 MB, free: 9.195 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.01645, allocations: 231.2 kB / 387.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.01684, allocations: 307.3 kB / 388.1 MB, free: 8.668 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.01799, allocations: 0.7824 MB / 388.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.018, allocations: 8 kB / 388.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.018, allocations: 0 / 388.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.01802, allocations: 0 / 388.9 MB, free: 7.875 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001956/0.01998, allocations: 1.149 MB / 390.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.02002, allocations: 8.031 kB / 390.1 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005108/0.02053, allocations: 172.3 kB / 390.3 MB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007391/0.02127, allocations: 454.7 kB / 390.7 MB, free: 6.035 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.606e-05/0.02134, allocations: 49.69 kB / 390.7 MB, free: 5.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.02147, allocations: 64.33 kB / 390.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.0228, allocations: 0.6963 MB / 391.5 MB, free: 5.184 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.02284, allocations: 11.95 kB / 391.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.02291, allocations: 24 kB / 391.5 MB, free: 5.148 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.02293, allocations: 16 kB / 391.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.02396, allocations: 441.3 kB / 392 MB, free: 4.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00322/0.02718, allocations: 2.503 MB / 394.5 MB, free: 2.098 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008086/0.02799, allocations: 0.4999 MB / 395 MB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.02832, allocations: 232.8 kB / 395.2 MB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.058e-05/0.02838, allocations: 20.38 kB / 395.2 MB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.02841, allocations: 49.31 kB / 395.3 MB, free: 1.227 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 2.375e-06/0.02841, allocations: 0 / 395.3 MB, free: 1.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.003939/0.03235, allocations: 2.406 MB / 397.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.03241, allocations: 152.5 kB / 397.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.03282, allocations: 478.6 kB / 398.3 MB, free: 14.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.794e-05/0.03288, allocations: 49.7 kB / 398.4 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.03305, allocations: 339.8 kB / 398.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.03325, allocations: 305.5 kB / 399 MB, free: 13.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.03346, allocations: 172.2 kB / 399.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003331/0.0338, allocations: 0.5469 MB / 399.7 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003964/0.03419, allocations: 205.9 kB / 399.9 MB, free: 12.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.03463, allocations: 435.8 kB / 400.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006339/0.03526, allocations: 0.5213 MB / 400.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.03527, allocations: 4 kB / 400.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001485/0.03675, allocations: 0.9243 MB / 401.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.03678, allocations: 8 kB / 401.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.03679, allocations: 4 kB / 401.8 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007518/0.03754, allocations: 470.7 kB / 402.2 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.03783, allocations: 135.8 kB / 402.4 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.04077, allocations: 4.763 MB / 407.1 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/0.04122, allocations: 107.9 kB / 407.2 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-05/0.04128, allocations: 35.98 kB / 407.3 MB, free: 4.598 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.04153, allocations: 223 kB / 407.5 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.0417, allocations: 103.5 kB / 407.6 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.431e-05/0.04178, allocations: 89 kB / 407.7 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.04179, allocations: 12 kB / 407.7 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.04179, allocations: 0 / 407.7 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.0418, allocations: 11.97 kB / 407.7 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/0.04413, allocations: 1.811 MB / 409.5 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.04414, allocations: 3.984 kB / 409.5 MB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.04443, allocations: 107.9 kB / 409.6 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008074/0.04524, allocations: 454.3 kB / 410.1 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.0453, allocations: 31.97 kB / 410.1 MB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002225/0.04753, allocations: 4.535 MB / 414.6 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.04753, allocations: 4 kB / 414.6 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.04913, allocations: 1.473 MB / 416.1 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.04938, allocations: 155.4 kB / 416.3 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.337e-05/0.04947, allocations: 28 kB / 416.3 MB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.04981, allocations: 83.91 kB / 416.4 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.0501, allocations: 195.6 kB / 416.6 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.88e-05/0.05015, allocations: 43.89 kB / 416.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002441/0.05039, allocations: 314.8 kB / 416.9 MB, free: 10.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.05039, allocations: 0 / 416.9 MB, free: 10.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000667/0.05106, allocations: 215.9 kB / 417.1 MB, free: 10.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.05208, allocations: 374.7 kB / 417.5 MB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.0533, allocations: 0.8159 MB / 418.3 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.0533, allocations: 0 / 418.3 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005918/0.05389, allocations: 0.553 MB / 418.9 MB, free: 8.723 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.05456, allocations: 201.7 kB / 419.1 MB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.05726, allocations: 1.775 MB / 420.8 MB, free: 6.707 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.05738, allocations: 167.1 kB / 421 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.05758, allocations: 81.02 kB / 421.1 MB, free: 6.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.05772, allocations: 68.41 kB / 421.2 MB, free: 6.379 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.05772, allocations: 0 / 421.2 MB, free: 6.379 MB / 394.7 MB Notification: Performance of Templates: time 0.01713/0.07485, allocations: 14.27 MB / 435.4 MB, free: 8.246 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9245401602238417]