Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents") [: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.2+maint.om/package.mo): time 0.00272/0.002719, allocations: 180.3 kB / 7.456 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.256/1.256, allocations: 194.2 MB / 202.1 MB, free: 8.73 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.001747/0.001747, allocations: 123.9 kB / 247.1 MB, free: 6.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1834/0.1834, allocations: 39.94 MB / 331.9 MB, free: 4.969 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.356e-06, allocations: 4 kB / 392.8 MB, free: 75.92 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 54.87 MB / 447.6 MB, free: 21.03 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3529/0.4644, allocations: 98.79 MB / 0.5336 GB, free: 1.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4647, allocations: 63.12 kB / 0.5337 GB, free: 1.652 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.141/0.6057, allocations: 47.41 MB / 0.58 GB, free: 10.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001543/0.6059, allocations: 47.98 kB / 0.58 GB, free: 10.35 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.007809/0.6137, allocations: 2.434 MB / 0.5824 GB, free: 8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.6138, allocations: 8.031 kB / 0.5824 GB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.6154, allocations: 296.8 kB / 0.5827 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002687/0.6182, allocations: 0.9816 MB / 0.5836 GB, free: 6.855 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008788/0.6191, allocations: 399.3 kB / 0.584 GB, free: 6.422 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.6201, allocations: 143.1 kB / 0.5842 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005293/0.6254, allocations: 2.086 MB / 0.5862 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005122/0.6306, allocations: 2.047 MB / 0.5882 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.6307, allocations: 31.62 kB / 0.5882 GB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002694/0.631, allocations: 4 kB / 0.5882 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.986e-05/0.6311, allocations: 55.98 kB / 0.5883 GB, free: 1.984 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.6445, allocations: 6.274 MB / 0.5944 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.6476, allocations: 1.489 MB / 0.5959 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/0.65, allocations: 1.138 MB / 0.597 GB, free: 8.938 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003388/0.6504, allocations: 135.2 kB / 0.5971 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.5e-05/0.6504, allocations: 72.73 kB / 0.5972 GB, free: 8.707 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 7.113e-06/0.6505, allocations: 0 / 0.5972 GB, free: 8.707 MB / 410.7 MB Notification: Performance of matching and sorting (n=340): time 0.02328/0.6737, allocations: 10.08 MB / 0.607 GB, free: 14.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.6739, allocations: 269.9 kB / 0.6073 GB, free: 13.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.6752, allocations: 0.7353 MB / 0.608 GB, free: 13.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004752/0.6757, allocations: 37.7 kB / 0.608 GB, free: 13.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005049/0.6762, allocations: 0.5377 MB / 0.6086 GB, free: 12.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/0.6774, allocations: 1.093 MB / 0.6096 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.6778, allocations: 3.984 kB / 0.6096 GB, free: 11.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002437/0.678, allocations: 432.6 kB / 0.61 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.68, allocations: 0.9554 MB / 0.611 GB, free: 9.977 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002227/0.6822, allocations: 1.355 MB / 0.6123 GB, free: 8.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002434/0.6847, allocations: 0.9828 MB / 0.6133 GB, free: 7.523 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.677e-05/0.6847, allocations: 4 kB / 0.6133 GB, free: 7.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.006646/0.6913, allocations: 3.049 MB / 0.6162 GB, free: 4.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.6914, allocations: 11.98 kB / 0.6163 GB, free: 4.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.795e-05/0.6914, allocations: 8.625 kB / 0.6163 GB, free: 4.426 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/0.6937, allocations: 1.009 MB / 0.6173 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/0.6969, allocations: 0.788 MB / 0.618 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00909/0.706, allocations: 6.954 MB / 0.6248 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/0.7088, allocations: 251.8 kB / 0.6251 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006713/0.7095, allocations: 132 kB / 0.6252 GB, free: 10.99 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001144/0.7107, allocations: 195.2 kB / 0.6254 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000817/0.7115, allocations: 205.6 kB / 0.6256 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005089/0.7166, allocations: 2.167 MB / 0.6277 GB, free: 8.395 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.196e-05/0.7167, allocations: 32 kB / 0.6277 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.835e-05/0.7167, allocations: 4 kB / 0.6277 GB, free: 8.359 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.864e-05/0.7168, allocations: 15.94 kB / 0.6277 GB, free: 8.344 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/0.7329, allocations: 6.899 MB / 0.6345 GB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.179e-05/0.733, allocations: 8 kB / 0.6345 GB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003636/0.7366, allocations: 0.7687 MB / 0.6352 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/0.739, allocations: 0.9821 MB / 0.6362 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000411/0.7394, allocations: 59.91 kB / 0.6362 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.7495, allocations: 9.486 MB / 0.6455 GB, free: 5.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.386e-05/0.7496, allocations: 15.94 kB / 0.6455 GB, free: 5.395 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01002/0.7596, allocations: 5.324 MB / 0.6507 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/0.7611, allocations: 0.5178 MB / 0.6512 GB, free: 15.14 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/0.7617, allocations: 32 kB / 0.6513 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/0.7644, allocations: 275.8 kB / 0.6515 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008835/0.7653, allocations: 381 kB / 0.6519 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003711/0.7657, allocations: 123.9 kB / 0.652 GB, free: 14.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0009767/0.7667, allocations: 0.5507 MB / 0.6525 GB, free: 13.78 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00435/0.7711, allocations: 0.5976 MB / 0.6531 GB, free: 13.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001072/0.7722, allocations: 214.8 kB / 0.6533 GB, free: 12.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006036/0.7782, allocations: 2.814 MB / 0.6561 GB, free: 10.09 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.7783, allocations: 0 / 0.6561 GB, free: 10.09 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005277/0.7835, allocations: 2.377 MB / 0.6584 GB, free: 7.676 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/0.7859, allocations: 232.5 kB / 0.6586 GB, free: 7.449 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.8001, allocations: 5.165 MB / 0.6637 GB, free: 2.117 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00344/0.8036, allocations: 1.779 MB / 0.6654 GB, free: 312 kB / 474.7 MB Notification: Performance of SimCode: time 1.373e-06/0.8036, allocations: 0 / 0.6654 GB, free: 312 kB / 474.7 MB Notification: Performance of Templates: time 0.2444/1.048, allocations: 37.09 MB / 0.7016 GB, free: 178.8 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe 2>&1)