Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000907/0.000907, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009124/0.0009123, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004623, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2686, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00281/0.2715, allocations: 2.575 MB / 329 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.2732, allocations: 0.9414 MB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.2733, allocations: 5.312 kB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2735, allocations: 53.12 kB / 330 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.2737, allocations: 112 kB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.2742, allocations: 163 kB / 330.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005178/0.2747, allocations: 0.5616 MB / 330.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.2749, allocations: 98.5 kB / 331 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.2752, allocations: 247.9 kB / 331.2 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.2756, allocations: 262.9 kB / 331.5 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.175e-05/0.2756, allocations: 25.12 kB / 331.5 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001532/0.2758, allocations: 66.38 kB / 331.6 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.2759, allocations: 102 kB / 331.7 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.276, allocations: 95.83 kB / 331.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.2765, allocations: 423.1 kB / 332.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2765, allocations: 0 / 332.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2765, allocations: 0 / 332.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2765, allocations: 3.938 kB / 332.2 MB, free: 13.15 MB / 270.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.001251/0.2777, allocations: 0.718 MB / 332.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2778, allocations: 12.59 kB / 332.9 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.2779, allocations: 48.62 kB / 332.9 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.2783, allocations: 329 kB / 333.3 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.492e-05/0.2784, allocations: 29.53 kB / 333.3 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.528e-05/0.2785, allocations: 38.44 kB / 333.3 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008701/0.2794, allocations: 478.2 kB / 333.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.2794, allocations: 5.969 kB / 333.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.2795, allocations: 19.31 kB / 333.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2795, allocations: 9.375 kB / 333.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000939/0.2804, allocations: 488.1 kB / 334.3 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.2824, allocations: 1.16 MB / 335.5 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007602/0.2832, allocations: 400.9 kB / 335.9 MB, free: 9.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/0.2837, allocations: 274 kB / 336.1 MB, free: 9.641 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.2838, allocations: 4.438 kB / 336.1 MB, free: 9.637 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.2838, allocations: 38.95 kB / 336.2 MB, free: 9.59 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 1.934e-06/0.2838, allocations: 8 kB / 336.2 MB, free: 9.582 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.0049/0.2887, allocations: 2.432 MB / 338.6 MB, free: 7.02 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.2888, allocations: 55.97 kB / 338.7 MB, free: 6.953 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.2891, allocations: 287.3 kB / 339 MB, free: 6.664 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.2891, allocations: 37.7 kB / 339 MB, free: 6.621 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2893, allocations: 193.2 kB / 339.2 MB, free: 6.43 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.2894, allocations: 197.4 kB / 339.4 MB, free: 6.234 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.2895, allocations: 8 kB / 339.4 MB, free: 6.227 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2896, allocations: 346.8 kB / 339.7 MB, free: 5.879 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004553/0.2901, allocations: 249.2 kB / 340 MB, free: 5.637 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.2906, allocations: 296.8 kB / 340.3 MB, free: 5.34 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.291, allocations: 203.2 kB / 340.4 MB, free: 5.145 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.291, allocations: 0 / 340.4 MB, free: 5.145 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001373/0.2924, allocations: 0.7561 MB / 341.2 MB, free: 4.375 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.2924, allocations: 4 kB / 341.2 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2924, allocations: 4.031 kB / 341.2 MB, free: 4.367 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009268/0.2934, allocations: 0.4973 MB / 341.7 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.2937, allocations: 95.83 kB / 341.8 MB, free: 3.77 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.295, allocations: 1.401 MB / 343.2 MB, free: 2.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.2955, allocations: 100 kB / 343.3 MB, free: 2.219 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-05/0.2955, allocations: 23.92 kB / 343.3 MB, free: 2.195 MB / 270.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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.2958, allocations: 189.5 kB / 343.5 MB, free: 2 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.405e-05/0.2959, allocations: 39.53 kB / 343.5 MB, free: 1.961 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.296, allocations: 55.73 kB / 343.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.296, allocations: 8 kB / 343.6 MB, free: 1.895 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.296, allocations: 0 / 343.6 MB, free: 1.895 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.296, allocations: 3.984 kB / 343.6 MB, free: 1.891 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.2987, allocations: 1.481 MB / 345.1 MB, free: 336 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.2987, allocations: 4 kB / 345.1 MB, free: 332 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.299, allocations: 84.05 kB / 345.2 MB, free: 248 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007643/0.2998, allocations: 485.3 kB / 345.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.2999, allocations: 23.91 kB / 345.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.3011, allocations: 1.378 MB / 347.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3011, allocations: 11.91 kB / 347.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.303, allocations: 1.1 MB / 348.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.3033, allocations: 164.6 kB / 348.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.3034, allocations: 23.95 kB / 348.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3038, allocations: 80 kB / 348.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.304, allocations: 116.2 kB / 348.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.3041, allocations: 23.97 kB / 348.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.3043, allocations: 202 kB / 348.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3043, allocations: 4 kB / 348.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005267/0.3048, allocations: 136 kB / 348.9 MB, free: 12.4 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000234/0.3051, allocations: 131.2 kB / 349 MB, free: 12.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.3063, allocations: 0.6005 MB / 349.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3063, allocations: 4 kB / 349.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.307, allocations: 346.6 kB / 350 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005895/0.3076, allocations: 68.59 kB / 350 MB, free: 11.26 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.3113, allocations: 1.765 MB / 351.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.3117, allocations: 0.8166 MB / 352.6 MB, free: 8.617 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.3119, allocations: 51.25 kB / 352.7 MB, free: 8.562 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.312, allocations: 31.44 kB / 352.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.312, allocations: 3.938 kB / 352.7 MB, free: 8.527 MB / 286.1 MB Notification: Performance of Templates: time 0.01492/0.3269, allocations: 8.975 MB / 361.7 MB, free: 15.54 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)