Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 199.2 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2832, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003927/0.2872, allocations: 2.719 MB / 328 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002413/0.2897, allocations: 1.13 MB / 329.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.2899, allocations: 9.562 kB / 329.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.2903, allocations: 69.86 kB / 329.2 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008126/0.2911, allocations: 189.5 kB / 329.4 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.2917, allocations: 244.9 kB / 329.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000678/0.2924, allocations: 0.6384 MB / 330.3 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.2927, allocations: 123 kB / 330.4 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003962/0.2931, allocations: 289.8 kB / 330.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004054/0.2935, allocations: 347.3 kB / 331 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.765e-05/0.2936, allocations: 51.81 kB / 331.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.2939, allocations: 133 kB / 331.2 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.2941, allocations: 148.9 kB / 331.4 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.2944, allocations: 242.2 kB / 331.6 MB, free: 13.26 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.2951, allocations: 0.6398 MB / 332.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2951, allocations: 4 kB / 332.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2951, allocations: 0 / 332.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.2951, allocations: 1.344 kB / 332.2 MB, free: 12.79 MB / 270.1 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.001585/0.2967, allocations: 0.7968 MB / 333 MB, free: 12.1 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.2967, allocations: 11.89 kB / 333.1 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004093/0.2972, allocations: 68.36 kB / 333.1 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004948/0.2977, allocations: 358.5 kB / 333.5 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.2978, allocations: 96.95 kB / 333.6 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.532e-05/0.2979, allocations: 48.2 kB / 333.6 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.299, allocations: 0.5723 MB / 334.2 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.299, allocations: 0 / 334.2 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.364e-05/0.299, allocations: 16 kB / 334.2 MB, free: 10.88 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.2991, allocations: 8 kB / 334.2 MB, free: 10.87 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.3004, allocations: 0.6363 MB / 334.8 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.3029, allocations: 1.295 MB / 336.1 MB, free: 8.883 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.304, allocations: 0.5365 MB / 336.7 MB, free: 8.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006193/0.3047, allocations: 322.5 kB / 337 MB, free: 8.02 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.3047, allocations: 16.5 kB / 337 MB, free: 8.004 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.3048, allocations: 39.12 kB / 337 MB, free: 7.953 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 1.833e-06/0.3048, allocations: 4 kB / 337.1 MB, free: 7.949 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.007088/0.3119, allocations: 2.856 MB / 339.9 MB, free: 4.973 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.312, allocations: 93.61 kB / 340 MB, free: 4.863 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.3125, allocations: 338.8 kB / 340.3 MB, free: 4.52 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/0.3126, allocations: 45.7 kB / 340.4 MB, free: 4.469 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.3128, allocations: 153.6 kB / 340.5 MB, free: 4.316 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.3131, allocations: 228.8 kB / 340.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.3133, allocations: 114.3 kB / 340.9 MB, free: 3.973 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.3136, allocations: 346.8 kB / 341.2 MB, free: 3.625 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006811/0.3143, allocations: 293.2 kB / 341.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007177/0.315, allocations: 354.5 kB / 341.8 MB, free: 2.98 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3161, allocations: 0.5265 MB / 342.4 MB, free: 2.445 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3161, allocations: 0 / 342.4 MB, free: 2.445 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00198/0.3181, allocations: 0.8811 MB / 343.2 MB, free: 1.555 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.3181, allocations: 7.938 kB / 343.2 MB, free: 1.547 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3181, allocations: 3.938 kB / 343.2 MB, free: 1.543 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.3193, allocations: 473.6 kB / 343.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.3197, allocations: 83.88 kB / 343.8 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.3212, allocations: 1.083 MB / 344.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005695/0.3218, allocations: 64.02 kB / 344.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.127e-05/0.3219, allocations: 27.98 kB / 345 MB, free: 15.79 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003345/0.3222, allocations: 169.7 kB / 345.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3223, allocations: 47.59 kB / 345.2 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.3225, allocations: 63.77 kB / 345.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.3226, allocations: 8 kB / 345.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-05/0.3226, allocations: 3.984 kB / 345.3 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3226, allocations: 0 / 345.3 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.3262, allocations: 1.762 MB / 347 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.3263, allocations: 0 / 347 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/0.3266, allocations: 83.83 kB / 347.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009836/0.3276, allocations: 452.5 kB / 347.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.803e-05/0.3277, allocations: 27.97 kB / 347.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.3291, allocations: 1.04 MB / 348.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3291, allocations: 0 / 348.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002598/0.3317, allocations: 1.313 MB / 349.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.332, allocations: 176.6 kB / 350.1 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.3321, allocations: 16 kB / 350.1 MB, free: 10.51 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.3326, allocations: 55.94 kB / 350.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.3328, allocations: 88.36 kB / 350.2 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.3328, allocations: 23.97 kB / 350.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000348/0.3332, allocations: 241.9 kB / 350.5 MB, free: 10.11 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3332, allocations: 0 / 350.5 MB, free: 10.11 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006003/0.3338, allocations: 156 kB / 350.7 MB, free: 9.953 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000311/0.3341, allocations: 147.1 kB / 350.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.336, allocations: 0.7392 MB / 351.5 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.336, allocations: 0 / 351.5 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008969/0.3369, allocations: 396.1 kB / 351.9 MB, free: 8.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.3375, allocations: 48.81 kB / 352 MB, free: 8.625 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002834/0.3403, allocations: 1.127 MB / 353.1 MB, free: 7.469 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.3408, allocations: 0.8212 MB / 353.9 MB, free: 6.621 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002761/0.341, allocations: 67.34 kB / 354 MB, free: 6.555 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3412, allocations: 43.41 kB / 354 MB, free: 6.512 MB / 286.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3412, allocations: 0 / 354 MB, free: 6.512 MB / 286.1 MB Notification: Performance of Templates: time 0.01778/0.359, allocations: 9.937 MB / 364 MB, free: 12.57 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)