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.001783/0.001784, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002544/0.002544, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.529/1.529, allocations: 205.1 MB / 222 MB, free: 4.961 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.001363/0.001363, allocations: 47.92 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2355, allocations: 46.63 MB / 324.7 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003996/0.2395, allocations: 3.045 MB / 327.7 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.2415, allocations: 0.9895 MB / 328.7 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.2418, allocations: 5.531 kB / 328.7 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.2421, allocations: 48.09 kB / 328.8 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.2423, allocations: 117.1 kB / 328.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.2428, allocations: 186.6 kB / 329.1 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005626/0.2433, allocations: 0.6021 MB / 329.7 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.2436, allocations: 112 kB / 329.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.2439, allocations: 255.5 kB / 330 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.2442, allocations: 287.6 kB / 330.3 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.909e-05/0.2443, allocations: 29.72 kB / 330.3 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.2445, allocations: 74.5 kB / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.2446, allocations: 110.5 kB / 330.5 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.2449, allocations: 231.1 kB / 330.7 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.2455, allocations: 0.5522 MB / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2455, allocations: 0 / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2455, allocations: 0 / 331.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.2455, allocations: 1.344 kB / 331.3 MB, free: 12.91 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.001481/0.247, allocations: 0.7811 MB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.247, allocations: 8.844 kB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.2472, allocations: 53.34 kB / 332.1 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.2476, allocations: 336.2 kB / 332.5 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.2476, allocations: 33.56 kB / 332.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.961e-05/0.2477, allocations: 37.59 kB / 332.5 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009054/0.2487, allocations: 484.5 kB / 333 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.2487, allocations: 5.062 kB / 333 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.2488, allocations: 16.5 kB / 333 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2488, allocations: 8.75 kB / 333 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.2498, allocations: 477.8 kB / 333.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.2517, allocations: 1.118 MB / 334.6 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007954/0.2525, allocations: 396.3 kB / 335 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.2531, allocations: 274 kB / 335.3 MB, free: 9.398 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-05/0.2531, allocations: 4.438 kB / 335.3 MB, free: 9.395 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.2532, allocations: 39 kB / 335.3 MB, free: 9.348 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 1.683e-06/0.2532, allocations: 0 / 335.3 MB, free: 9.348 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005197/0.2584, allocations: 2.342 MB / 337.7 MB, free: 6.875 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.2585, allocations: 59.95 kB / 337.7 MB, free: 6.805 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.2588, allocations: 287.3 kB / 338 MB, free: 6.52 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.2588, allocations: 45.69 kB / 338 MB, free: 6.469 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.259, allocations: 181.3 kB / 338.2 MB, free: 6.289 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.2591, allocations: 197.2 kB / 338.4 MB, free: 6.094 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.2593, allocations: 110.2 kB / 338.5 MB, free: 5.98 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.2595, allocations: 350.8 kB / 338.9 MB, free: 5.629 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004857/0.26, allocations: 245.2 kB / 339.1 MB, free: 5.391 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005128/0.2605, allocations: 292.8 kB / 339.4 MB, free: 5.098 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007882/0.2613, allocations: 410.3 kB / 339.8 MB, free: 4.691 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2613, allocations: 3.938 kB / 339.8 MB, free: 4.688 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001689/0.263, allocations: 0.7833 MB / 340.6 MB, free: 3.891 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.2631, allocations: 4 kB / 340.6 MB, free: 3.887 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2631, allocations: 0 / 340.6 MB, free: 3.887 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.2641, allocations: 0.5091 MB / 341.1 MB, free: 3.371 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.2644, allocations: 87.83 kB / 341.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.2658, allocations: 1.397 MB / 342.6 MB, free: 1.836 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.2663, allocations: 80.03 kB / 342.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.2664, allocations: 20 kB / 342.7 MB, free: 1.738 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.0002325/0.2666, allocations: 178.1 kB / 342.8 MB, free: 1.555 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/0.2667, allocations: 39.53 kB / 342.9 MB, free: 1.516 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001323/0.2668, allocations: 59.73 kB / 342.9 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.2668, allocations: 4 kB / 342.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.2669, allocations: 0 / 342.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.2669, allocations: 3.984 kB / 342.9 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.2697, allocations: 1.45 MB / 344.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.2697, allocations: 3.938 kB / 344.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003605/0.2701, allocations: 87.89 kB / 344.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007802/0.2709, allocations: 489.4 kB / 345 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.2709, allocations: 15.98 kB / 345 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.2722, allocations: 1.378 MB / 346.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2723, allocations: 11.91 kB / 346.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.2744, allocations: 1.088 MB / 347.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.2747, allocations: 164.6 kB / 347.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.2748, allocations: 23.94 kB / 347.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.2752, allocations: 63.92 kB / 347.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.2754, allocations: 88.28 kB / 347.8 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-05/0.2755, allocations: 23.97 kB / 347.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002003/0.2757, allocations: 202 kB / 348 MB, free: 12.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2757, allocations: 0 / 348 MB, free: 12.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005537/0.2763, allocations: 140 kB / 348.1 MB, free: 12.04 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.0002794/0.2766, allocations: 135.2 kB / 348.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.2779, allocations: 0.5889 MB / 348.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.2779, allocations: 0 / 348.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.2787, allocations: 342.2 kB / 349.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.2793, allocations: 68.56 kB / 349.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.2831, allocations: 1.611 MB / 350.9 MB, free: 9.266 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.2836, allocations: 0.8166 MB / 351.7 MB, free: 8.426 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.2838, allocations: 39.28 kB / 351.7 MB, free: 8.387 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.93e-05/0.2839, allocations: 35.42 kB / 351.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2839, allocations: 4 kB / 351.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of Templates: time 0.01654/0.3004, allocations: 9.319 MB / 361.1 MB, free: 15.02 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)