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.005841/0.005841, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.0013/0.0013, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.505/1.505, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001233/0.001233, allocations: 54.39 kB / 326.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.114, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004949/0.119, allocations: 3.02 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1213, allocations: 0.9785 MB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.1216, allocations: 11.94 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002836/0.1219, allocations: 63.31 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003047/0.1223, allocations: 138.9 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.1229, allocations: 223.5 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006998/0.1236, allocations: 0.6395 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1239, allocations: 136.2 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.1243, allocations: 275.1 kB / 378.6 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.1247, allocations: 302.9 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-05/0.1248, allocations: 48 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.1251, allocations: 103.9 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.1252, allocations: 127.6 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002514/0.1255, allocations: 250.8 kB / 379.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006812/0.1262, allocations: 0.584 MB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1262, allocations: 0 / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1262, allocations: 0 / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1262, allocations: 0 / 380 MB, free: 10.41 MB / 318.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.001499/0.1277, allocations: 0.7913 MB / 380.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1278, allocations: 8.031 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.1279, allocations: 52.38 kB / 380.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005096/0.1284, allocations: 335.3 kB / 381.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.1285, allocations: 29.38 kB / 381.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.1286, allocations: 44.28 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.1294, allocations: 474.6 kB / 381.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.1294, allocations: 7.938 kB / 381.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.778e-05/0.1295, allocations: 16 kB / 381.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1295, allocations: 15.94 kB / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008847/0.1304, allocations: 479.7 kB / 382.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.1323, allocations: 1.106 MB / 383.4 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.1332, allocations: 400.3 kB / 383.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.1337, allocations: 266 kB / 384 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.242e-05/0.1338, allocations: 4.438 kB / 384 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.1338, allocations: 35 kB / 384 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.914e-06/0.1338, allocations: 4 kB / 384.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005065/0.1389, allocations: 2.331 MB / 386.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.139, allocations: 63.97 kB / 386.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003242/0.1393, allocations: 283.3 kB / 386.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.679e-05/0.1394, allocations: 45.69 kB / 386.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1395, allocations: 181.3 kB / 386.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.1397, allocations: 201.2 kB / 387.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.1398, allocations: 102.3 kB / 387.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.14, allocations: 346.8 kB / 387.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.1405, allocations: 253.1 kB / 387.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.141, allocations: 284.8 kB / 388.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007632/0.1418, allocations: 414.3 kB / 388.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1418, allocations: 3.938 kB / 388.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001731/0.1435, allocations: 0.7833 MB / 389.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.1435, allocations: 9.125 kB / 389.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1436, allocations: 4 kB / 389.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009384/0.1445, allocations: 0.4974 MB / 389.8 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003478/0.1449, allocations: 91.83 kB / 389.9 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.1464, allocations: 1.405 MB / 391.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.1469, allocations: 75.94 kB / 391.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.1469, allocations: 16 kB / 391.4 MB, free: 14.61 MB / 334.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.000277/0.1472, allocations: 181.6 kB / 391.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1473, allocations: 39.53 kB / 391.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.1474, allocations: 63.67 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.1474, allocations: 4 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.1475, allocations: 0 / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.1475, allocations: 3.984 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.1504, allocations: 1.452 MB / 393.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.1504, allocations: 7.938 kB / 393.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.1508, allocations: 87.88 kB / 393.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008609/0.1517, allocations: 477.5 kB / 393.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.1517, allocations: 23.98 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.153, allocations: 1.382 MB / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.153, allocations: 0 / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.155, allocations: 1.089 MB / 396.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.1552, allocations: 164.6 kB / 396.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.375e-05/0.1553, allocations: 27.88 kB / 396.4 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.1557, allocations: 59.92 kB / 396.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.1559, allocations: 100.3 kB / 396.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.156, allocations: 27.92 kB / 396.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003031/0.1563, allocations: 201.9 kB / 396.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1563, allocations: 4 kB / 396.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005542/0.1569, allocations: 132 kB / 396.9 MB, free: 8.914 MB / 334.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.0003152/0.1572, allocations: 139.2 kB / 397 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.1586, allocations: 0.5887 MB / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1586, allocations: 0 / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007333/0.1593, allocations: 350.6 kB / 398 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005985/0.1599, allocations: 68.56 kB / 398 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.1636, allocations: 1.42 MB / 399.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.1641, allocations: 0.8241 MB / 400.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.1642, allocations: 39.27 kB / 400.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.869e-05/0.1643, allocations: 39.42 kB / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1643, allocations: 0 / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of Templates: time 0.01634/0.1807, allocations: 10.04 MB / 410.4 MB, free: 11.32 MB / 350.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)