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.001344/0.001344, allocations: 103.2 kB / 17.06 MB, free: 6.145 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.001583/0.001583, allocations: 195 kB / 18 MB, free: 5.219 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.529/1.529, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001287/0.001287, allocations: 51.92 kB / 327.9 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.0988, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005357/0.1042, allocations: 3.099 MB / 377.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.1063, allocations: 1.08 MB / 378.7 MB, free: 392 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.1065, allocations: 7.938 kB / 378.7 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.1069, allocations: 79.23 kB / 378.7 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003074/0.1072, allocations: 154.7 kB / 378.9 MB, free: 148 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2188/0.3261, allocations: 279.9 kB / 379.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.3273, allocations: 0.7997 MB / 380 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.3276, allocations: 134.7 kB / 380.1 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.3281, allocations: 360.3 kB / 380.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005255/0.3287, allocations: 388.3 kB / 380.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.3288, allocations: 59.84 kB / 380.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003417/0.3292, allocations: 106.8 kB / 381 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.3294, allocations: 155.5 kB / 381.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000326/0.3297, allocations: 298.8 kB / 381.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008914/0.3306, allocations: 0.7213 MB / 382.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3306, allocations: 1.375 kB / 382.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3306, allocations: 0 / 382.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.3306, allocations: 0 / 382.2 MB, free: 9.457 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.001692/0.3323, allocations: 0.8937 MB / 383 MB, free: 8.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3324, allocations: 9.844 kB / 383.1 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.3325, allocations: 60.95 kB / 383.1 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.3331, allocations: 360.8 kB / 383.5 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.3331, allocations: 36.94 kB / 383.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3332, allocations: 44.95 kB / 383.5 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.3344, allocations: 0.6199 MB / 384.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.3345, allocations: 3.766 kB / 384.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.3345, allocations: 23 kB / 384.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.3345, allocations: 10.66 kB / 384.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.3358, allocations: 0.5963 MB / 384.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002333/0.3381, allocations: 1.314 MB / 386.1 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009538/0.3391, allocations: 472.2 kB / 386.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005758/0.3397, allocations: 313 kB / 386.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.3397, allocations: 6.469 kB / 386.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.3397, allocations: 38.17 kB / 386.9 MB, free: 7.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.354e-06/0.3397, allocations: 0 / 386.9 MB, free: 7.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006294/0.346, allocations: 2.868 MB / 389.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.3461, allocations: 62.97 kB / 389.9 MB, free: 5.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003908/0.3465, allocations: 326.2 kB / 390.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.234e-05/0.3466, allocations: 50.56 kB / 390.2 MB, free: 5.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.3467, allocations: 197.7 kB / 390.4 MB, free: 5.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3469, allocations: 225.8 kB / 390.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.3471, allocations: 134.4 kB / 390.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3473, allocations: 355 kB / 391.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006594/0.3479, allocations: 318.7 kB / 391.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006785/0.3486, allocations: 381.6 kB / 391.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009769/0.3496, allocations: 0.5118 MB / 392.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3496, allocations: 0 / 392.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001719/0.3513, allocations: 0.9236 MB / 393.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3514, allocations: 6.281 kB / 393.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3514, allocations: 6.469 kB / 393.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.3526, allocations: 0.7247 MB / 394 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/0.3531, allocations: 105.6 kB / 394.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.3545, allocations: 1.084 MB / 395.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007488/0.3552, allocations: 104 kB / 395.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.3553, allocations: 28.91 kB / 395.3 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.0002793/0.3556, allocations: 185.1 kB / 395.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3557, allocations: 47.38 kB / 395.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.3558, allocations: 71.12 kB / 395.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3559, allocations: 9.438 kB / 395.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.3559, allocations: 1.375 kB / 395.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3559, allocations: 4.547 kB / 395.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.3587, allocations: 1.574 MB / 397.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.3588, allocations: 6.75 kB / 397.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000432/0.3592, allocations: 89.92 kB / 397.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00125/0.3605, allocations: 0.7089 MB / 398 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.232e-05/0.3605, allocations: 24.56 kB / 398 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.3618, allocations: 1.062 MB / 399.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3618, allocations: 1.156 kB / 399.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002395/0.3642, allocations: 1.3 MB / 400.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.3645, allocations: 193.5 kB / 400.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.3646, allocations: 22.03 kB / 400.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006255/0.3653, allocations: 102.2 kB / 400.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/0.3656, allocations: 126.4 kB / 400.8 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.3656, allocations: 30.38 kB / 400.8 MB, free: 480 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.3659, allocations: 231.8 kB / 401.1 MB, free: 356 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3659, allocations: 0 / 401.1 MB, free: 356 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007176/0.3666, allocations: 164.5 kB / 401.2 MB, free: 332 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.0002913/0.3669, allocations: 139.3 kB / 401.4 MB, free: 224 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.3688, allocations: 0.7876 MB / 402.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3688, allocations: 3.938 kB / 402.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008659/0.3696, allocations: 422.2 kB / 402.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007056/0.3704, allocations: 102.1 kB / 402.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.373, allocations: 1.384 MB / 404 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.3734, allocations: 0.8467 MB / 404.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.3736, allocations: 48.02 kB / 404.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3737, allocations: 46.25 kB / 405 MB, free: 13.92 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3738, allocations: 0 / 405 MB, free: 13.92 MB / 334.1 MB Notification: Performance of Templates: time 0.02084/0.3946, allocations: 14.22 MB / 419.2 MB, free: 1.512 MB / 334.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)