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.009183/0.009183, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001795/0.001795, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.524/1.524, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001119/0.001119, allocations: 51.92 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1084, allocations: 46.61 MB / 373.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004026/0.1124, allocations: 3.091 MB / 376.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.1142, allocations: 1.088 MB / 377.3 MB, free: 388 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.1143, allocations: 11.94 kB / 377.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.1146, allocations: 75.3 kB / 377.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.1148, allocations: 162.6 kB / 377.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1933/0.3081, allocations: 273.7 kB / 377.8 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.3092, allocations: 0.8021 MB / 378.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.3095, allocations: 134.5 kB / 378.8 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.31, allocations: 355.9 kB / 379.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004468/0.3104, allocations: 384.8 kB / 379.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.3105, allocations: 58.56 kB / 379.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002804/0.3108, allocations: 112 kB / 379.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.311, allocations: 155.4 kB / 379.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003348/0.3114, allocations: 298.2 kB / 380.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009092/0.3123, allocations: 0.7222 MB / 380.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3123, allocations: 4.875 kB / 380.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3123, allocations: 0 / 380.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3123, allocations: 3.938 kB / 380.8 MB, free: 9.473 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.001725/0.3141, allocations: 0.8771 MB / 381.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3141, allocations: 9.938 kB / 381.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.3142, allocations: 61.03 kB / 381.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.3147, allocations: 371.7 kB / 382.1 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.3148, allocations: 32.84 kB / 382.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.3149, allocations: 48.17 kB / 382.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.3161, allocations: 0.6216 MB / 382.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.3161, allocations: 8.656 kB / 382.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.3162, allocations: 15.53 kB / 382.9 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3162, allocations: 9.469 kB / 382.9 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.3174, allocations: 0.603 MB / 383.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.3199, allocations: 1.316 MB / 384.8 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.321, allocations: 470.9 kB / 385.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005827/0.3215, allocations: 308.8 kB / 385.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.3216, allocations: 6.312 kB / 385.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.3216, allocations: 47.72 kB / 385.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.3216, allocations: 0 / 385.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006615/0.3283, allocations: 2.86 MB / 388.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.3283, allocations: 62.16 kB / 388.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.3287, allocations: 330.1 kB / 388.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.3288, allocations: 51.34 kB / 388.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3289, allocations: 194.1 kB / 389.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.329, allocations: 226.2 kB / 389.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.3293, allocations: 130.4 kB / 389.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.409e-05/0.3293, allocations: 354.7 kB / 389.8 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006663/0.33, allocations: 322.4 kB / 390.1 MB, free: 4.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000654/0.3307, allocations: 384.1 kB / 390.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009833/0.3317, allocations: 0.5074 MB / 391 MB, free: 4.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3317, allocations: 2.5 kB / 391 MB, free: 4.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00179/0.3335, allocations: 0.9311 MB / 391.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3335, allocations: 4.781 kB / 391.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3335, allocations: 1 kB / 391.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.3348, allocations: 0.7255 MB / 392.7 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004195/0.3353, allocations: 101.8 kB / 392.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.3366, allocations: 1.092 MB / 393.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007815/0.3374, allocations: 110.5 kB / 394 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.32e-05/0.3375, allocations: 23.73 kB / 394 MB, free: 3.129 MB / 318.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.0003392/0.3378, allocations: 191.5 kB / 394.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.338, allocations: 46.98 kB / 394.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.3381, allocations: 70.06 kB / 394.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3382, allocations: 6.75 kB / 394.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3382, allocations: 0 / 394.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3382, allocations: 4.531 kB / 394.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.341, allocations: 1.569 MB / 395.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.341, allocations: 5.188 kB / 395.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.3414, allocations: 92.69 kB / 396 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.3425, allocations: 0.7005 MB / 396.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.891e-05/0.3426, allocations: 27.34 kB / 396.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.3438, allocations: 1.068 MB / 397.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3438, allocations: 0 / 397.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.3463, allocations: 1.3 MB / 399 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.3465, allocations: 194.6 kB / 399.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.3467, allocations: 25.34 kB / 399.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000718/0.3474, allocations: 104.3 kB / 399.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.3477, allocations: 120.6 kB / 399.5 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.3478, allocations: 30.64 kB / 399.5 MB, free: 476 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.348, allocations: 231.7 kB / 399.7 MB, free: 352 kB / 318.1 MB Notification: Performance of sort global known variables: time 6.62e-07/0.348, allocations: 0 / 399.7 MB, free: 352 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006945/0.3487, allocations: 167.1 kB / 399.9 MB, free: 324 kB / 318.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.0002571/0.349, allocations: 148.4 kB / 400 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.3509, allocations: 0.7787 MB / 400.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.3509, allocations: 5.094 kB / 400.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009657/0.3519, allocations: 425.9 kB / 401.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.3527, allocations: 90.05 kB / 401.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.3558, allocations: 1.398 MB / 402.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/0.3563, allocations: 0.8417 MB / 403.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002166/0.3565, allocations: 49.53 kB / 403.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.3566, allocations: 46.27 kB / 403.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3566, allocations: 0 / 403.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of Templates: time 0.02426/0.3809, allocations: 13.64 MB / 417.3 MB, free: 2.066 MB / 334.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)