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.001032/0.001032, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.006635/0.006635, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.545/1.545, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.000527/0.0005271, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2692, allocations: 47.57 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003486/0.2728, allocations: 2.694 MB / 329.7 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.275, allocations: 0.9688 MB / 330.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.2752, allocations: 9.844 kB / 330.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.2754, allocations: 44.94 kB / 330.7 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.2757, allocations: 112.4 kB / 330.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.2763, allocations: 190.4 kB / 331 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006717/0.2769, allocations: 0.5982 MB / 331.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/0.2773, allocations: 116 kB / 331.7 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004131/0.2777, allocations: 244.3 kB / 332 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.2781, allocations: 275.1 kB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.363e-05/0.2782, allocations: 25.31 kB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.2783, allocations: 74.73 kB / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2785, allocations: 94.08 kB / 332.4 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.2788, allocations: 259.1 kB / 332.7 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005882/0.2794, allocations: 0.549 MB / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.2794, allocations: 0 / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2794, allocations: 0 / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.2794, allocations: 1.219 kB / 333.2 MB, free: 12.77 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.001447/0.2809, allocations: 0.7171 MB / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.2809, allocations: 12.61 kB / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.281, allocations: 49.22 kB / 334 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004346/0.2815, allocations: 323.8 kB / 334.3 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.2815, allocations: 33.72 kB / 334.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.2816, allocations: 42.47 kB / 334.4 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.2826, allocations: 485.9 kB / 334.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.2826, allocations: 4 kB / 334.9 MB, free: 11.37 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.947e-05/0.2827, allocations: 16 kB / 334.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.2827, allocations: 8 kB / 334.9 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.2836, allocations: 495.7 kB / 335.4 MB, free: 10.87 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.2859, allocations: 1.153 MB / 336.5 MB, free: 9.656 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.2867, allocations: 404.4 kB / 336.9 MB, free: 9.254 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.2873, allocations: 278 kB / 337.2 MB, free: 8.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.2873, allocations: 4.438 kB / 337.2 MB, free: 8.977 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.2873, allocations: 42.94 kB / 337.3 MB, free: 8.926 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.2874, allocations: 0 / 337.3 MB, free: 8.926 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005374/0.2927, allocations: 2.448 MB / 339.7 MB, free: 6.348 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.2928, allocations: 59.97 kB / 339.8 MB, free: 6.277 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.2931, allocations: 287.2 kB / 340 MB, free: 5.992 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.2932, allocations: 45.69 kB / 340.1 MB, free: 5.941 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.2933, allocations: 181.3 kB / 340.3 MB, free: 5.762 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.2935, allocations: 193.3 kB / 340.5 MB, free: 5.57 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.2936, allocations: 57.69 kB / 340.5 MB, free: 5.508 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.2938, allocations: 346.8 kB / 340.9 MB, free: 5.16 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005151/0.2943, allocations: 253.2 kB / 341.1 MB, free: 4.914 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005136/0.2949, allocations: 292.8 kB / 341.4 MB, free: 4.621 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007899/0.2957, allocations: 430.3 kB / 341.8 MB, free: 4.195 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2957, allocations: 0 / 341.8 MB, free: 4.195 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001757/0.2974, allocations: 0.7912 MB / 342.6 MB, free: 3.391 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.2975, allocations: 15.88 kB / 342.6 MB, free: 3.375 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2975, allocations: 0 / 342.6 MB, free: 3.375 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.2985, allocations: 0.4973 MB / 343.1 MB, free: 2.871 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.2989, allocations: 91.89 kB / 343.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.3003, allocations: 1.421 MB / 344.6 MB, free: 1.309 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/0.3009, allocations: 104 kB / 344.7 MB, free: 1.207 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.3009, allocations: 20 kB / 344.7 MB, free: 1.188 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.0003204/0.3013, allocations: 174.2 kB / 344.9 MB, free: 1.008 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.492e-05/0.3014, allocations: 39.52 kB / 345 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.3015, allocations: 55.75 kB / 345 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.3016, allocations: 11.98 kB / 345 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.3016, allocations: 0 / 345 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3016, allocations: 0 / 345 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3046, allocations: 1.485 MB / 346.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/0.3046, allocations: 3.938 kB / 346.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.305, allocations: 92.05 kB / 346.6 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.3058, allocations: 485.3 kB / 347.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.3058, allocations: 19.98 kB / 347.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.3071, allocations: 1.382 MB / 348.5 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3071, allocations: 4.031 kB / 348.5 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.3091, allocations: 1.1 MB / 349.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.3094, allocations: 168.6 kB / 349.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.715e-05/0.3095, allocations: 19.94 kB / 349.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004387/0.31, allocations: 79.92 kB / 349.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.3102, allocations: 92.28 kB / 349.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/0.3103, allocations: 27.97 kB / 350 MB, free: 11.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002141/0.3105, allocations: 202 kB / 350.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.764e-06/0.3105, allocations: 3.938 kB / 350.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.311, allocations: 139.9 kB / 350.3 MB, free: 11.42 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.0002791/0.3113, allocations: 139 kB / 350.4 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3126, allocations: 0.6045 MB / 351 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3126, allocations: 0 / 351 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006951/0.3133, allocations: 346.7 kB / 351.4 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.314, allocations: 68.55 kB / 351.4 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.318, allocations: 1.832 MB / 353.3 MB, free: 8.402 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3184, allocations: 0.8205 MB / 354.1 MB, free: 7.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001986/0.3186, allocations: 35.28 kB / 354.1 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.646e-05/0.3187, allocations: 35.42 kB / 354.2 MB, free: 7.484 MB / 286.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3188, allocations: 0 / 354.2 MB, free: 7.484 MB / 286.1 MB Notification: Performance of Templates: time 0.01514/0.3339, allocations: 9.245 MB / 363.4 MB, free: 14.23 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)