Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion") translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.003894/0.003894, allocations: 172.5 kB / 7.446 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.274/1.274, allocations: 170.6 MB / 178.4 MB, free: 15.43 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.001774/0.001774, allocations: 111.9 kB / 217.7 MB, free: 8.207 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.1787/0.1787, allocations: 37.97 MB / 294.8 MB, free: 9.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/6.021e-06, allocations: 0 / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 48.72 MB / 398.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3836/0.4963, allocations: 89.25 MB / 487.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4966, allocations: 63.19 kB / 487.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1851/0.6816, allocations: 63.16 MB / 0.5378 GB, free: 15.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000304/0.682, allocations: 63.52 kB / 0.5378 GB, free: 15.4 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01141/0.6934, allocations: 2.998 MB / 0.5408 GB, free: 12.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.6935, allocations: 8.031 kB / 0.5408 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00335/0.6969, allocations: 419.8 kB / 0.5412 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004779/0.7017, allocations: 1.304 MB / 0.5424 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001128/0.7028, allocations: 0.4908 MB / 0.5429 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/0.7043, allocations: 187.7 kB / 0.5431 GB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01013/0.7145, allocations: 2.994 MB / 0.546 GB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009717/0.7243, allocations: 2.809 MB / 0.5488 GB, free: 3.965 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003223/0.7246, allocations: 43.59 kB / 0.5488 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008327/0.7255, allocations: 0 / 0.5488 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.215e-05/0.7256, allocations: 68 kB / 0.5489 GB, free: 3.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0251/0.7507, allocations: 9.194 MB / 0.5578 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005658/0.7564, allocations: 2.24 MB / 0.56 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003908/0.7604, allocations: 1.485 MB / 0.5615 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000435/0.7608, allocations: 56.47 kB / 0.5615 GB, free: 6.664 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/0.761, allocations: 96.11 kB / 0.5616 GB, free: 6.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=359): time 7.244e-06/0.761, allocations: 0 / 0.5616 GB, free: 6.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=421): time 0.03862/0.7996, allocations: 16.18 MB / 0.5774 GB, free: 5.332 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003206/0.8, allocations: 0.5622 MB / 0.578 GB, free: 4.645 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002242/0.8022, allocations: 1.083 MB / 0.579 GB, free: 3.555 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001173/0.8034, allocations: 55 kB / 0.5791 GB, free: 3.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000744/0.8042, allocations: 0.7218 MB / 0.5798 GB, free: 2.762 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002351/0.8065, allocations: 1.362 MB / 0.5811 GB, free: 1.387 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003474/0.8069, allocations: 7.984 kB / 0.5811 GB, free: 1.379 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003273/0.8072, allocations: 467 kB / 0.5816 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002933/0.8102, allocations: 1.316 MB / 0.5829 GB, free: 15.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004096/0.8143, allocations: 2.023 MB / 0.5848 GB, free: 13.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/0.8182, allocations: 1.346 MB / 0.5862 GB, free: 11.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/0.8182, allocations: 11.94 kB / 0.5862 GB, free: 11.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01056/0.8288, allocations: 4.578 MB / 0.5906 GB, free: 7.352 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.8289, allocations: 4 kB / 0.5906 GB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.027e-05/0.829, allocations: 16 kB / 0.5907 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004524/0.8335, allocations: 1.896 MB / 0.5925 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004135/0.8376, allocations: 0.8425 MB / 0.5933 GB, free: 4.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02005/0.8577, allocations: 15.29 MB / 0.6083 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004578/0.8624, allocations: 323.7 kB / 0.6086 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/0.8637, allocations: 188 kB / 0.6088 GB, free: 3.992 MB / 426.7 MB 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 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: 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: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (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,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001308/0.865, allocations: 244.2 kB / 0.609 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/0.8663, allocations: 268.7 kB / 0.6092 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.8677, allocations: 0.5432 MB / 0.6098 GB, free: 2.926 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-05/0.8678, allocations: 40 kB / 0.6098 GB, free: 2.887 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.305e-05/0.8678, allocations: 8 kB / 0.6098 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.565e-05/0.8679, allocations: 27.86 kB / 0.6098 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2283/1.096, allocations: 9.546 MB / 0.6192 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.464e-05/1.096, allocations: 10.59 kB / 0.6192 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003717/1.1, allocations: 0.749 MB / 0.6199 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004124/1.104, allocations: 1.775 MB / 0.6216 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000846/1.105, allocations: 81.16 kB / 0.6217 GB, free: 148 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/1.12, allocations: 14.78 MB / 0.6362 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/1.12, allocations: 14.44 kB / 0.6362 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01207/1.132, allocations: 7.524 MB / 0.6435 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/1.134, allocations: 0.6847 MB / 0.6442 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007369/1.135, allocations: 48.64 kB / 0.6442 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00317/1.138, allocations: 317.5 kB / 0.6445 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000916/1.139, allocations: 489.9 kB / 0.645 GB, free: 136.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003257/1.14, allocations: 168.8 kB / 0.6452 GB, free: 136.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0011/1.141, allocations: 0.7909 MB / 0.6459 GB, free: 136 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004274/1.145, allocations: 0.8099 MB / 0.6467 GB, free: 136 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (299): * Single equations (assignments): 289 * 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.0006973/1.146, allocations: 277.6 kB / 0.647 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006986/1.153, allocations: 4.129 MB / 0.651 GB, free: 135.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/1.153, allocations: 3.094 kB / 0.651 GB, free: 135.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006746/1.16, allocations: 3.162 MB / 0.6541 GB, free: 134.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/1.163, allocations: 278.4 kB / 0.6544 GB, free: 134.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/1.176, allocations: 6.654 MB / 0.6609 GB, free: 131.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002957/1.179, allocations: 2.106 MB / 0.6629 GB, free: 130.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/1.179, allocations: 0 / 0.6629 GB, free: 130.4 MB / 426.7 MB Notification: Performance of Templates: time 0.0811/1.26, allocations: 52.08 MB / 0.7138 GB, free: 97.61 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1)