Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001783/0.001783, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002362/0.002362, allocations: 193.2 kB / 23.71 MB, free: 4.406 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.459/1.459, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 51.91 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2557, allocations: 52.17 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004976/0.2607, allocations: 2.835 MB / 425.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2629, allocations: 0.8959 MB / 426.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002032/0.2631, allocations: 11.94 kB / 426.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.2634, allocations: 71.31 kB / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.2637, allocations: 134.8 kB / 427 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006852/0.2644, allocations: 223.6 kB / 427.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007165/0.2651, allocations: 0.6471 MB / 427.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.2653, allocations: 84.66 kB / 428 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.2657, allocations: 283.1 kB / 428.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000403/0.2661, allocations: 282.9 kB / 428.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.317e-05/0.2662, allocations: 48 kB / 428.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.2664, allocations: 95.89 kB / 428.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.2666, allocations: 123.6 kB / 428.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.2668, allocations: 207.1 kB / 429 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008073/0.2676, allocations: 0.6092 MB / 429.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.2676, allocations: 4 kB / 429.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2676, allocations: 4 kB / 429.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.2677, allocations: 0 / 429.6 MB, free: 7.941 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001569/0.2692, allocations: 0.7144 MB / 430.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.2693, allocations: 12.03 kB / 430.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.2694, allocations: 52.61 kB / 430.4 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.27, allocations: 273.2 kB / 430.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.27, allocations: 29.38 kB / 430.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.568e-05/0.2701, allocations: 40.38 kB / 430.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000916/0.271, allocations: 474.6 kB / 431.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.271, allocations: 11.95 kB / 431.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.2711, allocations: 20 kB / 431.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.2711, allocations: 8 kB / 431.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.2721, allocations: 471.7 kB / 431.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.2741, allocations: 0.9315 MB / 432.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008442/0.275, allocations: 366 kB / 433 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005265/0.2755, allocations: 246 kB / 433.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.2755, allocations: 8.438 kB / 433.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.2756, allocations: 35 kB / 433.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.665e-06/0.2756, allocations: 0 / 433.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005198/0.2808, allocations: 2.044 MB / 435.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.2808, allocations: 55.91 kB / 435.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.2811, allocations: 257.9 kB / 435.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.2812, allocations: 45.7 kB / 435.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.2813, allocations: 189.5 kB / 435.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.2815, allocations: 214.2 kB / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.2817, allocations: 106.3 kB / 436.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.2819, allocations: 346.8 kB / 436.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/0.2824, allocations: 241.2 kB / 436.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005382/0.2829, allocations: 292.8 kB / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008222/0.2838, allocations: 418.1 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2838, allocations: 4 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001717/0.2855, allocations: 0.7757 MB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.2855, allocations: 12.03 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2855, allocations: 0 / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009454/0.2864, allocations: 0.5012 MB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003556/0.2868, allocations: 83.89 kB / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.2883, allocations: 1.405 MB / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005044/0.2888, allocations: 76.03 kB / 440.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.127e-05/0.2888, allocations: 23.98 kB / 440.3 MB, free: 12.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002527/0.2891, allocations: 162.6 kB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.2892, allocations: 43.75 kB / 440.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.2893, allocations: 59.61 kB / 440.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2893, allocations: 4 kB / 440.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.2893, allocations: 4 kB / 440.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2893, allocations: 3.984 kB / 440.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.2922, allocations: 1.284 MB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.2922, allocations: 3.938 kB / 441.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003836/0.2926, allocations: 79.89 kB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008902/0.2935, allocations: 485.6 kB / 442.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.2935, allocations: 27.91 kB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.2949, allocations: 1.37 MB / 443.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.2949, allocations: 11.86 kB / 443.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.2971, allocations: 1.087 MB / 444.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.2974, allocations: 83.75 kB / 445 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.38e-05/0.2975, allocations: 20 kB / 445 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.2979, allocations: 59.92 kB / 445 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.2981, allocations: 100.2 kB / 445.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.2982, allocations: 31.91 kB / 445.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.2984, allocations: 189.2 kB / 445.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2984, allocations: 0 / 445.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005279/0.2989, allocations: 132 kB / 445.5 MB, free: 7.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.2992, allocations: 143 kB / 445.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3005, allocations: 0.5572 MB / 446.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3005, allocations: 0 / 446.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007804/0.3013, allocations: 326.2 kB / 446.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.3019, allocations: 83.64 kB / 446.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.3058, allocations: 1.444 MB / 448 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.306, allocations: 216.9 kB / 448.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.3062, allocations: 39.27 kB / 448.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3063, allocations: 39.42 kB / 448.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3063, allocations: 0 / 448.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Templates: time 0.01603/0.3223, allocations: 8.924 MB / 457.2 MB, free: 11.85 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.879528503865004]