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.000819/0.0008192, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.0009894/0.0009894, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.544/1.544, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004306/0.0004307, allocations: 14.66 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2381, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002814/0.2409, allocations: 2.69 MB / 329.7 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.2426, allocations: 0.9646 MB / 330.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.2428, allocations: 5.719 kB / 330.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.2431, allocations: 48.34 kB / 330.7 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002398/0.2433, allocations: 117.7 kB / 330.8 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.2438, allocations: 190.1 kB / 331 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005617/0.2444, allocations: 0.595 MB / 331.6 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.2446, allocations: 111.4 kB / 331.7 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.2449, allocations: 248.5 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.2453, allocations: 275.6 kB / 332.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.2453, allocations: 25.16 kB / 332.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.2455, allocations: 78.09 kB / 332.4 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.2456, allocations: 98.97 kB / 332.4 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002468/0.2459, allocations: 250.3 kB / 332.7 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005526/0.2464, allocations: 0.5409 MB / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2464, allocations: 1.031 kB / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2464, allocations: 0 / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.2465, allocations: 0 / 333.2 MB, free: 12.77 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.001315/0.2478, allocations: 0.725 MB / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2478, allocations: 9.219 kB / 334 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.662e-05/0.2479, allocations: 49.28 kB / 334 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.2483, allocations: 324 kB / 334.3 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.2484, allocations: 33.16 kB / 334.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.015e-05/0.2485, allocations: 50.05 kB / 334.4 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008742/0.2493, allocations: 481.3 kB / 334.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.2494, allocations: 4 kB / 334.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.965e-05/0.2494, allocations: 19.98 kB / 334.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.2494, allocations: 8 kB / 334.9 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009664/0.2504, allocations: 491.7 kB / 335.4 MB, free: 10.88 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.2526, allocations: 1.153 MB / 336.5 MB, free: 9.664 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008236/0.2534, allocations: 404.3 kB / 336.9 MB, free: 9.262 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000549/0.254, allocations: 282 kB / 337.2 MB, free: 8.984 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.254, allocations: 4.438 kB / 337.2 MB, free: 8.98 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.254, allocations: 39 kB / 337.3 MB, free: 8.934 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.455e-06/0.2541, allocations: 0 / 337.3 MB, free: 8.934 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005426/0.2595, allocations: 2.452 MB / 339.7 MB, free: 6.352 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.2596, allocations: 55.97 kB / 339.8 MB, free: 6.285 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.2599, allocations: 291.2 kB / 340.1 MB, free: 5.996 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.2599, allocations: 45.7 kB / 340.1 MB, free: 5.945 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.2601, allocations: 181.3 kB / 340.3 MB, free: 5.766 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.2602, allocations: 189.3 kB / 340.5 MB, free: 5.578 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.471e-05/0.2603, allocations: 57.69 kB / 340.5 MB, free: 5.516 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2605, allocations: 350.8 kB / 340.9 MB, free: 5.164 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.261, allocations: 249.2 kB / 341.1 MB, free: 4.922 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004996/0.2615, allocations: 292.8 kB / 341.4 MB, free: 4.629 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008022/0.2623, allocations: 434.3 kB / 341.8 MB, free: 4.199 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2623, allocations: 0 / 341.8 MB, free: 4.199 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001648/0.2639, allocations: 0.7951 MB / 342.6 MB, free: 3.391 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.264, allocations: 4 kB / 342.6 MB, free: 3.387 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.264, allocations: 11.97 kB / 342.6 MB, free: 3.375 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008982/0.2649, allocations: 0.4974 MB / 343.1 MB, free: 2.871 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.2652, allocations: 91.89 kB / 343.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.2666, allocations: 1.413 MB / 344.6 MB, free: 1.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005608/0.2672, allocations: 104.1 kB / 344.7 MB, free: 1.215 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.2672, allocations: 20 kB / 344.7 MB, free: 1.195 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.0002476/0.2675, allocations: 178.1 kB / 344.9 MB, free: 1.012 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.2676, allocations: 39.53 kB / 345 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.2677, allocations: 59.73 kB / 345 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2677, allocations: 4 kB / 345 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.2677, allocations: 96 / 345 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2677, allocations: 7.922 kB / 345 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/0.2707, allocations: 1.481 MB / 346.5 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.2707, allocations: 12.09 kB / 346.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.271, allocations: 83.89 kB / 346.6 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007522/0.2718, allocations: 485.3 kB / 347.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/0.2719, allocations: 19.97 kB / 347.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.273, allocations: 1.382 MB / 348.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.273, allocations: 0 / 348.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.2751, allocations: 1.107 MB / 349.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.2753, allocations: 160.6 kB / 349.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.784e-05/0.2754, allocations: 27.92 kB / 349.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004592/0.2759, allocations: 75.94 kB / 349.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.2761, allocations: 92.28 kB / 349.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.2762, allocations: 31.97 kB / 350 MB, free: 11.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.2764, allocations: 201.9 kB / 350.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2764, allocations: 3.938 kB / 350.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.2769, allocations: 136 kB / 350.3 MB, free: 11.43 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.0002591/0.2772, allocations: 135.2 kB / 350.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.2786, allocations: 0.6006 MB / 351 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.2786, allocations: 4.062 kB / 351 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.2793, allocations: 342.3 kB / 351.4 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.28, allocations: 76.88 kB / 351.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.284, allocations: 1.828 MB / 353.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.2844, allocations: 0.8127 MB / 354.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.2846, allocations: 47.2 kB / 354.1 MB, free: 7.523 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.582e-05/0.2847, allocations: 31.42 kB / 354.2 MB, free: 7.492 MB / 286.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2847, allocations: 0 / 354.2 MB, free: 7.492 MB / 286.1 MB Notification: Performance of Templates: time 0.01522/0.3, allocations: 9.249 MB / 363.4 MB, free: 14.23 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)