Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001648/0.001648, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002291/0.002291, allocations: 195.9 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.1 MB / 222 MB, free: 4.738 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.001909/0.001909, allocations: 51.94 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2516, allocations: 46.62 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005836/0.2575, allocations: 3.062 MB / 327.7 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002691/0.2602, allocations: 0.9824 MB / 328.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/0.2605, allocations: 9.656 kB / 328.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.2608, allocations: 49.38 kB / 328.8 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.2612, allocations: 113 kB / 328.9 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006057/0.2619, allocations: 185.7 kB / 329.1 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006146/0.2625, allocations: 0.6028 MB / 329.7 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.2627, allocations: 111.3 kB / 329.8 MB, free: 14.03 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004483/0.2632, allocations: 250.9 kB / 330 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.2637, allocations: 288.4 kB / 330.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2638, allocations: 33.72 kB / 330.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002608/0.2641, allocations: 82.36 kB / 330.4 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.2643, allocations: 102.8 kB / 330.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003374/0.2646, allocations: 227 kB / 330.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007418/0.2654, allocations: 0.5594 MB / 331.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2654, allocations: 4.969 kB / 331.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2654, allocations: 0 / 331.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2654, allocations: 0 / 331.3 MB, free: 13.01 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.002001/0.2674, allocations: 0.7743 MB / 332.1 MB, free: 12.37 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.2675, allocations: 8.969 kB / 332.1 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.2677, allocations: 53.84 kB / 332.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/0.2683, allocations: 330.7 kB / 332.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.716e-05/0.2684, allocations: 34.91 kB / 332.5 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.2685, allocations: 41.91 kB / 332.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2698, allocations: 475.6 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2699, allocations: 1.125 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/0.2699, allocations: 15.72 kB / 333 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.2699, allocations: 12.09 kB / 333 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.2714, allocations: 483.7 kB / 333.5 MB, free: 11.21 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002991/0.2744, allocations: 1.121 MB / 334.6 MB, free: 10.03 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.2756, allocations: 392.9 kB / 335 MB, free: 9.637 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008054/0.2765, allocations: 270.1 kB / 335.3 MB, free: 9.371 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.2765, allocations: 4.438 kB / 335.3 MB, free: 9.367 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.981e-05/0.2766, allocations: 42.94 kB / 335.3 MB, free: 9.316 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.835e-06/0.2766, allocations: 4 kB / 335.3 MB, free: 9.312 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.007689/0.2843, allocations: 2.339 MB / 337.7 MB, free: 6.844 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.2844, allocations: 59.97 kB / 337.7 MB, free: 6.773 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.2849, allocations: 287.3 kB / 338 MB, free: 6.488 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-05/0.285, allocations: 37.7 kB / 338 MB, free: 6.445 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.2852, allocations: 185.3 kB / 338.2 MB, free: 6.262 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.2855, allocations: 193.3 kB / 338.4 MB, free: 6.07 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.2857, allocations: 110.2 kB / 338.5 MB, free: 5.957 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2858, allocations: 346.8 kB / 338.8 MB, free: 5.609 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007487/0.2866, allocations: 245.2 kB / 339.1 MB, free: 5.371 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000831/0.2874, allocations: 284.8 kB / 339.4 MB, free: 5.086 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.2886, allocations: 414.3 kB / 339.8 MB, free: 4.676 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.2886, allocations: 0 / 339.8 MB, free: 4.676 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002534/0.2912, allocations: 0.7911 MB / 340.6 MB, free: 3.871 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.2912, allocations: 12.03 kB / 340.6 MB, free: 3.859 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2912, allocations: 0 / 340.6 MB, free: 3.859 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.2926, allocations: 0.5012 MB / 341.1 MB, free: 3.352 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005682/0.2932, allocations: 87.89 kB / 341.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/0.2951, allocations: 1.401 MB / 342.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.2957, allocations: 71.94 kB / 342.6 MB, free: 1.742 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.2958, allocations: 23.98 kB / 342.7 MB, free: 1.719 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 (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.0002901/0.2961, allocations: 186.1 kB / 342.8 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.2962, allocations: 43.52 kB / 342.9 MB, free: 1.484 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.2964, allocations: 59.73 kB / 342.9 MB, free: 1.422 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2964, allocations: 4 kB / 342.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.2964, allocations: 0 / 342.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.2964, allocations: 3.984 kB / 342.9 MB, free: 1.414 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/0.2993, allocations: 1.45 MB / 344.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2993, allocations: 7.875 kB / 344.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003623/0.2997, allocations: 84.05 kB / 344.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007921/0.3005, allocations: 493.3 kB / 345 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.3006, allocations: 19.97 kB / 345 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3018, allocations: 1.374 MB / 346.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.3018, allocations: 8.016 kB / 346.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.3038, allocations: 1.08 MB / 347.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.304, allocations: 168.6 kB / 347.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-05/0.3041, allocations: 19.94 kB / 347.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.3046, allocations: 63.92 kB / 347.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.3048, allocations: 92.28 kB / 347.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.223e-05/0.3048, allocations: 19.98 kB / 347.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.305, allocations: 205.9 kB / 348 MB, free: 12.15 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.305, allocations: 3.938 kB / 348 MB, free: 12.15 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004719/0.3055, allocations: 140 kB / 348.1 MB, free: 12.01 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 (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.0002163/0.3057, allocations: 131.2 kB / 348.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.3069, allocations: 0.5889 MB / 348.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.307, allocations: 0 / 348.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006969/0.3077, allocations: 342.2 kB / 349.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/0.3083, allocations: 68.92 kB / 349.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.3119, allocations: 1.61 MB / 350.9 MB, free: 9.238 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.3123, allocations: 0.8205 MB / 351.7 MB, free: 8.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001885/0.3125, allocations: 47.25 kB / 351.7 MB, free: 8.348 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.427e-05/0.3126, allocations: 31.42 kB / 351.8 MB, free: 8.316 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3126, allocations: 3.938 kB / 351.8 MB, free: 8.312 MB / 286.1 MB Notification: Performance of Templates: time 0.01449/0.3271, allocations: 9.327 MB / 361.1 MB, free: 14.98 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)