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.001191/0.001192, 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.001366/0.001366, allocations: 194.4 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.484/1.484, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001245/0.001245, allocations: 51.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2607, allocations: 46.63 MB / 324.8 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00385/0.2646, allocations: 3.055 MB / 327.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.2664, allocations: 0.9779 MB / 328.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.2665, allocations: 9.719 kB / 328.9 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.2668, allocations: 43.84 kB / 328.9 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.267, allocations: 121.5 kB / 329 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.2675, allocations: 193.1 kB / 329.2 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000623/0.2682, allocations: 0.631 MB / 329.9 MB, free: 14.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.2685, allocations: 127.5 kB / 330 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003815/0.2688, allocations: 278.2 kB / 330.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.2692, allocations: 301.1 kB / 330.6 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-05/0.2693, allocations: 47.19 kB / 330.6 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.2695, allocations: 103.4 kB / 330.7 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.2696, allocations: 121.3 kB / 330.8 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.2699, allocations: 250.8 kB / 331.1 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007404/0.2706, allocations: 0.5811 MB / 331.6 MB, free: 12.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2706, allocations: 0 / 331.6 MB, free: 12.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.2706, allocations: 1.25 kB / 331.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.2706, allocations: 0 / 331.7 MB, free: 12.86 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.001448/0.2721, allocations: 0.7857 MB / 332.4 MB, free: 12.2 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2722, allocations: 9.031 kB / 332.4 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.2723, allocations: 56.97 kB / 332.5 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.2727, allocations: 331.5 kB / 332.8 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.2727, allocations: 33.47 kB / 332.9 MB, free: 11.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.961e-05/0.2728, allocations: 42.88 kB / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009333/0.2738, allocations: 478.5 kB / 333.4 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.2738, allocations: 7.906 kB / 333.4 MB, free: 11.47 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.2739, allocations: 16 kB / 333.4 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2739, allocations: 8 kB / 333.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.2749, allocations: 475.7 kB / 333.9 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.2769, allocations: 1.114 MB / 335 MB, free: 9.816 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.2777, allocations: 400.3 kB / 335.4 MB, free: 9.418 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000503/0.2782, allocations: 270 kB / 335.6 MB, free: 9.152 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.2783, allocations: 8.422 kB / 335.6 MB, free: 9.145 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2783, allocations: 39 kB / 335.7 MB, free: 9.098 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 1.643e-06/0.2783, allocations: 0 / 335.7 MB, free: 9.098 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.00508/0.2834, allocations: 2.339 MB / 338 MB, free: 6.629 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2835, allocations: 55.97 kB / 338.1 MB, free: 6.562 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.2838, allocations: 287.3 kB / 338.4 MB, free: 6.277 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.511e-05/0.2838, allocations: 45.7 kB / 338.4 MB, free: 6.227 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.2841, allocations: 185.3 kB / 338.6 MB, free: 6.043 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002643/0.2843, allocations: 193.3 kB / 338.8 MB, free: 5.852 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.2845, allocations: 110.2 kB / 338.9 MB, free: 5.734 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002514/0.2848, allocations: 350.8 kB / 339.2 MB, free: 5.383 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.2852, allocations: 245.2 kB / 339.5 MB, free: 5.145 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.2858, allocations: 288.8 kB / 339.7 MB, free: 4.855 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007402/0.2865, allocations: 422.2 kB / 340.1 MB, free: 4.438 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2865, allocations: 0 / 340.1 MB, free: 4.438 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001601/0.2881, allocations: 0.7833 MB / 340.9 MB, free: 3.641 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2882, allocations: 4 kB / 340.9 MB, free: 3.637 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.2882, allocations: 0 / 340.9 MB, free: 3.637 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.2892, allocations: 0.5013 MB / 341.4 MB, free: 3.129 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.2896, allocations: 83.89 kB / 341.5 MB, free: 3.047 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/0.2916, allocations: 1.409 MB / 342.9 MB, free: 1.586 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.2921, allocations: 84.05 kB / 343 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.2922, allocations: 16.08 kB / 343 MB, free: 1.488 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.0002803/0.2924, allocations: 177.2 kB / 343.2 MB, free: 1.305 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2926, allocations: 43.52 kB / 343.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001567/0.2927, allocations: 59.73 kB / 343.3 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.2927, allocations: 8 kB / 343.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.2928, allocations: 0 / 343.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.2928, allocations: 4 kB / 343.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/0.2955, allocations: 1.446 MB / 344.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.2956, allocations: 11.94 kB / 344.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.2959, allocations: 83.89 kB / 344.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007514/0.2967, allocations: 485.4 kB / 345.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-05/0.2967, allocations: 23.92 kB / 345.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.2979, allocations: 1.382 MB / 346.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.298, allocations: 0 / 346.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.2998, allocations: 1.088 MB / 347.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.3001, allocations: 164.6 kB / 348 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.791e-05/0.3002, allocations: 23.94 kB / 348 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.3006, allocations: 56.02 kB / 348.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.3008, allocations: 96.23 kB / 348.2 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.3008, allocations: 27.97 kB / 348.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.301, allocations: 201.9 kB / 348.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.301, allocations: 0 / 348.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.3015, allocations: 136 kB / 348.5 MB, free: 11.79 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.0002393/0.3017, allocations: 131.2 kB / 348.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.303, allocations: 0.6122 MB / 349.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.303, allocations: 0 / 349.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/0.3037, allocations: 350.5 kB / 349.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.3043, allocations: 80.62 kB / 349.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.3078, allocations: 1.605 MB / 351.3 MB, free: 8.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.3082, allocations: 0.8241 MB / 352.1 MB, free: 8.129 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.3084, allocations: 43.27 kB / 352.1 MB, free: 8.086 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3085, allocations: 39.42 kB / 352.2 MB, free: 8.047 MB / 286.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3085, allocations: 0 / 352.2 MB, free: 8.047 MB / 286.1 MB Notification: Performance of Templates: time 0.01496/0.3235, allocations: 9.853 MB / 362 MB, free: 14.18 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)