Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001069/0.001069, allocations: 169.8 kB / 7.637 MB, free: 1.438 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.266/1.266, allocations: 170.7 MB / 178.7 MB, free: 7.047 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.001551/0.001551, allocations: 118.2 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.497e-05/1.501e-05, allocations: 8 kB / 262.2 MB, free: 3.066 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1888, allocations: 38.76 MB / 301 MB, free: 39.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07928/0.2681, allocations: 69.72 MB / 370.7 MB, free: 9.914 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.2683, allocations: 69.19 kB / 370.8 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02625/0.2946, allocations: 9.264 MB / 380 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2947, allocations: 0 / 380 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.2947, allocations: 4 kB / 380 MB, free: 0.6523 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001073/0.2958, allocations: 0.5528 MB / 380.6 MB, free: 56 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.2958, allocations: 8.031 kB / 380.6 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003718/0.2962, allocations: 55.77 kB / 380.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.2967, allocations: 274.5 kB / 380.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.2969, allocations: 79.95 kB / 381 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.569e-05/0.297, allocations: 27.75 kB / 381 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006654/0.2976, allocations: 356.9 kB / 381.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.2981, allocations: 312.2 kB / 381.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2982, allocations: 8.984 kB / 381.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.2982, allocations: 5.031 kB / 381.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2982, allocations: 7.938 kB / 381.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.3, allocations: 1.115 MB / 382.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.3004, allocations: 283 kB / 383.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.3007, allocations: 148.8 kB / 383.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.3007, allocations: 4 kB / 383.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.3008, allocations: 42.56 kB / 383.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.505e-06/0.3008, allocations: 0 / 383.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002755/0.3035, allocations: 1.241 MB / 384.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.3036, allocations: 84.86 kB / 384.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.3039, allocations: 189.5 kB / 384.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.3039, allocations: 27.58 kB / 384.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.841e-05/0.304, allocations: 136.9 kB / 384.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.3041, allocations: 145.9 kB / 385.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.3042, allocations: 0 / 385.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3043, allocations: 334.8 kB / 385.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.3045, allocations: 144.8 kB / 385.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.3048, allocations: 193 kB / 385.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.3051, allocations: 136.7 kB / 385.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3051, allocations: 8.031 kB / 385.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008183/0.3059, allocations: 483.6 kB / 386.4 MB, free: 9.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.306, allocations: 7.938 kB / 386.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.306, allocations: 0 / 386.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/0.3066, allocations: 232.8 kB / 386.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.3069, allocations: 59.95 kB / 386.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003267/0.3101, allocations: 2.548 MB / 389.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.3104, allocations: 19.98 kB / 389.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/0.3105, allocations: 19.98 kB / 389.2 MB, free: 6.969 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001541/0.3106, allocations: 116.9 kB / 389.3 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.525e-05/0.3107, allocations: 31.67 kB / 389.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.128e-05/0.3108, allocations: 40.14 kB / 389.4 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3108, allocations: 4 kB / 389.4 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3108, allocations: 0 / 389.4 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3108, allocations: 0 / 389.4 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.3124, allocations: 0.9527 MB / 390.4 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3124, allocations: 0 / 390.4 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3126, allocations: 51.91 kB / 390.4 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005628/0.3132, allocations: 221.2 kB / 390.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.3133, allocations: 14.7 kB / 390.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/0.3163, allocations: 2.486 MB / 393.1 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3163, allocations: 8.016 kB / 393.2 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.3173, allocations: 0.7126 MB / 393.9 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.3175, allocations: 140.8 kB / 394 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.057e-05/0.3176, allocations: 0 / 394 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.3178, allocations: 28.03 kB / 394 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.318, allocations: 75.81 kB / 394.1 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.318, allocations: 12 kB / 394.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001269/0.3182, allocations: 152.3 kB / 394.3 MB, free: 1.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3182, allocations: 0 / 394.3 MB, free: 1.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005734/0.3187, allocations: 120 kB / 394.4 MB, free: 1.629 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002312/0.319, allocations: 145.2 kB / 394.5 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008256/0.3198, allocations: 0.5301 MB / 395.1 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3198, allocations: 4 kB / 395.1 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000518/0.3204, allocations: 368.5 kB / 395.4 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.3206, allocations: 23.92 kB / 395.4 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009127/0.3216, allocations: 0.4961 MB / 395.9 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3219, allocations: 0.7917 MB / 396.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.3221, allocations: 55.27 kB / 396.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3222, allocations: 31.42 kB / 396.8 MB, free: 15.12 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3223, allocations: 0 / 396.8 MB, free: 15.12 MB / 314.7 MB Notification: Performance of Templates: time 0.0107/0.333, allocations: 6.056 MB / 402.9 MB, free: 9.129 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)