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.008875/0.008875, allocations: 103.8 kB / 15.73 MB, free: 6.047 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.001895/0.001894, allocations: 191.3 kB / 16.67 MB, free: 5.961 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.502/1.502, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001345/0.001346, allocations: 58.81 kB / 326.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 46.62 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00468/0.1187, allocations: 3.028 MB / 376.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1207, allocations: 0.9785 MB / 377.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.121, allocations: 4 kB / 377.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.1214, allocations: 63.31 kB / 377.2 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004837/0.1219, allocations: 142.8 kB / 377.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.1226, allocations: 211.6 kB / 377.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007093/0.1233, allocations: 0.6395 MB / 378.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.1236, allocations: 136.2 kB / 378.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.124, allocations: 283 kB / 378.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004117/0.1244, allocations: 294.9 kB / 378.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.363e-05/0.1245, allocations: 48 kB / 379 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.1247, allocations: 103.9 kB / 379.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.1248, allocations: 131.5 kB / 379.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.125, allocations: 250.8 kB / 379.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006112/0.1257, allocations: 0.584 MB / 380 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1257, allocations: 0 / 380 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1257, allocations: 0 / 380 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1257, allocations: 3.938 kB / 380 MB, free: 10.52 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.001375/0.1271, allocations: 0.7836 MB / 380.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1271, allocations: 11.97 kB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.1272, allocations: 48.38 kB / 380.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.1278, allocations: 339.2 kB / 381.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.1278, allocations: 29.38 kB / 381.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.049e-05/0.1279, allocations: 44.28 kB / 381.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009048/0.1288, allocations: 478.6 kB / 381.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.1288, allocations: 4 kB / 381.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.1289, allocations: 16 kB / 381.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1289, allocations: 11.94 kB / 381.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009107/0.1298, allocations: 479.7 kB / 382.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.1319, allocations: 1.106 MB / 383.3 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008129/0.1328, allocations: 396.3 kB / 383.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.1333, allocations: 266 kB / 384 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.1334, allocations: 8.438 kB / 384 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1334, allocations: 35 kB / 384 MB, free: 6.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.1334, allocations: 0 / 384 MB, free: 6.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00523/0.1387, allocations: 2.339 MB / 386.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.1387, allocations: 59.97 kB / 386.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.1391, allocations: 291.2 kB / 386.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.1391, allocations: 41.7 kB / 386.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1393, allocations: 181.3 kB / 386.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.1395, allocations: 193.3 kB / 387.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.1397, allocations: 110.3 kB / 387.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.1399, allocations: 346.8 kB / 387.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005254/0.1404, allocations: 241.1 kB / 387.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000506/0.1409, allocations: 296.8 kB / 388.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007707/0.1417, allocations: 414.3 kB / 388.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1417, allocations: 0 / 388.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001738/0.1434, allocations: 0.7833 MB / 389.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1435, allocations: 9.094 kB / 389.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.1435, allocations: 0 / 389.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009646/0.1445, allocations: 0.4974 MB / 389.8 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.1449, allocations: 87.89 kB / 389.9 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.1462, allocations: 1.413 MB / 391.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/0.1467, allocations: 80.06 kB / 391.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.1468, allocations: 19.98 kB / 391.4 MB, free: 14.72 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.0002309/0.147, allocations: 181.5 kB / 391.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-05/0.1471, allocations: 39.53 kB / 391.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.1473, allocations: 59.73 kB / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1473, allocations: 4 kB / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.1473, allocations: 0 / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.1473, allocations: 3.984 kB / 391.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.1501, allocations: 1.448 MB / 393.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.1501, allocations: 7.938 kB / 393.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.1505, allocations: 83.89 kB / 393.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007573/0.1512, allocations: 485.4 kB / 393.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.1513, allocations: 23.97 kB / 393.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/0.1526, allocations: 1.378 MB / 395.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1526, allocations: 240 / 395.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.1546, allocations: 1.093 MB / 396.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.1549, allocations: 164.6 kB / 396.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.1549, allocations: 27.88 kB / 396.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004027/0.1553, allocations: 51.94 kB / 396.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.1556, allocations: 96.28 kB / 396.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/0.1556, allocations: 27.98 kB / 396.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.1558, allocations: 197.9 kB / 396.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1558, allocations: 0 / 396.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005047/0.1563, allocations: 136 kB / 396.9 MB, free: 9.047 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.0003257/0.1567, allocations: 139.2 kB / 397 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.1579, allocations: 0.6043 MB / 397.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1579, allocations: 0 / 397.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006783/0.1586, allocations: 338.3 kB / 397.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.1592, allocations: 89.06 kB / 398 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.1629, allocations: 1.412 MB / 399.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1633, allocations: 0.8241 MB / 400.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.1635, allocations: 39.28 kB / 400.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.537e-05/0.1636, allocations: 39.42 kB / 400.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of SimCode: time 1.543e-06/0.1636, allocations: 0 / 400.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of Templates: time 0.01634/0.1799, allocations: 10.43 MB / 410.8 MB, free: 11.05 MB / 350.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)