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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001276/0.001276, allocations: 184.3 kB / 13.65 MB, free: 1.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.484/1.484, allocations: 194.3 MB / 208.4 MB, free: 6.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001666/0.001666, allocations: 120.7 kB / 253.5 MB, free: 9.535 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.109e-05, allocations: 4 kB / 304.9 MB, free: 29.8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07864/0.07869, allocations: 44.51 MB / 349.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.309/0.3877, allocations: 74.41 MB / 423.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.3879, allocations: 69.59 kB / 423.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02282/0.4108, allocations: 8.995 MB / 432.9 MB, free: 7.781 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.4108, allocations: 0 / 432.9 MB, free: 7.781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.4108, allocations: 10.97 kB / 432.9 MB, free: 7.781 MB / 298.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.001288/0.4121, allocations: 0.7745 MB / 433.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.4122, allocations: 15.5 kB / 433.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.4123, allocations: 54.53 kB / 433.8 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.4126, allocations: 342.3 kB / 434.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.4126, allocations: 37.81 kB / 434.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.14e-05/0.4127, allocations: 40.97 kB / 434.2 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007761/0.4135, allocations: 0.5616 MB / 434.7 MB, free: 6.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.4136, allocations: 3.906 kB / 434.7 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.509e-05/0.4136, allocations: 17.78 kB / 434.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.4136, allocations: 11.69 kB / 434.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007072/0.4143, allocations: 497.4 kB / 435.3 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.4164, allocations: 1.349 MB / 436.6 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007052/0.4171, allocations: 452.5 kB / 437 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.4175, allocations: 266.1 kB / 437.3 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.488e-05/0.4175, allocations: 8.391 kB / 437.3 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.4176, allocations: 41.38 kB / 437.4 MB, free: 5.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 2.094e-06/0.4176, allocations: 0 / 437.4 MB, free: 5.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.00295/0.4205, allocations: 1.924 MB / 439.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.4206, allocations: 55.81 kB / 439.3 MB, free: 4.953 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.4208, allocations: 270.2 kB / 439.6 MB, free: 4.816 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.715e-05/0.4208, allocations: 48.78 kB / 439.6 MB, free: 4.781 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.4209, allocations: 182.4 kB / 439.8 MB, free: 4.656 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.421, allocations: 236.1 kB / 440.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.4211, allocations: 15.16 kB / 440.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.06e-05/0.4212, allocations: 349.9 kB / 440.4 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.4215, allocations: 261.4 kB / 440.7 MB, free: 4.156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.4219, allocations: 320.2 kB / 441 MB, free: 4.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.4222, allocations: 204 kB / 441.2 MB, free: 4.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.4222, allocations: 0 / 441.2 MB, free: 4.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001104/0.4233, allocations: 0.7883 MB / 442 MB, free: 3.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.4233, allocations: 7.906 kB / 442 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.4234, allocations: 3.812 kB / 442 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008788/0.4243, allocations: 0.5503 MB / 442.5 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.4246, allocations: 94.95 kB / 442.6 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009753/0.4256, allocations: 0.9895 MB / 443.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/0.4263, allocations: 150.8 kB / 443.8 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-05/0.4264, allocations: 27.3 kB / 443.8 MB, free: 2.539 MB / 298.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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000152/0.4265, allocations: 145.4 kB / 443.9 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.196e-05/0.4266, allocations: 55.39 kB / 444 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.4281, allocations: 0.8511 MB / 444.8 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4281, allocations: 8 kB / 444.8 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4281, allocations: 0 / 444.8 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4281, allocations: 7.984 kB / 444.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.43, allocations: 1.434 MB / 446.3 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.4301, allocations: 4 kB / 446.3 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.4305, allocations: 90.45 kB / 446.4 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000807/0.4313, allocations: 0.5277 MB / 446.9 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.983e-05/0.4314, allocations: 26.95 kB / 446.9 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.4325, allocations: 0.9563 MB / 447.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4326, allocations: 0 / 447.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.4344, allocations: 1.117 MB / 449 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.4347, allocations: 192.8 kB / 449.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.4348, allocations: 21.19 kB / 449.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006857/0.4355, allocations: 148.4 kB / 449.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.4358, allocations: 144 kB / 449.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.27e-05/0.4359, allocations: 38.27 kB / 449.5 MB, free: 14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002143/0.4361, allocations: 213.4 kB / 449.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4361, allocations: 0 / 449.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006001/0.4367, allocations: 167.9 kB / 449.9 MB, free: 13.69 MB / 314.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.0002481/0.437, allocations: 145 kB / 450 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.4382, allocations: 0.7471 MB / 450.8 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4383, allocations: 0 / 450.8 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006559/0.4389, allocations: 388.3 kB / 451.2 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.4395, allocations: 75.23 kB / 451.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.4416, allocations: 1.2 MB / 452.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.442, allocations: 0.8596 MB / 453.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.4422, allocations: 48.09 kB / 453.4 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.4423, allocations: 38.8 kB / 453.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4423, allocations: 0 / 453.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of Templates: time 0.01664/0.459, allocations: 11.48 MB / 464.9 MB, free: 15.15 MB / 330.7 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)