Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") [: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.002747/0.002747, allocations: 183.4 kB / 7.457 MB, free: 2.5 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.291/1.291, allocations: 194.2 MB / 202.1 MB, free: 8.715 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.00188/0.00188, allocations: 122.4 kB / 247.1 MB, free: 6.328 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.1759/0.1759, allocations: 39.94 MB / 331.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.863e-06/6.893e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 54.86 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3305/0.4413, allocations: 85.68 MB / 0.5208 GB, free: 9.586 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.4416, allocations: 63.34 kB / 0.5209 GB, free: 9.578 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03197/0.4736, allocations: 11.52 MB / 0.5321 GB, free: 3.691 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.955e-05/0.4737, allocations: 16 kB / 0.5321 GB, free: 3.676 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001744/0.4754, allocations: 0.9618 MB / 0.5331 GB, free: 2.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4755, allocations: 8.031 kB / 0.5331 GB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.4756, allocations: 83 kB / 0.5332 GB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.4761, allocations: 409.4 kB / 0.5336 GB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4761, allocations: 24 kB / 0.5336 GB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.4763, allocations: 39.94 kB / 0.5336 GB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000897/0.4772, allocations: 0.5793 MB / 0.5342 GB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009124/0.4781, allocations: 0.6617 MB / 0.5348 GB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.4781, allocations: 7.938 kB / 0.5348 GB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.536e-05/0.4782, allocations: 7.906 kB / 0.5348 GB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.4782, allocations: 16 kB / 0.5349 GB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.4822, allocations: 2.499 MB / 0.5373 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000778/0.483, allocations: 446.1 kB / 0.5377 GB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.4835, allocations: 316.8 kB / 0.538 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.623e-05/0.4836, allocations: 15.14 kB / 0.538 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.138e-05/0.4836, allocations: 50.02 kB / 0.5381 GB, free: 14.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=78): time 2.875e-06/0.4836, allocations: 4 kB / 0.5381 GB, free: 14.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=82): time 0.004341/0.488, allocations: 2.305 MB / 0.5403 GB, free: 12.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.4881, allocations: 136.5 kB / 0.5405 GB, free: 12.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.4884, allocations: 295.1 kB / 0.5408 GB, free: 11.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-05/0.4885, allocations: 40.02 kB / 0.5408 GB, free: 11.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.4886, allocations: 224.5 kB / 0.541 GB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.4888, allocations: 274.1 kB / 0.5413 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.4889, allocations: 0 / 0.5413 GB, free: 11.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.489, allocations: 371.5 kB / 0.5416 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.4895, allocations: 300.5 kB / 0.5419 GB, free: 10.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.4901, allocations: 450.2 kB / 0.5423 GB, free: 10.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.4907, allocations: 265.4 kB / 0.5426 GB, free: 10.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.4907, allocations: 0 / 0.5426 GB, free: 10.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00242/0.4932, allocations: 1.047 MB / 0.5436 GB, free: 9.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.4932, allocations: 11.98 kB / 0.5436 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-05/0.4933, allocations: 12 kB / 0.5436 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.4944, allocations: 0.5712 MB / 0.5442 GB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.4949, allocations: 150.4 kB / 0.5443 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.4972, allocations: 2.675 MB / 0.5469 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.4983, allocations: 199.8 kB / 0.5471 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.4984, allocations: 46.38 kB / 0.5472 GB, free: 6.168 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($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,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003066/0.4987, allocations: 144 kB / 0.5473 GB, free: 6.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.4989, allocations: 63.25 kB / 0.5474 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.5012, allocations: 0.9837 MB / 0.5483 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.5012, allocations: 12 kB / 0.5484 GB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.5013, allocations: 4 kB / 0.5484 GB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.5013, allocations: 7.969 kB / 0.5484 GB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/0.5048, allocations: 1.893 MB / 0.5502 GB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5048, allocations: 0 / 0.5502 GB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006672/0.5054, allocations: 127.7 kB / 0.5503 GB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009657/0.5064, allocations: 0.5395 MB / 0.5509 GB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.562e-05/0.5065, allocations: 27.83 kB / 0.5509 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.5087, allocations: 2.606 MB / 0.5534 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.5087, allocations: 7.938 kB / 0.5534 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002474/0.5112, allocations: 1.584 MB / 0.555 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/0.5116, allocations: 217.1 kB / 0.5552 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.5117, allocations: 15.38 kB / 0.5552 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009374/0.5127, allocations: 179.8 kB / 0.5554 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.513, allocations: 173.5 kB / 0.5555 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.5131, allocations: 39.08 kB / 0.5556 GB, free: 14.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002616/0.5134, allocations: 246.1 kB / 0.5558 GB, free: 14.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008006/0.5142, allocations: 164 kB / 0.556 GB, free: 14.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002784/0.5145, allocations: 158.3 kB / 0.5561 GB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.5159, allocations: 0.877 MB / 0.557 GB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5159, allocations: 0 / 0.557 GB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000899/0.5168, allocations: 448.2 kB / 0.5574 GB, free: 13.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007163/0.5175, allocations: 88.64 kB / 0.5575 GB, free: 13.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.5207, allocations: 1.59 MB / 0.559 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006519/0.5213, allocations: 0.9641 MB / 0.56 GB, free: 10.69 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5213, allocations: 0 / 0.56 GB, free: 10.69 MB / 378.7 MB Notification: Performance of Templates: time 0.02231/0.5437, allocations: 13.67 MB / 0.5733 GB, free: 13.09 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe 2>&1)