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.0009554/0.0009554, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.001537/0.001537, allocations: 166.4 kB / 24.91 MB, free: 8.77 MB / 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.9824/0.9824, allocations: 177 MB / 205.2 MB, free: 5.445 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.2647/0.2647, allocations: 34.86 MB / 296.6 MB, free: 0.5312 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.553e-06/1.553e-06, allocations: 0 / 325.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.362e-05, allocations: 3.016 kB / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004016/0.00404, allocations: 4.003 MB / 329.9 MB, free: 3.172 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.00662, allocations: 1.506 MB / 331.4 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003018/0.006922, allocations: 19.81 kB / 331.4 MB, free: 1.645 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.007264, allocations: 126.8 kB / 331.5 MB, free: 1.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005745/0.007838, allocations: 305.7 kB / 331.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.008394, allocations: 367.3 kB / 332.2 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007836/0.009178, allocations: 1.124 MB / 333.3 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.009491, allocations: 139.6 kB / 333.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006422/0.01013, allocations: 0.6588 MB / 334.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.01053, allocations: 435 kB / 334.5 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.935e-05/0.01062, allocations: 80 kB / 334.6 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.01084, allocations: 139.9 kB / 334.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.01101, allocations: 231.2 kB / 335 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.01122, allocations: 311.2 kB / 335.3 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006835/0.01191, allocations: 0.7902 MB / 336.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.01191, allocations: 0 / 336.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01191, allocations: 0 / 336.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.01192, allocations: 0 / 336.1 MB, free: 12.95 MB / 314.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.001305/0.01323, allocations: 1.022 MB / 337.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.01326, allocations: 11.97 kB / 337.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002907/0.01355, allocations: 144.8 kB / 337.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.01396, allocations: 364 kB / 337.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.014, allocations: 49.69 kB / 337.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.799e-05/0.01408, allocations: 68.33 kB / 337.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.01469, allocations: 0.6233 MB / 338.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.01471, allocations: 7.953 kB / 338.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/0.01475, allocations: 24 kB / 338.4 MB, free: 10.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.01476, allocations: 16 kB / 338.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004262/0.01519, allocations: 310.4 kB / 338.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.01707, allocations: 1.8 MB / 340.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005335/0.0176, allocations: 406.5 kB / 340.9 MB, free: 7.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.01779, allocations: 164.6 kB / 341 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.01785, allocations: 16.33 kB / 341.1 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.01787, allocations: 46.88 kB / 341.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.314e-06/0.01788, allocations: 0 / 341.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.002661/0.02054, allocations: 1.769 MB / 342.9 MB, free: 5.816 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.02059, allocations: 144.4 kB / 343 MB, free: 5.645 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.02086, allocations: 420.8 kB / 343.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.02091, allocations: 57.69 kB / 343.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.02101, allocations: 246.1 kB / 343.7 MB, free: 4.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.02117, allocations: 297.5 kB / 344 MB, free: 4.617 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004222/0.02159, allocations: 178.4 kB / 344.2 MB, free: 4.438 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.02169, allocations: 378.6 kB / 344.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.02189, allocations: 141.9 kB / 344.7 MB, free: 3.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.02213, allocations: 298.1 kB / 345 MB, free: 3.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.02252, allocations: 447.8 kB / 345.4 MB, free: 3.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.02252, allocations: 0 / 345.4 MB, free: 3.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.0007592/0.02328, allocations: 0.645 MB / 346.1 MB, free: 2.414 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.0233, allocations: 4 kB / 346.1 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.0233, allocations: 4.406 kB / 346.1 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/0.02388, allocations: 423.2 kB / 346.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.02412, allocations: 147.7 kB / 346.6 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.02588, allocations: 3.215 MB / 349.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.02622, allocations: 103.8 kB / 350 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.02626, allocations: 27.98 kB / 350 MB, free: 14.33 MB / 330.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.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,bearingFriction.free) * 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.0001842/0.02644, allocations: 179.1 kB / 350.2 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.02656, allocations: 75.94 kB / 350.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.695e-05/0.02664, allocations: 92.92 kB / 350.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.02664, allocations: 11.94 kB / 350.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.02665, allocations: 0 / 350.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.02666, allocations: 3.984 kB / 350.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.0284, allocations: 1.216 MB / 351.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.0284, allocations: 0 / 351.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.02867, allocations: 111.8 kB / 351.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005221/0.0292, allocations: 418.6 kB / 352.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.02924, allocations: 27.97 kB / 352.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.03071, allocations: 3.059 MB / 355.2 MB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.03071, allocations: 11.94 kB / 355.2 MB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.03174, allocations: 1.04 MB / 356.2 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.03193, allocations: 99.45 kB / 356.3 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.03201, allocations: 28 kB / 356.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.03233, allocations: 87.89 kB / 356.4 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.03258, allocations: 199.5 kB / 356.6 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.03261, allocations: 27.97 kB / 356.6 MB, free: 7.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000135/0.03275, allocations: 180.6 kB / 356.8 MB, free: 7.227 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03275, allocations: 0 / 356.8 MB, free: 7.227 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005505/0.0333, allocations: 215.9 kB / 357 MB, free: 7.016 MB / 330.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.0009897/0.03429, allocations: 476.9 kB / 357.5 MB, free: 6.754 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008308/0.03512, allocations: 0.6416 MB / 358.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.03512, allocations: 8.125 kB / 358.1 MB, free: 6.094 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007221/0.03585, allocations: 448.7 kB / 358.6 MB, free: 5.637 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.03641, allocations: 197.4 kB / 358.8 MB, free: 5.449 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.03854, allocations: 1.512 MB / 360.3 MB, free: 3.891 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.03865, allocations: 163.2 kB / 360.4 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.03885, allocations: 81.03 kB / 360.5 MB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.0391, allocations: 173.3 kB / 360.7 MB, free: 3.461 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.03911, allocations: 0 / 360.7 MB, free: 3.461 MB / 330.7 MB Notification: Performance of Templates: time 0.01763/0.05673, allocations: 15.31 MB / 376 MB, free: 4.312 MB / 346.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.3077534520998597]