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.0009256/0.0009257, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.00108/0.00108, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 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.4 MB / 222.1 MB, free: 5.379 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.0004564/0.0004564, allocations: 12 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2843, allocations: 47.59 MB / 326.5 MB, free: 1.641 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002793/0.2871, allocations: 2.575 MB / 329 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.2889, allocations: 0.9461 MB / 330 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.2892, allocations: 4.75 kB / 330 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.2894, allocations: 45.47 kB / 330 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.2896, allocations: 119.5 kB / 330.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.2901, allocations: 159.1 kB / 330.3 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005846/0.2907, allocations: 0.5621 MB / 330.9 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.291, allocations: 102 kB / 331 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003436/0.2913, allocations: 236.3 kB / 331.2 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003629/0.2917, allocations: 270.9 kB / 331.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.258e-05/0.2917, allocations: 24.75 kB / 331.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.2919, allocations: 66.22 kB / 331.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.292, allocations: 98.19 kB / 331.7 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2922, allocations: 99.45 kB / 331.8 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004308/0.2926, allocations: 422.4 kB / 332.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2926, allocations: 1.219 kB / 332.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2926, allocations: 0 / 332.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2926, allocations: 0 / 332.2 MB, free: 13.41 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.00125/0.2939, allocations: 0.7248 MB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2939, allocations: 9.062 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2941, allocations: 48.28 kB / 332.9 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.2945, allocations: 323.1 kB / 333.3 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.468e-05/0.2945, allocations: 28.75 kB / 333.3 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.2946, allocations: 38.69 kB / 333.3 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009769/0.2956, allocations: 481.5 kB / 333.8 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.2956, allocations: 9.062 kB / 333.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.027e-05/0.2957, allocations: 15.47 kB / 333.8 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.2957, allocations: 9.719 kB / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009566/0.2967, allocations: 491.7 kB / 334.3 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.2989, allocations: 1.153 MB / 335.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.2998, allocations: 408.9 kB / 335.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000496/0.3003, allocations: 278 kB / 336.1 MB, free: 9.777 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.3003, allocations: 4.438 kB / 336.1 MB, free: 9.773 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3004, allocations: 42.95 kB / 336.2 MB, free: 9.723 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 1.903e-06/0.3004, allocations: 0 / 336.2 MB, free: 9.723 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.004906/0.3053, allocations: 2.429 MB / 338.6 MB, free: 7.164 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.3053, allocations: 55.97 kB / 338.7 MB, free: 7.098 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.3057, allocations: 287.3 kB / 338.9 MB, free: 6.809 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.377e-05/0.3057, allocations: 41.7 kB / 339 MB, free: 6.762 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.3059, allocations: 193.2 kB / 339.2 MB, free: 6.57 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.306, allocations: 197.3 kB / 339.4 MB, free: 6.375 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.3061, allocations: 8 kB / 339.4 MB, free: 6.367 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.3063, allocations: 350.8 kB / 339.7 MB, free: 6.016 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/0.3067, allocations: 245.2 kB / 340 MB, free: 5.777 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.3072, allocations: 292.8 kB / 340.2 MB, free: 5.484 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.3076, allocations: 211.2 kB / 340.5 MB, free: 5.281 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3076, allocations: 0 / 340.5 MB, free: 5.281 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001359/0.309, allocations: 0.7523 MB / 341.2 MB, free: 4.516 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.309, allocations: 4 kB / 341.2 MB, free: 4.512 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3091, allocations: 3.938 kB / 341.2 MB, free: 4.508 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009177/0.31, allocations: 0.4973 MB / 341.7 MB, free: 4.004 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.3103, allocations: 91.89 kB / 341.8 MB, free: 3.914 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.3116, allocations: 1.409 MB / 343.2 MB, free: 2.453 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004439/0.312, allocations: 108 kB / 343.3 MB, free: 2.348 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.3121, allocations: 23.97 kB / 343.3 MB, free: 2.324 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002206/0.3123, allocations: 177.6 kB / 343.5 MB, free: 2.141 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.288e-05/0.3124, allocations: 39.53 kB / 343.5 MB, free: 2.102 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001438/0.3125, allocations: 59.73 kB / 343.6 MB, free: 2.039 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3125, allocations: 4 kB / 343.6 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3126, allocations: 0 / 343.6 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.3126, allocations: 3.984 kB / 343.6 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.3152, allocations: 1.489 MB / 345.1 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.3152, allocations: 4.031 kB / 345.1 MB, free: 468 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.3156, allocations: 87.89 kB / 345.2 MB, free: 380 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007513/0.3163, allocations: 473.4 kB / 345.7 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.064e-05/0.3164, allocations: 23.97 kB / 345.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.3176, allocations: 1.374 MB / 347.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3176, allocations: 3.938 kB / 347.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.3196, allocations: 1.115 MB / 348.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.3198, allocations: 164.6 kB / 348.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.163e-05/0.3199, allocations: 23.95 kB / 348.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.3203, allocations: 72.06 kB / 348.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.3205, allocations: 116.2 kB / 348.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.3206, allocations: 31.97 kB / 348.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.3208, allocations: 201.9 kB / 348.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3208, allocations: 0 / 348.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.3214, allocations: 136 kB / 348.9 MB, free: 12.54 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002713/0.3216, allocations: 135.2 kB / 349 MB, free: 12.4 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3229, allocations: 0.5966 MB / 349.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3229, allocations: 4.062 kB / 349.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007108/0.3236, allocations: 346.2 kB / 350 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005795/0.3242, allocations: 72.91 kB / 350 MB, free: 11.4 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.328, allocations: 1.765 MB / 351.8 MB, free: 9.598 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.3285, allocations: 0.8127 MB / 352.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.3287, allocations: 51.25 kB / 352.7 MB, free: 8.703 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.33e-05/0.3288, allocations: 35.38 kB / 352.7 MB, free: 8.668 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3288, allocations: 0 / 352.7 MB, free: 8.668 MB / 286.1 MB Notification: Performance of Templates: time 0.0158/0.3446, allocations: 8.975 MB / 361.7 MB, free: 15.68 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)