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.001243/0.001243, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00171/0.001711, allocations: 177.3 kB / 15.94 MB, free: 228 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.393/1.393, allocations: 205.4 MB / 222.1 MB, free: 5.539 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.0004291/0.0004293, allocations: 12 kB / 278.8 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2558, allocations: 47.59 MB / 326.4 MB, free: 1.488 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002587/0.2584, allocations: 2.447 MB / 328.9 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.2601, allocations: 0.9649 MB / 329.9 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.2603, allocations: 9.281 kB / 329.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.2604, allocations: 44.52 kB / 329.9 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003004/0.2607, allocations: 149.4 kB / 330 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.2612, allocations: 164.1 kB / 330.2 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.2616, allocations: 402.8 kB / 330.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.2618, allocations: 102.6 kB / 330.7 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.2621, allocations: 237.2 kB / 330.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.2624, allocations: 261.8 kB / 331.2 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.522e-05/0.2625, allocations: 25.78 kB / 331.2 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.2627, allocations: 67.53 kB / 331.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.2628, allocations: 94.8 kB / 331.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.651e-05/0.2629, allocations: 99.39 kB / 331.5 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003986/0.2633, allocations: 425 kB / 331.9 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.2633, allocations: 0 / 331.9 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2633, allocations: 4 kB / 331.9 MB, free: 13.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2633, allocations: 0.9375 kB / 331.9 MB, free: 13.41 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.001301/0.2646, allocations: 0.721 MB / 332.6 MB, free: 12.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.2647, allocations: 8.781 kB / 332.6 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/0.2648, allocations: 48.06 kB / 332.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000385/0.2651, allocations: 321.9 kB / 333 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.2652, allocations: 29.88 kB / 333 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.2653, allocations: 42.62 kB / 333.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008173/0.2661, allocations: 474.1 kB / 333.5 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.2661, allocations: 4.906 kB / 333.5 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.756e-05/0.2662, allocations: 16.31 kB / 333.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2662, allocations: 9.031 kB / 333.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.2675, allocations: 494.9 kB / 334 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.2701, allocations: 1.153 MB / 335.2 MB, free: 10.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.2714, allocations: 400.9 kB / 335.6 MB, free: 10.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.2714, allocations: 8.422 kB / 335.6 MB, free: 10.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.2715, allocations: 39 kB / 335.6 MB, free: 10.13 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.2715, allocations: 0 / 335.6 MB, free: 10.13 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.007699/0.2792, allocations: 2.418 MB / 338 MB, free: 7.582 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.2793, allocations: 63.97 kB / 338.1 MB, free: 7.508 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.2798, allocations: 279.3 kB / 338.4 MB, free: 7.227 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.33e-05/0.2799, allocations: 41.7 kB / 338.4 MB, free: 7.18 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.2801, allocations: 197.2 kB / 338.6 MB, free: 6.984 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.2803, allocations: 185.4 kB / 338.8 MB, free: 6.801 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.2804, allocations: 12 kB / 338.8 MB, free: 6.789 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.2806, allocations: 350.7 kB / 339.1 MB, free: 6.438 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006971/0.2813, allocations: 249.2 kB / 339.4 MB, free: 6.195 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/0.282, allocations: 292.8 kB / 339.7 MB, free: 5.902 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006174/0.2827, allocations: 211.2 kB / 339.9 MB, free: 5.699 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2827, allocations: 0 / 339.9 MB, free: 5.699 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002192/0.2849, allocations: 0.7523 MB / 340.6 MB, free: 4.934 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.2849, allocations: 4 kB / 340.6 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2849, allocations: 0 / 340.6 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.2863, allocations: 0.4934 MB / 341.1 MB, free: 4.43 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005374/0.2869, allocations: 95.89 kB / 341.2 MB, free: 4.336 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.2888, allocations: 1.398 MB / 342.6 MB, free: 2.887 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008248/0.2897, allocations: 108.1 kB / 342.7 MB, free: 2.781 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.337e-05/0.2898, allocations: 19.98 kB / 342.7 MB, free: 2.762 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 (58): * Single equations (assignments): 56 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003583/0.2901, allocations: 173.6 kB / 342.9 MB, free: 2.582 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.2903, allocations: 43.48 kB / 343 MB, free: 2.539 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.2905, allocations: 55.73 kB / 343 MB, free: 2.48 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.2905, allocations: 15.94 kB / 343 MB, free: 2.465 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.2905, allocations: 0 / 343 MB, free: 2.465 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.2905, allocations: 11.92 kB / 343 MB, free: 2.453 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005024/0.2956, allocations: 1.47 MB / 344.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.2956, allocations: 160 / 344.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/0.2964, allocations: 91.83 kB / 344.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.298, allocations: 477.4 kB / 345.1 MB, free: 344 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.684e-05/0.2981, allocations: 23.97 kB / 345.1 MB, free: 320 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002091/0.3002, allocations: 1.374 MB / 346.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3002, allocations: 0 / 346.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003804/0.304, allocations: 1.151 MB / 347.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.3045, allocations: 172.6 kB / 347.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.3047, allocations: 16 kB / 347.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008667/0.3056, allocations: 83.92 kB / 347.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/0.3059, allocations: 112.2 kB / 348 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.237e-05/0.306, allocations: 23.97 kB / 348 MB, free: 13.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003488/0.3064, allocations: 201.9 kB / 348.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3064, allocations: 4 kB / 348.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0009082/0.3073, allocations: 128 kB / 348.3 MB, free: 12.92 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003629/0.3077, allocations: 147.2 kB / 348.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.31, allocations: 0.6006 MB / 349.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.31, allocations: 0 / 349.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.3113, allocations: 346.2 kB / 349.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007885/0.3121, allocations: 60.92 kB / 349.5 MB, free: 11.78 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007041/0.3192, allocations: 1.765 MB / 351.2 MB, free: 9.977 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/0.32, allocations: 0.8326 MB / 352.1 MB, free: 9.117 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.3203, allocations: 43.25 kB / 352.1 MB, free: 9.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.3205, allocations: 31.44 kB / 352.1 MB, free: 9.039 MB / 286.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3205, allocations: 0 / 352.1 MB, free: 9.039 MB / 286.1 MB Notification: Performance of Templates: time 0.02803/0.3486, allocations: 8.924 MB / 361.1 MB, free: 108 kB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: