Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 109.3 kB / 16.62 MB, free: 6.961 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.001251/0.001251, allocations: 190 kB / 17.54 MB, free: 6.066 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.423/1.423, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001127/0.001127, allocations: 43.94 kB / 279.5 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1071, allocations: 46.63 MB / 326.1 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004514/0.1117, allocations: 3.126 MB / 329.3 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.1138, allocations: 1.068 MB / 330.3 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.114, allocations: 4 kB / 330.3 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.1143, allocations: 59.55 kB / 330.4 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002672/0.1146, allocations: 135 kB / 330.5 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006539/0.1153, allocations: 251.6 kB / 330.8 MB, free: 140 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007212/0.116, allocations: 0.7999 MB / 331.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.1163, allocations: 128.6 kB / 331.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.1166, allocations: 358.8 kB / 332 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003812/0.117, allocations: 394.6 kB / 332.4 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.1171, allocations: 56 kB / 332.5 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.1173, allocations: 112 kB / 332.6 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1175, allocations: 155.5 kB / 332.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.1177, allocations: 294.6 kB / 333 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006469/0.1184, allocations: 0.7128 MB / 333.7 MB, free: 13.15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1184, allocations: 0 / 333.7 MB, free: 13.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1184, allocations: 0 / 333.7 MB, free: 13.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.1184, allocations: 4 kB / 333.7 MB, free: 13.15 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001707/0.1201, allocations: 0.8845 MB / 334.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.1202, allocations: 15.97 kB / 334.6 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.1203, allocations: 56.28 kB / 334.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004747/0.1208, allocations: 367.6 kB / 335.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.1209, allocations: 37.36 kB / 335.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-05/0.121, allocations: 44.38 kB / 335.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.122, allocations: 0.619 MB / 335.8 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/0.1221, allocations: 7.906 kB / 335.8 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.645e-05/0.1221, allocations: 20 kB / 335.8 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1221, allocations: 8 kB / 335.8 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1233, allocations: 0.6051 MB / 336.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.1255, allocations: 1.324 MB / 337.7 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009425/0.1264, allocations: 465.3 kB / 338.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.127, allocations: 310.4 kB / 338.5 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.631e-05/0.1271, allocations: 4.562 kB / 338.5 MB, free: 8.234 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1271, allocations: 39.12 kB / 338.5 MB, free: 8.188 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 3.577e-06/0.1271, allocations: 0 / 338.5 MB, free: 8.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006167/0.1333, allocations: 2.875 MB / 341.4 MB, free: 5.172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.1334, allocations: 55.97 kB / 341.5 MB, free: 5.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.1338, allocations: 329.7 kB / 341.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.111e-05/0.1339, allocations: 49.69 kB / 341.8 MB, free: 4.715 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.134, allocations: 197.2 kB / 342 MB, free: 4.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.1342, allocations: 225.1 kB / 342.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.1345, allocations: 130.6 kB / 342.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1346, allocations: 358.7 kB / 342.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005804/0.1352, allocations: 321.8 kB / 343 MB, free: 3.488 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/0.1359, allocations: 377 kB / 343.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009456/0.1368, allocations: 0.5069 MB / 343.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.1368, allocations: 0 / 343.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001679/0.1385, allocations: 0.9271 MB / 344.8 MB, free: 1.664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.1386, allocations: 8 kB / 344.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1386, allocations: 0 / 344.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.1399, allocations: 0.7346 MB / 345.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.1402, allocations: 99.83 kB / 345.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.1416, allocations: 1.083 MB / 346.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006208/0.1422, allocations: 111.9 kB / 346.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.1423, allocations: 23.98 kB / 346.9 MB, free: 15.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.000311/0.1426, allocations: 183.9 kB / 347.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.1427, allocations: 51.42 kB / 347.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.1429, allocations: 68.75 kB / 347.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.1429, allocations: 8 kB / 347.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.1429, allocations: 0 / 347.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.1429, allocations: 3.984 kB / 347.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/0.1455, allocations: 1.575 MB / 348.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1455, allocations: 0 / 348.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004/0.1459, allocations: 91.88 kB / 348.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.147, allocations: 0.7073 MB / 349.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.1471, allocations: 23.97 kB / 349.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.1483, allocations: 1.071 MB / 350.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1483, allocations: 0 / 350.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.1506, allocations: 1.312 MB / 352 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.1508, allocations: 188.4 kB / 352.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.1509, allocations: 20 kB / 352.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005746/0.1515, allocations: 107.8 kB / 352.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.1518, allocations: 124.4 kB / 352.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-05/0.1519, allocations: 31.95 kB / 352.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002379/0.1521, allocations: 231.2 kB / 352.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1521, allocations: 0 / 352.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004992/0.1526, allocations: 164 kB / 352.8 MB, free: 9.492 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002765/0.1529, allocations: 143.2 kB / 353 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.1545, allocations: 0.7917 MB / 353.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1545, allocations: 0 / 353.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007769/0.1553, allocations: 433.8 kB / 354.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006417/0.156, allocations: 89.31 kB / 354.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.1584, allocations: 1.597 MB / 355.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1587, allocations: 0.8479 MB / 356.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001825/0.1589, allocations: 48.17 kB / 356.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.1591, allocations: 43.42 kB / 356.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1591, allocations: 4 kB / 356.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of Templates: time 0.01862/0.1777, allocations: 13.42 MB / 370.2 MB, free: 8.023 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)