Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_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.01085/0.01085, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.002165/0.002165, allocations: 196.8 kB / 16.67 MB, free: 5.973 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.406 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.001196/0.001196, allocations: 49.16 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1149, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00427/0.1192, allocations: 3.096 MB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.1214, allocations: 1.08 MB / 377.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002087/0.1216, allocations: 7.938 kB / 377.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002962/0.1219, allocations: 79.23 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.1222, allocations: 158.7 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.1229, allocations: 279.5 kB / 377.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007348/0.1236, allocations: 0.7959 MB / 378.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1239, allocations: 141.1 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004174/0.1243, allocations: 350.9 kB / 379.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.1248, allocations: 386.6 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1249, allocations: 60 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.1251, allocations: 111.9 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.1253, allocations: 151.5 kB / 379.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.1256, allocations: 306.5 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.1264, allocations: 0.7199 MB / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1264, allocations: 0 / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1264, allocations: 0 / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.1264, allocations: 4 kB / 380.8 MB, free: 9.578 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001733/0.1282, allocations: 0.8996 MB / 381.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1282, allocations: 11.97 kB / 381.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1284, allocations: 60.56 kB / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005433/0.1289, allocations: 371.9 kB / 382.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.129, allocations: 41.38 kB / 382.2 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-05/0.1291, allocations: 44.33 kB / 382.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.1302, allocations: 0.6152 MB / 382.9 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.1302, allocations: 3.984 kB / 382.9 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.514e-05/0.1303, allocations: 23.94 kB / 382.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1303, allocations: 12 kB / 382.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.1315, allocations: 0.605 MB / 383.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.1338, allocations: 1.305 MB / 384.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009853/0.1348, allocations: 469.2 kB / 385.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005612/0.1354, allocations: 310.4 kB / 385.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-05/0.1354, allocations: 12.55 kB / 385.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.1355, allocations: 35.12 kB / 385.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.036e-06/0.1355, allocations: 0 / 385.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006354/0.1418, allocations: 2.883 MB / 388.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.1419, allocations: 59.97 kB / 388.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.1423, allocations: 325.6 kB / 388.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.1424, allocations: 49.69 kB / 388.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.1427, allocations: 209.5 kB / 389.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.143, allocations: 230.1 kB / 389.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002448/0.1432, allocations: 130.6 kB / 389.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1434, allocations: 362.7 kB / 389.9 MB, free: 196 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.144, allocations: 317.9 kB / 390.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.1447, allocations: 385 kB / 390.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009564/0.1456, allocations: 0.503 MB / 391 MB, free: 14.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1457, allocations: 0 / 391 MB, free: 14.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001906/0.1476, allocations: 0.9351 MB / 392 MB, free: 14.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.1476, allocations: 4 kB / 392 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1476, allocations: 0 / 392 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.149, allocations: 0.7268 MB / 392.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/0.1494, allocations: 103.8 kB / 392.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.1511, allocations: 1.095 MB / 393.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007161/0.1518, allocations: 107.9 kB / 394 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-05/0.1519, allocations: 23.98 kB / 394 MB, free: 11.95 MB / 334.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.0003113/0.1522, allocations: 183.9 kB / 394.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.1523, allocations: 51.67 kB / 394.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.1525, allocations: 72.73 kB / 394.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1525, allocations: 8 kB / 394.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.1525, allocations: 7.938 kB / 394.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1525, allocations: 0 / 394.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.1552, allocations: 1.572 MB / 395.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.1552, allocations: 4 kB / 395.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.1556, allocations: 87.88 kB / 396 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.1568, allocations: 0.7112 MB / 396.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.1568, allocations: 23.97 kB / 396.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.1581, allocations: 1.068 MB / 397.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1581, allocations: 3.938 kB / 397.8 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.1605, allocations: 1.305 MB / 399.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.1608, allocations: 192.7 kB / 399.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1609, allocations: 24 kB / 399.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005959/0.1615, allocations: 103.8 kB / 399.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.1618, allocations: 120.4 kB / 399.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.492e-05/0.1619, allocations: 27.97 kB / 399.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000248/0.1621, allocations: 235.2 kB / 399.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1621, allocations: 0 / 399.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005753/0.1627, allocations: 160 kB / 400 MB, free: 5.883 MB / 334.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.000288/0.163, allocations: 151.1 kB / 400.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.1646, allocations: 0.7722 MB / 400.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1646, allocations: 0 / 400.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000795/0.1654, allocations: 429.8 kB / 401.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006626/0.1661, allocations: 93.8 kB / 401.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.1687, allocations: 1.412 MB / 402.8 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.1691, allocations: 0.8479 MB / 403.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.1693, allocations: 48.17 kB / 403.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1694, allocations: 43.42 kB / 403.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of SimCode: time 2.134e-06/0.1694, allocations: 0 / 403.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of Templates: time 0.02047/0.1899, allocations: 13.64 MB / 417.4 MB, free: 4.367 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)