Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) 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(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.00292/0.002923, allocations: 180.4 kB / 7.454 MB, free: 2.512 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.051/1.051, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001759/0.00176, allocations: 107.9 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1559/0.1559, allocations: 37.98 MB / 294.8 MB, free: 9.598 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.113e-06/7.143e-06, allocations: 1.344 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 48.7 MB / 398.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.475, allocations: 91.14 MB / 489.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4754, allocations: 66.19 kB / 489.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1234/0.5988, allocations: 43.91 MB / 0.5208 GB, free: 15.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.599, allocations: 51.75 kB / 0.5209 GB, free: 15.11 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.00759/0.6066, allocations: 2.276 MB / 0.5231 GB, free: 12.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.6066, allocations: 12.03 kB / 0.5231 GB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.6081, allocations: 285 kB / 0.5234 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.6103, allocations: 0.9332 MB / 0.5243 GB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006262/0.6109, allocations: 341.2 kB / 0.5246 GB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000367/0.6113, allocations: 134.6 kB / 0.5247 GB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003728/0.615, allocations: 2.024 MB / 0.5267 GB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003665/0.6187, allocations: 1.948 MB / 0.5286 GB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.676e-05/0.6188, allocations: 27.7 kB / 0.5286 GB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.619, allocations: 8 kB / 0.5287 GB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.606e-05/0.6191, allocations: 48 kB / 0.5287 GB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.6321, allocations: 5.842 MB / 0.5344 GB, free: 2.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.635, allocations: 1.379 MB / 0.5358 GB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.637, allocations: 1.098 MB / 0.5368 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.6372, allocations: 37.36 kB / 0.5369 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/0.6373, allocations: 64.75 kB / 0.5369 GB, free: 15.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=260): time 5.279e-06/0.6373, allocations: 3.938 kB / 0.5369 GB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=317): time 0.01916/0.6565, allocations: 9.363 MB / 0.5461 GB, free: 6.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.6566, allocations: 243.5 kB / 0.5463 GB, free: 5.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.6579, allocations: 0.7299 MB / 0.547 GB, free: 5.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005118/0.6585, allocations: 45.69 kB / 0.5471 GB, free: 5.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.659, allocations: 0.5179 MB / 0.5476 GB, free: 4.547 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/0.6602, allocations: 1.016 MB / 0.5486 GB, free: 3.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.6604, allocations: 4 kB / 0.5486 GB, free: 3.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.6607, allocations: 416.2 kB / 0.549 GB, free: 3.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/0.6624, allocations: 0.9354 MB / 0.5499 GB, free: 2.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.6645, allocations: 1.3 MB / 0.5511 GB, free: 0.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002422/0.6669, allocations: 0.9547 MB / 0.5521 GB, free: 15.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.667, allocations: 4 kB / 0.5521 GB, free: 15.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.006849/0.6738, allocations: 3.141 MB / 0.5551 GB, free: 12.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.6739, allocations: 8 kB / 0.5552 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/0.6739, allocations: 15.89 kB / 0.5552 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002553/0.6765, allocations: 1.158 MB / 0.5563 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003267/0.6798, allocations: 0.7022 MB / 0.557 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/0.689, allocations: 7.046 MB / 0.5639 GB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/0.692, allocations: 239.8 kB / 0.5641 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004572/0.6925, allocations: 127.9 kB / 0.5642 GB, free: 3.047 MB / 378.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: 35 * 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,bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (315): * Single equations (assignments): 310 * 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: 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.0009556/0.6934, allocations: 193.9 kB / 0.5644 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007677/0.6942, allocations: 185.8 kB / 0.5646 GB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.6956, allocations: 0.5505 MB / 0.5651 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.213e-05/0.6957, allocations: 32 kB / 0.5651 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.404e-05/0.6957, allocations: 4 kB / 0.5651 GB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.081e-05/0.6958, allocations: 19.88 kB / 0.5652 GB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.7097, allocations: 6.679 MB / 0.5717 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.7098, allocations: 8 kB / 0.5717 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/0.7128, allocations: 0.6633 MB / 0.5723 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002545/0.7154, allocations: 1.145 MB / 0.5735 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/0.7157, allocations: 55.92 kB / 0.5735 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.7265, allocations: 9.58 MB / 0.5829 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.7265, allocations: 15.94 kB / 0.5829 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009611/0.7361, allocations: 5.177 MB / 0.5879 GB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/0.7377, allocations: 0.5101 MB / 0.5884 GB, free: 9.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004376/0.7381, allocations: 31.98 kB / 0.5885 GB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/0.7402, allocations: 235.8 kB / 0.5887 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007592/0.7409, allocations: 357.1 kB / 0.589 GB, free: 8.605 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/0.7412, allocations: 123.9 kB / 0.5892 GB, free: 8.484 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0008834/0.7421, allocations: 0.5418 MB / 0.5897 GB, free: 7.934 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002897/0.745, allocations: 0.5935 MB / 0.5903 GB, free: 7.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 27 (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 (252): * Single equations (assignments): 245 * 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.0006181/0.7456, allocations: 230.3 kB / 0.5905 GB, free: 7.113 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004952/0.7506, allocations: 2.671 MB / 0.5931 GB, free: 4.414 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.7506, allocations: 1.75 kB / 0.5931 GB, free: 4.414 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004892/0.7555, allocations: 2.216 MB / 0.5953 GB, free: 2.156 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.7577, allocations: 202.9 kB / 0.5955 GB, free: 1.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.7683, allocations: 4.753 MB / 0.6001 GB, free: 13.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002601/0.771, allocations: 1.731 MB / 0.6018 GB, free: 11.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/0.771, allocations: 0 / 0.6018 GB, free: 11.3 MB / 426.7 MB Notification: Performance of Templates: time 0.2674/1.038, allocations: 35.12 MB / 0.6361 GB, free: 153.1 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe 2>&1)