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.007465/0.007464, allocations: 101.6 kB / 15.73 MB, free: 6.055 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.0016/0.0016, allocations: 200.3 kB / 16.68 MB, free: 5.969 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.576/1.576, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001294/0.001294, allocations: 51.3 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004898/0.1091, allocations: 3.084 MB / 376.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.1114, allocations: 1.08 MB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004648/0.1119, allocations: 7.938 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003631/0.1123, allocations: 75.23 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005255/0.1128, allocations: 162.7 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008678/0.1137, allocations: 283.5 kB / 377.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009873/0.1147, allocations: 0.7921 MB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.115, allocations: 141.1 kB / 378.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005949/0.1156, allocations: 366.9 kB / 379.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.116, allocations: 378.7 kB / 379.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.946e-05/0.1161, allocations: 60 kB / 379.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.1164, allocations: 115.9 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.1165, allocations: 159.5 kB / 379.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1168, allocations: 298.5 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007369/0.1176, allocations: 0.7165 MB / 380.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.1176, allocations: 4 kB / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.1176, allocations: 0 / 380.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.1176, allocations: 0 / 380.8 MB, free: 9.582 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.001779/0.1194, allocations: 0.8845 MB / 381.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1194, allocations: 12.03 kB / 381.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.1196, allocations: 56.28 kB / 381.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005264/0.1201, allocations: 367.7 kB / 382.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.1202, allocations: 29.38 kB / 382.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.65e-05/0.1203, allocations: 52.28 kB / 382.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.1214, allocations: 0.6152 MB / 382.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.1214, allocations: 7.938 kB / 382.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/0.1215, allocations: 19.98 kB / 382.9 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1215, allocations: 11.94 kB / 382.9 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.1227, allocations: 0.605 MB / 383.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.1249, allocations: 1.321 MB / 384.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009954/0.1259, allocations: 469.2 kB / 385.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005545/0.1265, allocations: 310.4 kB / 385.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.1265, allocations: 4.562 kB / 385.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1266, allocations: 43.12 kB / 385.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.1266, allocations: 0 / 385.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006369/0.133, allocations: 2.871 MB / 388.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.133, allocations: 59.97 kB / 388.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003449/0.1334, allocations: 337.6 kB / 388.9 MB, free: 1.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.719e-05/0.1335, allocations: 41.7 kB / 388.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.1336, allocations: 197.3 kB / 389.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.1338, allocations: 224.9 kB / 389.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.134, allocations: 134.5 kB / 389.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1341, allocations: 350.7 kB / 389.8 MB, free: 244 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006034/0.1348, allocations: 329.8 kB / 390.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006343/0.1354, allocations: 381 kB / 390.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009672/0.1364, allocations: 0.5108 MB / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1364, allocations: 0 / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001702/0.1381, allocations: 0.9193 MB / 391.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1381, allocations: 4 kB / 391.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1381, allocations: 4 kB / 391.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.1394, allocations: 0.7307 MB / 392.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.1398, allocations: 103.8 kB / 392.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.1412, allocations: 1.087 MB / 393.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007062/0.1419, allocations: 107.9 kB / 394 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.142, allocations: 20 kB / 394 MB, free: 12 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.0003177/0.1423, allocations: 191.8 kB / 394.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.1424, allocations: 47.44 kB / 394.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.1426, allocations: 68.75 kB / 394.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.1426, allocations: 8.094 kB / 394.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.1426, allocations: 0 / 394.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.1426, allocations: 11.97 kB / 394.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002646/0.1453, allocations: 1.564 MB / 395.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.269e-06/0.1453, allocations: 0 / 395.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004172/0.1457, allocations: 91.89 kB / 396 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.1469, allocations: 0.6994 MB / 396.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/0.1469, allocations: 39.83 kB / 396.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.1483, allocations: 1.056 MB / 397.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1483, allocations: 7.938 kB / 397.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.1506, allocations: 1.305 MB / 399.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.1509, allocations: 188.5 kB / 399.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.1511, allocations: 20 kB / 399.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.1517, allocations: 107.8 kB / 399.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002692/0.152, allocations: 124.3 kB / 399.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.305e-05/0.152, allocations: 23.97 kB / 399.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002595/0.1523, allocations: 239.2 kB / 399.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1523, allocations: 4 kB / 399.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005466/0.1529, allocations: 152 kB / 399.9 MB, free: 5.945 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.0004058/0.1533, allocations: 159.2 kB / 400.1 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.1551, allocations: 0.7722 MB / 400.8 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1552, allocations: 4 kB / 400.8 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008718/0.156, allocations: 425.8 kB / 401.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007964/0.1569, allocations: 97.69 kB / 401.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.1597, allocations: 1.382 MB / 402.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.1603, allocations: 0.8478 MB / 403.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.1605, allocations: 52.16 kB / 403.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.1607, allocations: 47.42 kB / 403.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1607, allocations: 0 / 403.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of Templates: time 0.02456/0.1852, allocations: 13.65 MB / 417.3 MB, free: 4.434 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)