Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.003912/0.003912, allocations: 178.6 kB / 7.451 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.126/1.126, 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.001685/0.001685, allocations: 99.92 kB / 217.7 MB, free: 8.168 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.1815/0.1815, allocations: 37.97 MB / 294.8 MB, free: 9.633 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.815e-06/7.845e-06, allocations: 0 / 349.5 MB, free: 37.11 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 48.7 MB / 398.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.4769, allocations: 79.27 MB / 477.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4771, allocations: 62.47 kB / 477.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03318/0.5103, allocations: 11.33 MB / 488.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.349e-05/0.5105, allocations: 19 kB / 488.9 MB, free: 12.7 MB / 330.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.003062/0.5135, allocations: 0.9763 MB / 489.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.5136, allocations: 14.88 kB / 489.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004716/0.5141, allocations: 77.81 kB / 489.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5151, allocations: 407.9 kB / 490.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.067e-05/0.5152, allocations: 23.48 kB / 490.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.5155, allocations: 42.91 kB / 490.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001513/0.517, allocations: 0.6397 MB / 491 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.5184, allocations: 0.6966 MB / 491.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.5185, allocations: 5.266 kB / 491.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.808e-05/0.5186, allocations: 3.875 kB / 491.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.5186, allocations: 11.62 kB / 491.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.5237, allocations: 2.527 MB / 494.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/0.5247, allocations: 439.9 kB / 494.7 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005171/0.5252, allocations: 314.8 kB / 495 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.226e-05/0.5253, allocations: 16.22 kB / 495 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.5253, allocations: 41.89 kB / 495.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 5.08e-06/0.5253, allocations: 0 / 495.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=76): time 0.00507/0.5304, allocations: 2.445 MB / 497.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.5305, allocations: 141 kB / 497.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.5311, allocations: 341.4 kB / 498 MB, free: 8.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.5312, allocations: 43.12 kB / 498 MB, free: 8.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.5314, allocations: 236.9 kB / 498.3 MB, free: 8.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.5317, allocations: 255.2 kB / 498.5 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.5318, allocations: 1.031 kB / 498.5 MB, free: 8.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5319, allocations: 369.3 kB / 498.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.5325, allocations: 327.8 kB / 499.2 MB, free: 8.156 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.5332, allocations: 482.1 kB / 499.7 MB, free: 7.996 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007716/0.534, allocations: 290.5 kB / 499.9 MB, free: 7.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.534, allocations: 3.938 kB / 500 MB, free: 7.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00269/0.5367, allocations: 1.197 MB / 0.4894 GB, free: 7.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.5367, allocations: 4.578 kB / 0.4894 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/0.5368, allocations: 7.812 kB / 0.4894 GB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00169/0.5385, allocations: 0.7544 MB / 0.4902 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.5391, allocations: 163.7 kB / 0.4903 GB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.5417, allocations: 2.769 MB / 0.493 GB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.5428, allocations: 197 kB / 0.4932 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.543, allocations: 43.59 kB / 0.4932 GB, free: 5.578 MB / 330.7 MB 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: 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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004073/0.5434, allocations: 142.4 kB / 0.4934 GB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/0.5437, allocations: 66 kB / 0.4934 GB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.5439, allocations: 75.7 kB / 0.4935 GB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.5439, allocations: 7.5 kB / 0.4935 GB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/0.544, allocations: 4.625 kB / 0.4935 GB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.544, allocations: 3.141 kB / 0.4935 GB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004405/0.5484, allocations: 2.117 MB / 0.4956 GB, free: 20.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5484, allocations: 0 / 0.4956 GB, free: 20.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.549, allocations: 124.4 kB / 0.4957 GB, free: 20.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.5502, allocations: 0.7023 MB / 0.4964 GB, free: 20.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-05/0.5503, allocations: 25.52 kB / 0.4964 GB, free: 20.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/0.5531, allocations: 2.715 MB / 0.4991 GB, free: 18.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.5531, allocations: 11.75 kB / 0.4991 GB, free: 18.32 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002859/0.5559, allocations: 1.737 MB / 0.5008 GB, free: 17.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/0.5564, allocations: 221.2 kB / 0.501 GB, free: 17.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002094/0.5566, allocations: 14.91 kB / 0.501 GB, free: 17.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.5576, allocations: 187.5 kB / 0.5012 GB, free: 17.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/0.558, allocations: 160.6 kB / 0.5013 GB, free: 17.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.991e-05/0.5581, allocations: 41.73 kB / 0.5014 GB, free: 17.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003417/0.5584, allocations: 259.7 kB / 0.5016 GB, free: 17.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001006/0.5594, allocations: 162.3 kB / 0.5018 GB, free: 17.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.0003171/0.5598, allocations: 148.5 kB / 0.5019 GB, free: 17.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.5613, allocations: 0.793 MB / 0.5027 GB, free: 17.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.5613, allocations: 8.594 kB / 0.5027 GB, free: 17.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008472/0.5622, allocations: 436.9 kB / 0.5031 GB, free: 16.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/0.563, allocations: 79.81 kB / 0.5032 GB, free: 16.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.5664, allocations: 1.595 MB / 0.5048 GB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000788/0.5672, allocations: 0.9681 MB / 0.5057 GB, free: 15.16 MB / 346.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5672, allocations: 0 / 0.5057 GB, free: 15.16 MB / 346.7 MB Notification: Performance of Templates: time 0.0288/0.596, allocations: 13.15 MB / 0.5185 GB, free: 8.508 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe 2>&1)