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.001197/0.001197, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001355/0.001355, allocations: 190.5 kB / 16.25 MB, free: 6.625 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.438/1.438, allocations: 205.1 MB / 222.1 MB, free: 4.676 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.001146/0.001146, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2687, allocations: 46.62 MB / 324.8 MB, free: 2.066 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003795/0.2726, allocations: 3.059 MB / 327.9 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.2743, allocations: 0.9706 MB / 328.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.2746, allocations: 9.344 kB / 328.9 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.2748, allocations: 48.5 kB / 328.9 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000255/0.2751, allocations: 121.3 kB / 329 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.2756, allocations: 192.4 kB / 329.2 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005792/0.2762, allocations: 0.6282 MB / 329.9 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.2764, allocations: 130.2 kB / 330 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.2768, allocations: 278.9 kB / 330.3 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.2771, allocations: 300 kB / 330.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.235e-05/0.2772, allocations: 52.75 kB / 330.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.2774, allocations: 94.95 kB / 330.7 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.2775, allocations: 121.7 kB / 330.8 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.2778, allocations: 258.2 kB / 331.1 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.2783, allocations: 0.5818 MB / 331.7 MB, free: 13.03 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2783, allocations: 0 / 331.7 MB, free: 13.03 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2784, allocations: 0 / 331.7 MB, free: 13.03 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.2784, allocations: 0 / 331.7 MB, free: 13.03 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.001334/0.2797, allocations: 0.7823 MB / 332.4 MB, free: 12.37 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2798, allocations: 9.312 kB / 332.4 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.2799, allocations: 52.56 kB / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.2803, allocations: 335.4 kB / 332.8 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.2803, allocations: 33.53 kB / 332.9 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.2804, allocations: 43.25 kB / 332.9 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008461/0.2813, allocations: 475.5 kB / 333.4 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.2813, allocations: 7.906 kB / 333.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.491e-05/0.2814, allocations: 20 kB / 333.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.2814, allocations: 8 kB / 333.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.2823, allocations: 483.6 kB / 333.9 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.2842, allocations: 1.114 MB / 335 MB, free: 9.906 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007913/0.2851, allocations: 396.4 kB / 335.4 MB, free: 9.512 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005583/0.2856, allocations: 270 kB / 335.6 MB, free: 9.246 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.904e-05/0.2857, allocations: 8.422 kB / 335.6 MB, free: 9.238 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.2857, allocations: 42.94 kB / 335.7 MB, free: 9.188 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.204e-06/0.2857, allocations: 4 kB / 335.7 MB, free: 9.184 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005059/0.2908, allocations: 2.331 MB / 338 MB, free: 6.723 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.2909, allocations: 59.95 kB / 338.1 MB, free: 6.652 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.2912, allocations: 283.3 kB / 338.4 MB, free: 6.371 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.73e-05/0.2912, allocations: 45.69 kB / 338.4 MB, free: 6.32 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.2914, allocations: 181.3 kB / 338.6 MB, free: 6.141 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.2915, allocations: 197.3 kB / 338.8 MB, free: 5.945 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.2917, allocations: 114.2 kB / 338.9 MB, free: 5.824 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.2919, allocations: 346.8 kB / 339.2 MB, free: 5.477 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004721/0.2924, allocations: 241.2 kB / 339.5 MB, free: 5.242 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004833/0.2929, allocations: 292.7 kB / 339.7 MB, free: 4.949 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007637/0.2936, allocations: 418.3 kB / 340.1 MB, free: 4.535 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2936, allocations: 3.938 kB / 340.2 MB, free: 4.531 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001596/0.2952, allocations: 0.7834 MB / 340.9 MB, free: 3.734 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2953, allocations: 4 kB / 340.9 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.2953, allocations: 0 / 340.9 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009823/0.2963, allocations: 0.4973 MB / 341.4 MB, free: 3.227 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.2966, allocations: 91.89 kB / 341.5 MB, free: 3.137 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.298, allocations: 1.409 MB / 342.9 MB, free: 1.676 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.2986, allocations: 72.03 kB / 343 MB, free: 1.605 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.2986, allocations: 20 kB / 343 MB, free: 1.586 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.0003068/0.299, allocations: 177.3 kB / 343.2 MB, free: 1.402 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.546e-05/0.2991, allocations: 39.53 kB / 343.2 MB, free: 1.363 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.2992, allocations: 59.73 kB / 343.3 MB, free: 1.301 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2992, allocations: 8 kB / 343.3 MB, free: 1.293 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.2992, allocations: 3.984 kB / 343.3 MB, free: 1.289 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.2993, allocations: 4 kB / 343.3 MB, free: 1.285 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002993/0.3023, allocations: 1.458 MB / 344.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3023, allocations: 7.938 kB / 344.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.3026, allocations: 83.89 kB / 344.9 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007962/0.3035, allocations: 473.5 kB / 345.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.928e-05/0.3035, allocations: 27.92 kB / 345.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.3052, allocations: 1.382 MB / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3053, allocations: 0 / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.3074, allocations: 1.088 MB / 347.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.3076, allocations: 164.6 kB / 348 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.213e-05/0.3077, allocations: 23.94 kB / 348 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.3081, allocations: 59.92 kB / 348.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.3084, allocations: 96.38 kB / 348.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.3084, allocations: 23.92 kB / 348.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.3086, allocations: 205.9 kB / 348.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3086, allocations: 0 / 348.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006129/0.3093, allocations: 136 kB / 348.5 MB, free: 11.88 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.0002335/0.3095, allocations: 139.1 kB / 348.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.311, allocations: 0.6122 MB / 349.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.311, allocations: 0 / 349.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007474/0.3118, allocations: 342.6 kB / 349.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.3124, allocations: 76.55 kB / 349.7 MB, free: 10.72 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.3161, allocations: 1.605 MB / 351.3 MB, free: 9.078 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.3166, allocations: 0.8241 MB / 352.1 MB, free: 8.227 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001909/0.3168, allocations: 39.27 kB / 352.1 MB, free: 8.188 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.3169, allocations: 39.42 kB / 352.2 MB, free: 8.148 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3169, allocations: 0 / 352.2 MB, free: 8.148 MB / 286.1 MB Notification: Performance of Templates: time 0.01533/0.3322, allocations: 9.849 MB / 362 MB, free: 14.29 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)