Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001221/0.001221, allocations: 114.3 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2502, allocations: 50.55 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004995/0.2552, allocations: 3.175 MB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.2572, allocations: 1.126 MB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.2574, allocations: 4 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.2577, allocations: 91.22 kB / 414.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003915/0.2581, allocations: 186.6 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003971/0.2585, allocations: 203.6 kB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006706/0.2591, allocations: 0.6629 MB / 415.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.2593, allocations: 104.3 kB / 415.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000397/0.2597, allocations: 307 kB / 416 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.2601, allocations: 310.8 kB / 416.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.005e-05/0.2602, allocations: 52 kB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.2604, allocations: 111.9 kB / 416.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.2606, allocations: 135.6 kB / 416.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000248/0.2608, allocations: 266.6 kB / 416.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000745/0.2616, allocations: 0.6497 MB / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2616, allocations: 0 / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2616, allocations: 0 / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2616, allocations: 0 / 417.5 MB, free: 10.06 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001566/0.2631, allocations: 0.8489 MB / 418.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2632, allocations: 12.03 kB / 418.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.2634, allocations: 72.55 kB / 418.5 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.2639, allocations: 339.5 kB / 418.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.264, allocations: 29.38 kB / 418.8 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.209e-05/0.2641, allocations: 48.33 kB / 418.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009171/0.265, allocations: 474.6 kB / 419.4 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.265, allocations: 15.83 kB / 419.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.2651, allocations: 16 kB / 419.4 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2651, allocations: 12 kB / 419.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009893/0.2661, allocations: 467.7 kB / 419.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.2683, allocations: 1.137 MB / 421 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.2692, allocations: 402.5 kB / 421.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.2697, allocations: 250.4 kB / 421.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.2697, allocations: 4.562 kB / 421.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.2698, allocations: 43.11 kB / 421.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.514e-06/0.2698, allocations: 0 / 421.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005413/0.2752, allocations: 2.317 MB / 424 MB, free: 3.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.2752, allocations: 55.97 kB / 424 MB, free: 3.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.2756, allocations: 308.5 kB / 424.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.2757, allocations: 45.7 kB / 424.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.2758, allocations: 189.6 kB / 424.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.276, allocations: 218.2 kB / 424.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.2762, allocations: 114.3 kB / 424.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2764, allocations: 346.8 kB / 425.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004904/0.2769, allocations: 229.1 kB / 425.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005266/0.2774, allocations: 280.8 kB / 425.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007995/0.2782, allocations: 390.4 kB / 426.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2782, allocations: 0 / 426.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001707/0.2799, allocations: 0.7484 MB / 426.9 MB, free: 380 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.2799, allocations: 4 kB / 426.9 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2799, allocations: 0 / 426.9 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009115/0.2808, allocations: 377.4 kB / 427.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.2812, allocations: 87.84 kB / 427.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.2826, allocations: 1.401 MB / 428.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005295/0.2831, allocations: 76.06 kB / 428.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/0.2832, allocations: 16 kB / 428.8 MB, free: 14.36 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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002459/0.2834, allocations: 173.7 kB / 429 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.2835, allocations: 51.66 kB / 429 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.2837, allocations: 68.45 kB / 429.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.2837, allocations: 8 kB / 429.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2837, allocations: 3.938 kB / 429.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2837, allocations: 3.984 kB / 429.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.2865, allocations: 1.44 MB / 430.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.2865, allocations: 4 kB / 430.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.2869, allocations: 88.05 kB / 430.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007794/0.2877, allocations: 341.5 kB / 431 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.2878, allocations: 23.97 kB / 431 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.2891, allocations: 1.37 MB / 432.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2891, allocations: 0 / 432.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.2913, allocations: 1.047 MB / 433.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002619/0.2915, allocations: 172.8 kB / 433.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.739e-05/0.2916, allocations: 23.94 kB / 433.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.2921, allocations: 63.92 kB / 433.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.2923, allocations: 104.3 kB / 433.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-05/0.2923, allocations: 19.98 kB / 433.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.2926, allocations: 219.1 kB / 434 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2926, allocations: 0 / 434 MB, free: 8.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005074/0.2931, allocations: 124 kB / 434.1 MB, free: 8.84 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001364/0.2945, allocations: 399.9 kB / 434.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2958, allocations: 0.5352 MB / 435.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2958, allocations: 0 / 435.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007711/0.2966, allocations: 327.4 kB / 435.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.2972, allocations: 96.91 kB / 435.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003987/0.3012, allocations: 1.483 MB / 437 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.3017, allocations: 0.8362 MB / 437.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.3019, allocations: 43.38 kB / 437.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.302, allocations: 43.42 kB / 437.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.302, allocations: 0 / 437.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of Templates: time 0.01829/0.3203, allocations: 10.12 MB / 448 MB, free: 11.08 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches