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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.00169/0.00169, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.521/1.521, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00166/0.00166, allocations: 107.5 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.11e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0799/0.07994, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3043/0.3843, allocations: 69.1 MB / 376.7 MB, free: 7.148 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.3846, allocations: 70.72 kB / 376.8 MB, free: 7.113 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02523/0.4098, allocations: 8.832 MB / 385.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4099, allocations: 4 kB / 385.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.251e-05/0.4099, allocations: 12 kB / 385.6 MB, free: 15.48 MB / 282.7 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.001498/0.4114, allocations: 0.7825 MB / 386.4 MB, free: 14.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.4115, allocations: 12.03 kB / 386.4 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.4116, allocations: 55.34 kB / 386.5 MB, free: 14.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.4121, allocations: 344.3 kB / 386.8 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.4121, allocations: 34.19 kB / 386.9 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-05/0.4122, allocations: 49.56 kB / 386.9 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.4132, allocations: 0.585 MB / 387.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.4132, allocations: 7.906 kB / 387.5 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.4133, allocations: 17.44 kB / 387.5 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.4133, allocations: 8 kB / 387.5 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008715/0.4142, allocations: 0.5544 MB / 388.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.4165, allocations: 1.354 MB / 389.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007649/0.4173, allocations: 433.3 kB / 389.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.4177, allocations: 291.2 kB / 390.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.104e-05/0.4178, allocations: 4.562 kB / 390.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.4178, allocations: 38.44 kB / 390.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 2.434e-06/0.4178, allocations: 0 / 390.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.003611/0.4215, allocations: 2.068 MB / 392.3 MB, free: 9.977 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.4215, allocations: 59.97 kB / 392.3 MB, free: 9.906 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.4218, allocations: 287.1 kB / 392.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.818e-05/0.4219, allocations: 52.19 kB / 392.6 MB, free: 9.629 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.422, allocations: 189.1 kB / 392.8 MB, free: 9.477 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.4222, allocations: 225.4 kB / 393 MB, free: 9.289 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.4222, allocations: 14.31 kB / 393.1 MB, free: 9.285 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4224, allocations: 348.7 kB / 393.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.4228, allocations: 293.7 kB / 393.7 MB, free: 8.773 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004629/0.4233, allocations: 350.9 kB / 394 MB, free: 8.539 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.4237, allocations: 234.8 kB / 394.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4237, allocations: 0 / 394.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001344/0.425, allocations: 0.8861 MB / 395.1 MB, free: 7.734 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.4251, allocations: 4 kB / 395.2 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.4251, allocations: 4 kB / 395.2 MB, free: 7.727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.4263, allocations: 0.754 MB / 395.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.4266, allocations: 103.7 kB / 396 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.4279, allocations: 1.077 MB / 397.1 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007518/0.4287, allocations: 150.7 kB / 397.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.214e-05/0.4288, allocations: 30.55 kB / 397.3 MB, free: 5.949 MB / 282.7 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002173/0.429, allocations: 150.9 kB / 397.4 MB, free: 5.816 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.4292, allocations: 47.44 kB / 397.5 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.4294, allocations: 68.06 kB / 397.5 MB, free: 5.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.4294, allocations: 8 kB / 397.5 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.4294, allocations: 0 / 397.5 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.4294, allocations: 12.02 kB / 397.5 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/0.4321, allocations: 1.578 MB / 399.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4321, allocations: 0 / 399.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.4325, allocations: 95.39 kB / 399.2 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.4337, allocations: 0.7282 MB / 399.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-05/0.4338, allocations: 30.33 kB / 400 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.435, allocations: 1.04 MB / 401 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.435, allocations: 3.984 kB / 401 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.437, allocations: 1.277 MB / 402.3 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/0.4374, allocations: 195.9 kB / 402.5 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.4375, allocations: 25.75 kB / 402.5 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006632/0.4382, allocations: 143 kB / 402.7 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.4385, allocations: 149 kB / 402.8 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.152e-05/0.4385, allocations: 30.91 kB / 402.8 MB, free: 1.434 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002591/0.4388, allocations: 220.1 kB / 403 MB, free: 1.258 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4388, allocations: 4 kB / 403 MB, free: 1.254 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005553/0.4394, allocations: 153.7 kB / 403.2 MB, free: 1.121 MB / 282.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002573/0.4396, allocations: 149.1 kB / 403.3 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.4409, allocations: 0.7032 MB / 404 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4409, allocations: 0 / 404 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.4415, allocations: 390.6 kB / 404.4 MB, free: 236 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.4421, allocations: 77.75 kB / 404.5 MB, free: 180 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.4443, allocations: 1.222 MB / 405.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.4448, allocations: 0.8518 MB / 406.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002089/0.445, allocations: 52.16 kB / 406.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.4451, allocations: 38.48 kB / 406.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4451, allocations: 0 / 406.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of Templates: time 0.01651/0.4616, allocations: 11.07 MB / 417.7 MB, free: 3.027 MB / 298.7 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)