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.001179/0.001179, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 195 kB / 16.53 MB, free: 6.391 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.467/1.467, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001188/0.001188, allocations: 52.39 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2388, allocations: 46.64 MB / 325.3 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004219/0.2431, allocations: 3.017 MB / 328.3 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.2452, allocations: 0.9779 MB / 329.3 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.2454, allocations: 8.469 kB / 329.3 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.2457, allocations: 69.56 kB / 329.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.246, allocations: 133.1 kB / 329.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.2465, allocations: 218.9 kB / 329.7 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.2471, allocations: 0.632 MB / 330.4 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.2473, allocations: 135.5 kB / 330.5 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.2477, allocations: 273.8 kB / 330.8 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.248, allocations: 297.4 kB / 331 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-05/0.2481, allocations: 52.12 kB / 331.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.2483, allocations: 94.2 kB / 331.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.2485, allocations: 122.3 kB / 331.3 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.2487, allocations: 255 kB / 331.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005692/0.2493, allocations: 0.5806 MB / 332.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2493, allocations: 0 / 332.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2493, allocations: 0 / 332.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.2493, allocations: 4 kB / 332.1 MB, free: 12.88 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.001429/0.2508, allocations: 0.7747 MB / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2508, allocations: 13.31 kB / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.2509, allocations: 52.56 kB / 333 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.2514, allocations: 332.2 kB / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.2514, allocations: 28.97 kB / 333.3 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.872e-05/0.2515, allocations: 46.52 kB / 333.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008307/0.2523, allocations: 473.1 kB / 333.8 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.2524, allocations: 11.89 kB / 333.9 MB, free: 11.37 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.2524, allocations: 12 kB / 333.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2524, allocations: 12 kB / 333.9 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009109/0.2534, allocations: 483.7 kB / 334.3 MB, free: 10.87 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.2557, allocations: 1.121 MB / 335.5 MB, free: 9.695 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008033/0.2565, allocations: 392.4 kB / 335.9 MB, free: 9.305 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005245/0.257, allocations: 266.1 kB / 336.1 MB, free: 9.043 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.2571, allocations: 8.438 kB / 336.1 MB, free: 9.035 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.2571, allocations: 42.98 kB / 336.2 MB, free: 8.984 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.2571, allocations: 0 / 336.2 MB, free: 8.984 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005237/0.2624, allocations: 2.331 MB / 338.5 MB, free: 6.523 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.2624, allocations: 63.91 kB / 338.6 MB, free: 6.449 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.2628, allocations: 287.3 kB / 338.8 MB, free: 6.164 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.2628, allocations: 41.7 kB / 338.9 MB, free: 6.117 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.263, allocations: 185.3 kB / 339.1 MB, free: 5.934 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.2631, allocations: 201.2 kB / 339.3 MB, free: 5.734 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.2633, allocations: 110.2 kB / 339.4 MB, free: 5.617 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.2635, allocations: 346.8 kB / 339.7 MB, free: 5.27 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004526/0.264, allocations: 241.2 kB / 339.9 MB, free: 5.035 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.2645, allocations: 288.8 kB / 340.2 MB, free: 4.746 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007441/0.2652, allocations: 414.3 kB / 340.6 MB, free: 4.332 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2652, allocations: 0 / 340.6 MB, free: 4.332 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001597/0.2668, allocations: 0.7872 MB / 341.4 MB, free: 3.531 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2669, allocations: 8 kB / 341.4 MB, free: 3.523 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2669, allocations: 3.984 kB / 341.4 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009952/0.2679, allocations: 0.4973 MB / 341.9 MB, free: 3.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.2682, allocations: 87.89 kB / 342 MB, free: 2.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.2695, allocations: 1.405 MB / 343.4 MB, free: 1.473 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.27, allocations: 76.06 kB / 343.5 MB, free: 1.398 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.2701, allocations: 19.98 kB / 343.5 MB, free: 1.379 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.0002425/0.2703, allocations: 185.3 kB / 343.7 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.04e-05/0.2704, allocations: 39.53 kB / 343.7 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.2706, allocations: 59.73 kB / 343.8 MB, free: 1.086 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2706, allocations: 4 kB / 343.8 MB, free: 1.082 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2706, allocations: 0 / 343.8 MB, free: 1.082 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2706, allocations: 3.984 kB / 343.8 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.2734, allocations: 1.454 MB / 345.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.2734, allocations: 3.938 kB / 345.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.2737, allocations: 87.83 kB / 345.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007556/0.2745, allocations: 485.6 kB / 345.8 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.2746, allocations: 19.92 kB / 345.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.2757, allocations: 1.378 MB / 347.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.2757, allocations: 8.156 kB / 347.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.2778, allocations: 1.088 MB / 348.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.278, allocations: 164.6 kB / 348.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.096e-05/0.2781, allocations: 23.94 kB / 348.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.2786, allocations: 59.92 kB / 348.5 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.2788, allocations: 92.3 kB / 348.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.2788, allocations: 23.97 kB / 348.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.279, allocations: 202 kB / 348.9 MB, free: 11.81 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.279, allocations: 0 / 348.9 MB, free: 11.81 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004958/0.2795, allocations: 136 kB / 349 MB, free: 11.68 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.0002411/0.2798, allocations: 143.1 kB / 349.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.2811, allocations: 0.6083 MB / 349.7 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2811, allocations: 0 / 349.7 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.2819, allocations: 342.3 kB / 350.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.2825, allocations: 80.77 kB / 350.1 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003665/0.2861, allocations: 1.437 MB / 351.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.2865, allocations: 0.8319 MB / 352.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.2867, allocations: 39.2 kB / 352.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2868, allocations: 39.42 kB / 352.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of SimCode: time 4.8e-07/0.2868, allocations: 0 / 352.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of Templates: time 0.01558/0.3024, allocations: 9.935 MB / 362.4 MB, free: 14.16 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)