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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003311/0.003311, allocations: 174.8 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.345/1.345, allocations: 170.6 MB / 178.4 MB, free: 15.41 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.00186/0.00186, allocations: 116.5 kB / 217.7 MB, free: 8.172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.993e-06/7.023e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07384/0.07386, allocations: 38.75 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2436/0.3175, allocations: 68.36 MB / 368.9 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.3179, allocations: 67.66 kB / 368.9 MB, free: 176 kB / 250.7 MB Notification: Performance of FrontEnd: time 0.02839/0.3463, allocations: 8.627 MB / 377.6 MB, free: 8.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.573e-05/0.3464, allocations: 8 kB / 377.6 MB, free: 8.848 MB / 266.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.001601/0.348, allocations: 0.812 MB / 378.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3481, allocations: 12.03 kB / 378.4 MB, free: 8.012 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.3482, allocations: 55.34 kB / 378.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.3487, allocations: 331.3 kB / 378.8 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.3487, allocations: 23.38 kB / 378.8 MB, free: 7.605 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.842e-05/0.3488, allocations: 35.89 kB / 378.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009084/0.3498, allocations: 0.528 MB / 379.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008315/0.3506, allocations: 0.5244 MB / 379.9 MB, free: 6.809 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.3506, allocations: 4 kB / 379.9 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.011e-05/0.3507, allocations: 0 / 379.9 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.3507, allocations: 8 kB / 379.9 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.3532, allocations: 1.293 MB / 381.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.3539, allocations: 351.5 kB / 381.5 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003668/0.3543, allocations: 266.1 kB / 381.8 MB, free: 5.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.3543, allocations: 8.5 kB / 381.8 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.3544, allocations: 41.38 kB / 381.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.245e-06/0.3544, allocations: 0 / 381.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.004254/0.3586, allocations: 1.938 MB / 383.8 MB, free: 3.574 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.3587, allocations: 64.06 kB / 383.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.359, allocations: 264.5 kB / 384.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.754e-05/0.3591, allocations: 39.89 kB / 384.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.3592, allocations: 171.4 kB / 384.3 MB, free: 3.082 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.3594, allocations: 217.6 kB / 384.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.3594, allocations: 0 / 384.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3595, allocations: 351.8 kB / 384.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004187/0.36, allocations: 279.8 kB / 385.1 MB, free: 2.398 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/0.3604, allocations: 335.2 kB / 385.4 MB, free: 2.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005384/0.361, allocations: 218.3 kB / 385.7 MB, free: 2.035 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.361, allocations: 0 / 385.7 MB, free: 2.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00149/0.3625, allocations: 0.8293 MB / 386.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3625, allocations: 11.89 kB / 386.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.3625, allocations: 0 / 386.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.3637, allocations: 0.7171 MB / 387.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.3641, allocations: 111.4 kB / 387.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.3657, allocations: 1.176 MB / 388.5 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007595/0.3665, allocations: 155.8 kB / 388.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.489e-05/0.3666, allocations: 31.8 kB / 388.7 MB, free: 15.58 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002395/0.3668, allocations: 131.1 kB / 388.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3669, allocations: 43.44 kB / 388.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.3671, allocations: 62.62 kB / 388.9 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3671, allocations: 4 kB / 388.9 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3671, allocations: 8 kB / 388.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3671, allocations: 3.984 kB / 388.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.3698, allocations: 1.466 MB / 390.4 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.3698, allocations: 3.938 kB / 390.4 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004871/0.3703, allocations: 99.56 kB / 390.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001097/0.3715, allocations: 0.6818 MB / 391.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.679e-05/0.3715, allocations: 23.53 kB / 391.2 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.3731, allocations: 1.139 MB / 392.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3731, allocations: 4 kB / 392.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002121/0.3752, allocations: 1.236 MB / 393.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.3756, allocations: 187.2 kB / 393.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.3758, allocations: 18.8 kB / 393.8 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008386/0.3766, allocations: 143.9 kB / 393.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.377, allocations: 145.6 kB / 394.1 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.3772, allocations: 41.58 kB / 394.1 MB, free: 11.15 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003278/0.3775, allocations: 196.5 kB / 394.3 MB, free: 11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009238/0.3785, allocations: 143.9 kB / 394.4 MB, free: 10.86 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.000444/0.3789, allocations: 134.2 kB / 394.6 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3802, allocations: 0.6625 MB / 395.2 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3803, allocations: 0 / 395.2 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007186/0.381, allocations: 374.3 kB / 395.6 MB, free: 10.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006921/0.3817, allocations: 65.41 kB / 395.7 MB, free: 9.965 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.3845, allocations: 1.16 MB / 396.8 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00068/0.3852, allocations: 0.9001 MB / 397.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of SimCode: time 3.316e-06/0.3852, allocations: 0 / 397.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of Templates: time 0.02037/0.4056, allocations: 11.16 MB / 408.9 MB, free: 12.79 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)