Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.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) 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") [: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.001336/0.001336, allocations: 190.4 kB / 8.136 MB, free: 2.172 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.096/1.096, allocations: 194.2 MB / 202.8 MB, free: 8.699 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.001748/0.001748, allocations: 121.5 kB / 247.8 MB, free: 6.336 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.843e-06, allocations: 4 kB / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07076/0.07078, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.2627, allocations: 75.28 MB / 417.3 MB, free: 19.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.263, allocations: 70.64 kB / 417.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02/0.283, allocations: 7.25 MB / 424.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.283, allocations: 12 kB / 424.7 MB, free: 13.66 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001235/0.2843, allocations: 0.7047 MB / 425.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.2843, allocations: 8.031 kB / 425.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.2845, allocations: 47.44 kB / 425.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.2848, allocations: 309.1 kB / 425.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.2849, allocations: 16 kB / 425.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.6e-05/0.285, allocations: 31.03 kB / 425.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006241/0.2856, allocations: 374.9 kB / 426.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/0.2862, allocations: 369.8 kB / 426.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.2862, allocations: 7.938 kB / 426.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.2863, allocations: 7.906 kB / 426.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.2863, allocations: 8.75 kB / 426.5 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.2884, allocations: 1.083 MB / 427.6 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004726/0.2889, allocations: 268.7 kB / 427.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003366/0.2892, allocations: 227.1 kB / 428.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.812e-05/0.2893, allocations: 12.42 kB / 428.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.2893, allocations: 38.62 kB / 428.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 2.044e-06/0.2893, allocations: 0 / 428.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.003214/0.2926, allocations: 1.551 MB / 429.7 MB, free: 9.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.2926, allocations: 63.75 kB / 429.7 MB, free: 9.277 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.2928, allocations: 205.3 kB / 429.9 MB, free: 9.102 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.291e-05/0.2928, allocations: 33.45 kB / 430 MB, free: 9.066 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.2929, allocations: 151.1 kB / 430.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.293, allocations: 197.5 kB / 430.3 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.293, allocations: 0 / 430.3 MB, free: 8.758 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.181e-05/0.2931, allocations: 349.7 kB / 430.7 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.2934, allocations: 192.9 kB / 430.8 MB, free: 8.312 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.2937, allocations: 229.5 kB / 431.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004082/0.2941, allocations: 160.3 kB / 431.2 MB, free: 8.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2941, allocations: 0 / 431.2 MB, free: 8.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00141/0.2956, allocations: 0.6472 MB / 431.9 MB, free: 7.566 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.2956, allocations: 4 kB / 431.9 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.2956, allocations: 4 kB / 431.9 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006509/0.2963, allocations: 374.3 kB / 432.2 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000363/0.2966, allocations: 91.2 kB / 432.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.2977, allocations: 1.385 MB / 433.7 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/0.2984, allocations: 104 kB / 433.8 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.291e-05/0.2984, allocations: 23.61 kB / 433.8 MB, free: 5.77 MB / 314.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.2986, allocations: 123.8 kB / 434 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.573e-05/0.2987, allocations: 39.53 kB / 434 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.3, allocations: 0.6509 MB / 434.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3001, allocations: 4 kB / 434.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3001, allocations: 0 / 434.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.3001, allocations: 0 / 434.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.3025, allocations: 1.286 MB / 435.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3025, allocations: 0 / 435.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.3029, allocations: 95.23 kB / 436 MB, free: 3.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00057/0.3035, allocations: 350.8 kB / 436.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.254e-05/0.3036, allocations: 19.41 kB / 436.4 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.3046, allocations: 1.343 MB / 437.7 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3046, allocations: 3.938 kB / 437.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001481/0.3061, allocations: 0.9588 MB / 438.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.3063, allocations: 165.6 kB / 438.9 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.3064, allocations: 11 kB / 438.9 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.3069, allocations: 84.86 kB / 439 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.3071, allocations: 113.7 kB / 439.1 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.466e-05/0.3072, allocations: 23.3 kB / 439.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.000115/0.3073, allocations: 166.5 kB / 439.3 MB, free: 1.086 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004748/0.3078, allocations: 112 kB / 439.4 MB, free: 0.9766 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002246/0.308, allocations: 143.4 kB / 439.5 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008339/0.3088, allocations: 0.5381 MB / 440 MB, free: 456 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3089, allocations: 4 kB / 440.1 MB, free: 452 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000485/0.3093, allocations: 280 kB / 440.3 MB, free: 256 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.3098, allocations: 55.31 kB / 440.4 MB, free: 212 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.3117, allocations: 0.9231 MB / 441.3 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.3122, allocations: 0.862 MB / 442.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3122, allocations: 0 / 442.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of Templates: time 0.01402/0.3262, allocations: 8.543 MB / 450.7 MB, free: 5.984 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)