Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.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.005062/0.005062, allocations: 107.1 kB / 15.74 MB, free: 5.996 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.001129/0.001129, allocations: 197.6 kB / 16.68 MB, free: 5.918 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.511/1.511, allocations: 205.1 MB / 222.5 MB, free: 4.461 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.001361/0.001361, allocations: 50.61 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.1005, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005433/0.106, allocations: 3.081 MB / 376.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002445/0.1085, allocations: 1.087 MB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.1088, allocations: 7.938 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002886/0.1091, allocations: 71.25 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004461/0.1096, allocations: 162.7 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009458/0.1105, allocations: 275.5 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.1116, allocations: 0.7999 MB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.1119, allocations: 133.1 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004562/0.1124, allocations: 362.9 kB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.1128, allocations: 382.7 kB / 379.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.1129, allocations: 60 kB / 379.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.1132, allocations: 111.9 kB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.1134, allocations: 147.5 kB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.1137, allocations: 310.5 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008194/0.1145, allocations: 0.7164 MB / 380.8 MB, free: 9.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.1146, allocations: 8 kB / 380.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1146, allocations: 0 / 380.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.1146, allocations: 0 / 380.8 MB, free: 9.594 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.001828/0.1164, allocations: 0.8806 MB / 381.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.1165, allocations: 8.031 kB / 381.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.1166, allocations: 64.22 kB / 381.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007731/0.1174, allocations: 363.7 kB / 382.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.079e-05/0.1175, allocations: 37.38 kB / 382.2 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1176, allocations: 52.27 kB / 382.2 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1187, allocations: 0.6152 MB / 382.8 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.1188, allocations: 4 kB / 382.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.875e-05/0.1188, allocations: 19.94 kB / 382.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.1189, allocations: 15.98 kB / 382.9 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1201, allocations: 0.605 MB / 383.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.1227, allocations: 1.313 MB / 384.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.1238, allocations: 469.2 kB / 385.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006268/0.1245, allocations: 306.4 kB / 385.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.317e-05/0.1245, allocations: 12.55 kB / 385.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.1246, allocations: 39.12 kB / 385.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.707e-06/0.1246, allocations: 4 kB / 385.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006839/0.1314, allocations: 2.867 MB / 388.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.1315, allocations: 59.97 kB / 388.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003789/0.1319, allocations: 329.6 kB / 388.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.497e-05/0.132, allocations: 49.7 kB / 388.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1322, allocations: 193.3 kB / 389.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.1324, allocations: 220.9 kB / 389.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/0.1326, allocations: 134.5 kB / 389.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1327, allocations: 354.7 kB / 389.8 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006382/0.1334, allocations: 325.9 kB / 390.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000664/0.1341, allocations: 385 kB / 390.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.1351, allocations: 0.503 MB / 391 MB, free: 15.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1351, allocations: 4 kB / 391 MB, free: 15.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001777/0.1369, allocations: 0.927 MB / 391.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1369, allocations: 4 kB / 391.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.137, allocations: 4 kB / 391.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.1382, allocations: 0.7268 MB / 392.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.1386, allocations: 103.8 kB / 392.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.1401, allocations: 1.087 MB / 393.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007314/0.1408, allocations: 111.8 kB / 394 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.1409, allocations: 20 kB / 394 MB, free: 12.02 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.00029/0.1412, allocations: 191.8 kB / 394.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1413, allocations: 47.44 kB / 394.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.1415, allocations: 68.75 kB / 394.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1415, allocations: 8 kB / 394.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1415, allocations: 0 / 394.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1415, allocations: 12.02 kB / 394.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.1442, allocations: 1.568 MB / 395.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1442, allocations: 0 / 395.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.1447, allocations: 91.89 kB / 396 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.1458, allocations: 0.7033 MB / 396.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.633e-05/0.1458, allocations: 27.95 kB / 396.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.1472, allocations: 1.064 MB / 397.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1472, allocations: 0 / 397.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.1497, allocations: 1.301 MB / 399 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.15, allocations: 188.5 kB / 399.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1501, allocations: 28 kB / 399.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.1508, allocations: 103.8 kB / 399.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.1511, allocations: 124.3 kB / 399.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.447e-05/0.1511, allocations: 27.97 kB / 399.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.1514, allocations: 235.2 kB / 399.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1514, allocations: 4 kB / 399.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005321/0.1519, allocations: 156 kB / 399.9 MB, free: 5.961 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.0002569/0.1522, allocations: 159.3 kB / 400.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.1538, allocations: 0.7722 MB / 400.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1538, allocations: 0 / 400.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.1546, allocations: 425.8 kB / 401.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.1553, allocations: 97.69 kB / 401.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.1578, allocations: 1.382 MB / 402.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.1582, allocations: 0.8478 MB / 403.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001887/0.1584, allocations: 52.16 kB / 403.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.1585, allocations: 39.42 kB / 403.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of SimCode: time 2.384e-06/0.1585, allocations: 0 / 403.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of Templates: time 0.02011/0.1787, allocations: 13.66 MB / 417.3 MB, free: 4.449 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)