Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.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) 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.004173/0.004173, allocations: 172.8 kB / 7.446 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.436/1.436, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001729/0.001729, allocations: 115.8 kB / 217.7 MB, free: 8.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.865e-06/7.904e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 38.76 MB / 300.5 MB, free: 3.914 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.372, allocations: 69.95 MB / 370.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3724, allocations: 72.39 kB / 370.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02151/0.3939, allocations: 7.207 MB / 377.7 MB, free: 8.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3939, allocations: 8 kB / 377.7 MB, free: 8.445 MB / 266.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.001545/0.3955, allocations: 0.7131 MB / 378.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.3956, allocations: 11.97 kB / 378.5 MB, free: 7.703 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.3958, allocations: 51.44 kB / 378.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005405/0.3963, allocations: 309.1 kB / 378.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.3964, allocations: 19.88 kB / 378.8 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.964e-05/0.3965, allocations: 31.84 kB / 378.9 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008172/0.3973, allocations: 415.8 kB / 379.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007266/0.398, allocations: 394.6 kB / 379.7 MB, free: 6.719 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.3981, allocations: 3.984 kB / 379.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.3981, allocations: 0 / 379.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3981, allocations: 12 kB / 379.7 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.4004, allocations: 1.084 MB / 380.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.401, allocations: 266.1 kB / 381 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.4014, allocations: 241.1 kB / 381.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.4015, allocations: 8.062 kB / 381.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.4015, allocations: 38.19 kB / 381.3 MB, free: 5.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.914e-06/0.4015, allocations: 0 / 381.3 MB, free: 5.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.003567/0.4051, allocations: 1.631 MB / 382.9 MB, free: 3.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.4051, allocations: 55.91 kB / 383 MB, free: 3.906 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.4054, allocations: 222.5 kB / 383.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.4055, allocations: 32.88 kB / 383.2 MB, free: 3.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4056, allocations: 167.1 kB / 383.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.4058, allocations: 188.9 kB / 383.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.4058, allocations: 0 / 383.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4059, allocations: 344.3 kB / 383.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.4063, allocations: 214.7 kB / 384.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.4066, allocations: 255.8 kB / 384.4 MB, free: 2.742 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004184/0.4071, allocations: 176.6 kB / 384.5 MB, free: 2.625 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4071, allocations: 0 / 384.5 MB, free: 2.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001655/0.4087, allocations: 0.7956 MB / 385.3 MB, free: 1.984 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.4088, allocations: 4 kB / 385.3 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.4088, allocations: 0 / 385.3 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008804/0.4097, allocations: 494.7 kB / 385.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.4101, allocations: 99.77 kB / 385.9 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.4116, allocations: 1.445 MB / 387.4 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.4122, allocations: 104 kB / 387.5 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-05/0.4123, allocations: 23.92 kB / 387.5 MB, free: 20 kB / 266.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): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002105/0.4125, allocations: 124.5 kB / 387.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.34e-05/0.4126, allocations: 43.47 kB / 387.7 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.4127, allocations: 50.36 kB / 387.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.4127, allocations: 7.906 kB / 387.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4127, allocations: 0 / 387.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4127, allocations: 7.984 kB / 387.7 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.4156, allocations: 1.415 MB / 389.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4156, allocations: 4 kB / 389.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.416, allocations: 93.73 kB / 389.2 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007402/0.4167, allocations: 476.9 kB / 389.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.4168, allocations: 11.36 kB / 389.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.4181, allocations: 1.403 MB / 391.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.4181, allocations: 7.938 kB / 391.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001701/0.4198, allocations: 1.087 MB / 392.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.42, allocations: 160.8 kB / 392.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.4202, allocations: 15.45 kB / 392.4 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004822/0.4206, allocations: 87.88 kB / 392.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.4209, allocations: 113.9 kB / 392.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.912e-05/0.4209, allocations: 30.72 kB / 392.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001644/0.4211, allocations: 168.5 kB / 392.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005124/0.4216, allocations: 114.9 kB / 392.9 MB, free: 11.25 MB / 282.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.0002662/0.4219, allocations: 126.2 kB / 393 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009894/0.4229, allocations: 0.5112 MB / 393.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4229, allocations: 0 / 393.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005318/0.4235, allocations: 293.7 kB / 393.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.4239, allocations: 59.31 kB / 393.9 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.4259, allocations: 0.9223 MB / 394.8 MB, free: 9.637 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005293/0.4265, allocations: 0.8585 MB / 395.6 MB, free: 8.758 MB / 282.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4265, allocations: 4 kB / 395.6 MB, free: 8.754 MB / 282.7 MB Notification: Performance of Templates: time 0.01399/0.4405, allocations: 8.218 MB / 403.9 MB, free: 0.5469 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)