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.001365/0.001365, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.001662/0.001663, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.394/1.394, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001211/0.001211, allocations: 47.94 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.09953, allocations: 46.63 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004007/0.1036, allocations: 3.118 MB / 329.1 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.1053, allocations: 1.088 MB / 330.2 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.1055, allocations: 8 kB / 330.2 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.1058, allocations: 59.55 kB / 330.2 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.106, allocations: 131 kB / 330.4 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.1065, allocations: 243.7 kB / 330.6 MB, free: 208 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.107, allocations: 0.7491 MB / 331.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.1072, allocations: 120.6 kB / 331.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.1075, allocations: 326.8 kB / 331.8 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.1079, allocations: 366.6 kB / 332.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.837e-05/0.108, allocations: 36 kB / 332.2 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.1082, allocations: 75.97 kB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1083, allocations: 127.5 kB / 332.4 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002512/0.1086, allocations: 286.5 kB / 332.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005787/0.1092, allocations: 0.6699 MB / 333.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1092, allocations: 0 / 333.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1092, allocations: 0 / 333.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.1092, allocations: 0 / 333.3 MB, free: 13.46 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.001582/0.1108, allocations: 0.8923 MB / 334.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.1108, allocations: 12.03 kB / 334.2 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.111, allocations: 56.28 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.1114, allocations: 367.6 kB / 334.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.1114, allocations: 33.38 kB / 334.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.612e-05/0.1115, allocations: 48.36 kB / 334.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.1125, allocations: 0.6191 MB / 335.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.1126, allocations: 11.91 kB / 335.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.768e-05/0.1126, allocations: 16 kB / 335.4 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1127, allocations: 8 kB / 335.4 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.1138, allocations: 0.5973 MB / 336 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.1159, allocations: 1.324 MB / 337.3 MB, free: 9.332 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009015/0.1168, allocations: 473 kB / 337.8 MB, free: 8.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005339/0.1173, allocations: 306.4 kB / 338.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.354e-05/0.1174, allocations: 8.547 kB / 338.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.1174, allocations: 39.12 kB / 338.1 MB, free: 8.504 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.533e-06/0.1174, allocations: 4 kB / 338.1 MB, free: 8.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.005912/0.1233, allocations: 2.867 MB / 341 MB, free: 5.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.1234, allocations: 59.97 kB / 341 MB, free: 5.422 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.1237, allocations: 333.7 kB / 341.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.1238, allocations: 41.7 kB / 341.4 MB, free: 5.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.124, allocations: 209.2 kB / 341.6 MB, free: 4.828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.1242, allocations: 217.1 kB / 341.8 MB, free: 4.613 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.1244, allocations: 134.5 kB / 341.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1245, allocations: 350.7 kB / 342.3 MB, free: 4.125 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006062/0.1252, allocations: 321.8 kB / 342.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006394/0.1258, allocations: 389 kB / 343 MB, free: 3.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.1268, allocations: 0.503 MB / 343.5 MB, free: 2.918 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1268, allocations: 0 / 343.5 MB, free: 2.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001773/0.1286, allocations: 0.931 MB / 344.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1286, allocations: 4 kB / 344.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1286, allocations: 4 kB / 344.4 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.13, allocations: 0.7268 MB / 345.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/0.1304, allocations: 103.8 kB / 345.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.1318, allocations: 1.087 MB / 346.3 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006605/0.1325, allocations: 107.9 kB / 346.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/0.1326, allocations: 23.94 kB / 346.5 MB, free: 15.89 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.0003217/0.1329, allocations: 188 kB / 346.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.133, allocations: 51.42 kB / 346.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.1332, allocations: 68.75 kB / 346.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1332, allocations: 8 kB / 346.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.1332, allocations: 0 / 346.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1332, allocations: 3.984 kB / 346.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.1358, allocations: 1.575 MB / 348.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1359, allocations: 0 / 348.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.1363, allocations: 91.89 kB / 348.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.1373, allocations: 0.6955 MB / 349.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.1374, allocations: 31.95 kB / 349.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.1387, allocations: 1.071 MB / 350.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1387, allocations: 0 / 350.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.141, allocations: 1.296 MB / 351.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.1413, allocations: 192.5 kB / 351.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.1414, allocations: 27.98 kB / 351.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.142, allocations: 107.8 kB / 351.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002641/0.1422, allocations: 120.3 kB / 352 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.503e-05/0.1423, allocations: 31.97 kB / 352 MB, free: 10.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002155/0.1425, allocations: 231.2 kB / 352.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1425, allocations: 0 / 352.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004898/0.143, allocations: 164 kB / 352.4 MB, free: 9.812 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.0002231/0.1432, allocations: 143.2 kB / 352.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.1447, allocations: 0.7761 MB / 353.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1447, allocations: 0 / 353.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007779/0.1455, allocations: 429.8 kB / 353.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006554/0.1462, allocations: 81.78 kB / 353.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.1487, allocations: 1.584 MB / 355.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1491, allocations: 0.8481 MB / 356.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001801/0.1492, allocations: 44.17 kB / 356.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1494, allocations: 39.42 kB / 356.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1494, allocations: 7.938 kB / 356.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01688/0.1662, allocations: 12.7 MB / 369 MB, free: 9.113 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)