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.001693/0.001693, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002364/0.002364, allocations: 191.4 kB / 16.14 MB, free: 6.707 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.531/1.531, allocations: 205.1 MB / 222 MB, free: 4.984 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.001163/0.001163, allocations: 55.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.26, allocations: 46.62 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00528/0.2653, allocations: 2.77 MB / 327.4 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.2678, allocations: 1.134 MB / 328.6 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004289/0.2682, allocations: 5.062 kB / 328.6 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.2686, allocations: 62.38 kB / 328.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006217/0.2692, allocations: 155.8 kB / 328.8 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.2697, allocations: 217.8 kB / 329 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.2703, allocations: 0.6098 MB / 329.6 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.2705, allocations: 113.4 kB / 329.7 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003406/0.2709, allocations: 263.4 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.2712, allocations: 328.8 kB / 330.3 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.787e-05/0.2713, allocations: 31.84 kB / 330.3 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.2716, allocations: 111.9 kB / 330.4 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.2718, allocations: 127.4 kB / 330.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.272, allocations: 233.1 kB / 330.8 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006021/0.2726, allocations: 0.6083 MB / 331.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2726, allocations: 1.062 kB / 331.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2726, allocations: 0 / 331.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2727, allocations: 3.938 kB / 331.4 MB, free: 12.91 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.001571/0.2742, allocations: 0.7926 MB / 332.2 MB, free: 12.26 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2743, allocations: 9.875 kB / 332.2 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003312/0.2746, allocations: 66.77 kB / 332.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.2751, allocations: 364 kB / 332.6 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.2753, allocations: 89.56 kB / 332.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.73e-05/0.2754, allocations: 50.14 kB / 332.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.2768, allocations: 0.5616 MB / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.2768, allocations: 0 / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/0.2769, allocations: 16 kB / 333.3 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2769, allocations: 8 kB / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.2783, allocations: 0.648 MB / 334 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.2806, allocations: 1.287 MB / 335.3 MB, free: 9.387 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.2817, allocations: 0.5371 MB / 335.8 MB, free: 8.844 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006285/0.2824, allocations: 322.4 kB / 336.1 MB, free: 8.527 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.362e-05/0.2824, allocations: 20.44 kB / 336.2 MB, free: 8.504 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2825, allocations: 39.12 kB / 336.2 MB, free: 8.457 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 1.603e-06/0.2825, allocations: 0 / 336.2 MB, free: 8.457 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006891/0.2894, allocations: 2.871 MB / 339.1 MB, free: 5.465 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.2895, allocations: 89.61 kB / 339.2 MB, free: 5.359 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.2899, allocations: 334.9 kB / 339.5 MB, free: 5.016 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.813e-05/0.29, allocations: 41.7 kB / 339.5 MB, free: 4.969 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.2901, allocations: 157.6 kB / 339.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.2903, allocations: 228.8 kB / 339.9 MB, free: 4.586 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.2906, allocations: 118.3 kB / 340 MB, free: 4.465 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2907, allocations: 350.8 kB / 340.4 MB, free: 4.113 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/0.2913, allocations: 289.2 kB / 340.6 MB, free: 3.832 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006455/0.2919, allocations: 362.4 kB / 341 MB, free: 3.465 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.293, allocations: 0.5227 MB / 341.5 MB, free: 2.938 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.293, allocations: 0 / 341.5 MB, free: 2.938 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001705/0.2947, allocations: 0.8849 MB / 342.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.2948, allocations: 7.938 kB / 342.4 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2948, allocations: 4.031 kB / 342.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.2959, allocations: 473.6 kB / 342.9 MB, free: 1.566 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.2962, allocations: 79.89 kB / 343 MB, free: 1.488 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.2976, allocations: 1.079 MB / 344 MB, free: 392 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.2982, allocations: 64.02 kB / 344.1 MB, free: 328 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.2982, allocations: 23.98 kB / 344.1 MB, free: 304 kB / 270.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.0002683/0.2985, allocations: 181.6 kB / 344.3 MB, free: 112 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-05/0.2986, allocations: 43.52 kB / 344.3 MB, free: 68 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.2988, allocations: 63.77 kB / 344.4 MB, free: 0 / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.2988, allocations: 12.05 kB / 344.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.2988, allocations: 0 / 344.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.2988, allocations: 0 / 344.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003192/0.302, allocations: 1.765 MB / 346.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.302, allocations: 0 / 346.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003811/0.3024, allocations: 79.89 kB / 346.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009637/0.3034, allocations: 444.4 kB / 346.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.3035, allocations: 27.97 kB / 346.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3047, allocations: 1.044 MB / 347.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3047, allocations: 8 kB / 347.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.3071, allocations: 1.305 MB / 349.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.3074, allocations: 172.6 kB / 349.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3075, allocations: 19.98 kB / 349.3 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.308, allocations: 56 kB / 349.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.3082, allocations: 80.42 kB / 349.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.143e-05/0.3082, allocations: 23.98 kB / 349.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002927/0.3085, allocations: 249.9 kB / 349.7 MB, free: 10.6 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3085, allocations: 0 / 349.7 MB, free: 10.6 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005783/0.3091, allocations: 148 kB / 349.8 MB, free: 10.45 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.0003201/0.3095, allocations: 143.1 kB / 349.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.3111, allocations: 0.7118 MB / 350.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3111, allocations: 0 / 350.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008125/0.3119, allocations: 392 kB / 351 MB, free: 9.207 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.3125, allocations: 53 kB / 351.1 MB, free: 9.156 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.3152, allocations: 1.278 MB / 352.4 MB, free: 7.844 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.3156, allocations: 0.8173 MB / 353.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002562/0.3158, allocations: 59.34 kB / 353.2 MB, free: 6.945 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.316, allocations: 43.41 kB / 353.3 MB, free: 6.902 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.316, allocations: 0 / 353.3 MB, free: 6.902 MB / 286.1 MB Notification: Performance of Templates: time 0.01567/0.3317, allocations: 9.331 MB / 362.6 MB, free: 13.56 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)