Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion") translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion") [: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.003026/0.003026, allocations: 179.9 kB / 7.454 MB, free: 2.508 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.264/1.264, allocations: 194.2 MB / 202.1 MB, free: 8.727 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.002129/0.00213, allocations: 119.2 kB / 247.1 MB, free: 6.25 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.1807/0.1807, allocations: 39.94 MB / 331.9 MB, free: 4.887 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.412e-06, allocations: 0 / 392.8 MB, free: 75.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 54.86 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.464, allocations: 95.55 MB / 0.5305 GB, free: 4.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.4643, allocations: 64.78 kB / 0.5305 GB, free: 4.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1797/0.644, allocations: 63.07 MB / 0.5921 GB, free: 14.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002498/0.6443, allocations: 75.83 kB / 0.5922 GB, free: 14.18 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.009462/0.6538, allocations: 2.961 MB / 0.5951 GB, free: 11.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.6538, allocations: 8.031 kB / 0.5951 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/0.6564, allocations: 415.8 kB / 0.5955 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003815/0.6602, allocations: 1.29 MB / 0.5967 GB, free: 9.395 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009272/0.6612, allocations: 0.4947 MB / 0.5972 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007775/0.662, allocations: 199.7 kB / 0.5974 GB, free: 8.641 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005612/0.6676, allocations: 2.924 MB / 0.6003 GB, free: 5.707 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005031/0.6726, allocations: 2.785 MB / 0.603 GB, free: 2.816 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000185/0.6729, allocations: 35.61 kB / 0.603 GB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002678/0.6731, allocations: 4 kB / 0.603 GB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.6733, allocations: 71.98 kB / 0.6031 GB, free: 2.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.6932, allocations: 9.199 MB / 0.6121 GB, free: 9.297 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003982/0.6972, allocations: 2.24 MB / 0.6143 GB, free: 6.965 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.7001, allocations: 1.473 MB / 0.6157 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004065/0.7006, allocations: 220.4 kB / 0.6159 GB, free: 5.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.577e-05/0.7007, allocations: 84.42 kB / 0.616 GB, free: 5.105 MB / 426.7 MB Notification: Performance of pre-optimization done (n=366): time 7.524e-06/0.7007, allocations: 0 / 0.616 GB, free: 5.105 MB / 426.7 MB Notification: Performance of matching and sorting (n=429): time 0.03524/0.7359, allocations: 16.04 MB / 0.6317 GB, free: 3.988 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002711/0.7362, allocations: 0.5583 MB / 0.6322 GB, free: 3.309 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.7379, allocations: 1.038 MB / 0.6332 GB, free: 2.266 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006963/0.7386, allocations: 53.69 kB / 0.6333 GB, free: 2.207 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/0.7392, allocations: 0.7026 MB / 0.634 GB, free: 1.492 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001368/0.7406, allocations: 1.39 MB / 0.6353 GB, free: 84 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.7409, allocations: 0 / 0.6353 GB, free: 84 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.7411, allocations: 467.1 kB / 0.6358 GB, free: 15.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.7434, allocations: 1.278 MB / 0.637 GB, free: 14.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002807/0.7462, allocations: 1.973 MB / 0.6389 GB, free: 12.08 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.7491, allocations: 1.315 MB / 0.6402 GB, free: 10.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.7491, allocations: 8 kB / 0.6402 GB, free: 10.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009136/0.7583, allocations: 4.249 MB / 0.6444 GB, free: 6.492 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.7583, allocations: 4.094 kB / 0.6444 GB, free: 6.488 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.505e-05/0.7584, allocations: 28.34 kB / 0.6444 GB, free: 6.461 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004085/0.7625, allocations: 1.697 MB / 0.6461 GB, free: 4.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/0.7661, allocations: 0.8347 MB / 0.6469 GB, free: 3.895 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/0.7856, allocations: 15.15 MB / 0.6617 GB, free: 3.941 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003892/0.7895, allocations: 323.7 kB / 0.662 GB, free: 3.625 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008397/0.7904, allocations: 188.6 kB / 0.6622 GB, free: 3.441 MB / 474.7 MB 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: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.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: 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: brake1.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: bearingFriction1.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: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * 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%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001879/0.7923, allocations: 243.5 kB / 0.6624 GB, free: 3.199 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001573/0.7939, allocations: 264.8 kB / 0.6626 GB, free: 2.938 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.7979, allocations: 1.486 MB / 0.6641 GB, free: 1.414 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.226e-05/0.7979, allocations: 44 kB / 0.6641 GB, free: 1.371 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.661e-05/0.798, allocations: 7.906 kB / 0.6641 GB, free: 1.363 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.765e-05/0.7981, allocations: 23.92 kB / 0.6642 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1975/0.9955, allocations: 9.55 MB / 0.6735 GB, free: 179.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.9956, allocations: 8.688 kB / 0.6735 GB, free: 179.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/0.9988, allocations: 0.7557 MB / 0.6742 GB, free: 179.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003346/1.002, allocations: 1.57 MB / 0.6758 GB, free: 179.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004588/1.003, allocations: 82.8 kB / 0.6758 GB, free: 179.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01336/1.016, allocations: 14.65 MB / 0.6902 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/1.016, allocations: 14.88 kB / 0.6902 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009782/1.026, allocations: 7.372 MB / 0.6974 GB, free: 167.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.027, allocations: 0.6757 MB / 0.698 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005403/1.028, allocations: 47.53 kB / 0.6981 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002758/1.031, allocations: 314.3 kB / 0.6984 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008375/1.032, allocations: 492 kB / 0.6988 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003044/1.032, allocations: 171.6 kB / 0.699 GB, free: 167.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0009031/1.033, allocations: 0.7702 MB / 0.6998 GB, free: 167.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003825/1.037, allocations: 0.7871 MB / 0.7005 GB, free: 167.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007574/1.037, allocations: 243.7 kB / 0.7008 GB, free: 167.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007617/1.045, allocations: 4.169 MB / 0.7048 GB, free: 166.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/1.045, allocations: 3.844 kB / 0.7048 GB, free: 166.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008008/1.053, allocations: 3.215 MB / 0.708 GB, free: 165.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/1.057, allocations: 273.4 kB / 0.7082 GB, free: 165.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/1.071, allocations: 6.662 MB / 0.7147 GB, free: 161.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002938/1.074, allocations: 2.098 MB / 0.7168 GB, free: 161.1 MB / 474.7 MB Notification: Performance of SimCode: time 8.71e-07/1.074, allocations: 0 / 0.7168 GB, free: 161.1 MB / 474.7 MB Notification: Performance of Templates: time 0.08482/1.159, allocations: 52.21 MB / 0.7678 GB, free: 119.7 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1)