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.0009687/0.0009685, allocations: 88.94 kB / 16.65 MB, free: 6.598 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.0009906/0.0009907, allocations: 184.8 kB / 17.57 MB, free: 6.199 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.443/1.443, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0005521/0.0005522, allocations: 8 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09122, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003112/0.09436, allocations: 2.744 MB / 331.1 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.0963, allocations: 1.068 MB / 332.1 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.09649, allocations: 4 kB / 332.1 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.09672, allocations: 63.53 kB / 332.2 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002541/0.09698, allocations: 127 kB / 332.3 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005731/0.09756, allocations: 247.6 kB / 332.6 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00066/0.09824, allocations: 0.753 MB / 333.3 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.09847, allocations: 128.5 kB / 333.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.09886, allocations: 318.8 kB / 333.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003928/0.09926, allocations: 350.7 kB / 334.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.861e-05/0.09934, allocations: 32 kB / 334.1 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.09952, allocations: 71.97 kB / 334.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.09968, allocations: 127.5 kB / 334.3 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.09995, allocations: 296.2 kB / 334.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006641/0.1006, allocations: 0.658 MB / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1006, allocations: 0 / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1006, allocations: 0 / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1007, allocations: 4 kB / 335.3 MB, free: 12.76 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.001657/0.1023, allocations: 0.8224 MB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1024, allocations: 8.031 kB / 336.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.1025, allocations: 60.27 kB / 336.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.103, allocations: 363.7 kB / 336.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.103, allocations: 33.38 kB / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.875e-05/0.1031, allocations: 44.38 kB / 336.6 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.1043, allocations: 0.6307 MB / 337.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1043, allocations: 11.89 kB / 337.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.1044, allocations: 16 kB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1044, allocations: 12 kB / 337.3 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.1055, allocations: 0.6129 MB / 337.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.1079, allocations: 1.371 MB / 339.2 MB, free: 8.625 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000989/0.1089, allocations: 481 kB / 339.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006171/0.1095, allocations: 318.4 kB / 340 MB, free: 7.832 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.1096, allocations: 4.562 kB / 340 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.1096, allocations: 47.06 kB / 340.1 MB, free: 7.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.234e-06/0.1096, allocations: 0 / 340.1 MB, free: 7.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006715/0.1163, allocations: 3.031 MB / 343.1 MB, free: 4.602 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.1164, allocations: 59.97 kB / 343.2 MB, free: 4.531 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.1168, allocations: 325.7 kB / 343.5 MB, free: 4.199 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.161e-05/0.1169, allocations: 53.69 kB / 343.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.1171, allocations: 197.2 kB / 343.7 MB, free: 3.945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.1173, allocations: 221 kB / 343.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1174, allocations: 69.62 kB / 344 MB, free: 3.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1176, allocations: 358.7 kB / 344.4 MB, free: 3.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006509/0.1182, allocations: 329.8 kB / 344.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006509/0.1189, allocations: 389 kB / 345.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1199, allocations: 0.5226 MB / 345.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1199, allocations: 0 / 345.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001778/0.1217, allocations: 0.9427 MB / 346.5 MB, free: 1.105 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.1218, allocations: 4 kB / 346.5 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.1218, allocations: 0 / 346.5 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.1231, allocations: 0.7385 MB / 347.3 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004037/0.1235, allocations: 107.9 kB / 347.4 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.125, allocations: 1.087 MB / 348.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007594/0.1258, allocations: 151.9 kB / 348.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.1259, allocations: 23.98 kB / 348.6 MB, free: 14.97 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.0003047/0.1262, allocations: 184 kB / 348.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1263, allocations: 47.44 kB / 348.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.1265, allocations: 68.75 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1265, allocations: 8 kB / 348.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.1266, allocations: 3.984 kB / 348.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1266, allocations: 0 / 348.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.1293, allocations: 1.594 MB / 350.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1293, allocations: 0 / 350.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004086/0.1297, allocations: 87.88 kB / 350.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.1309, allocations: 0.715 MB / 351.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.527e-05/0.131, allocations: 23.97 kB / 351.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.1323, allocations: 1.071 MB / 352.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1323, allocations: 0 / 352.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.1347, allocations: 1.327 MB / 353.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002595/0.135, allocations: 196.4 kB / 353.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1351, allocations: 20 kB / 354 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000675/0.1358, allocations: 147.8 kB / 354.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.1361, allocations: 116.3 kB / 354.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.1361, allocations: 39.91 kB / 354.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002485/0.1364, allocations: 231.2 kB / 354.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1364, allocations: 0 / 354.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.1369, allocations: 160 kB / 354.6 MB, free: 8.801 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.0003382/0.1373, allocations: 151.2 kB / 354.8 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00165/0.139, allocations: 0.784 MB / 355.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.139, allocations: 0 / 355.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008275/0.1398, allocations: 441.8 kB / 356 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006971/0.1405, allocations: 81.47 kB / 356.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.1433, allocations: 1.723 MB / 357.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.1438, allocations: 0.8442 MB / 358.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000194/0.144, allocations: 44.19 kB / 358.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.1441, allocations: 31.42 kB / 358.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1441, allocations: 4 kB / 358.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of Templates: time 0.02003/0.1641, allocations: 12.61 MB / 371.3 MB, free: 8.043 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)