Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001526/0.001526, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001747/0.001747, allocations: 196.2 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.493/1.493, allocations: 205.1 MB / 222 MB, free: 4.754 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.001177/0.001177, allocations: 51.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2774, allocations: 46.62 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004209/0.2817, allocations: 2.754 MB / 327.4 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.2841, allocations: 1.141 MB / 328.6 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.2843, allocations: 9.844 kB / 328.6 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002678/0.2846, allocations: 54.88 kB / 328.6 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005571/0.2852, allocations: 158.8 kB / 328.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.2856, allocations: 225.7 kB / 329 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006328/0.2863, allocations: 0.6139 MB / 329.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.2865, allocations: 113.2 kB / 329.7 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003738/0.2869, allocations: 259.6 kB / 330 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004116/0.2873, allocations: 329.1 kB / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.584e-05/0.2874, allocations: 30.91 kB / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002771/0.2877, allocations: 107.7 kB / 330.4 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.2879, allocations: 124.7 kB / 330.6 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.2882, allocations: 232.7 kB / 330.8 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007087/0.2889, allocations: 0.6165 MB / 331.4 MB, free: 13.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2889, allocations: 4 kB / 331.4 MB, free: 13.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2889, allocations: 0 / 331.4 MB, free: 13.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.2889, allocations: 1.281 kB / 331.4 MB, free: 13.02 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.001714/0.2907, allocations: 0.7922 MB / 332.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2907, allocations: 12.62 kB / 332.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003595/0.2911, allocations: 63.39 kB / 332.3 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.2916, allocations: 360.7 kB / 332.6 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.2918, allocations: 93.23 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.2919, allocations: 46.81 kB / 332.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.2931, allocations: 0.5646 MB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.2931, allocations: 0 / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.2932, allocations: 16 kB / 333.3 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2932, allocations: 8 kB / 333.4 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.2946, allocations: 0.644 MB / 334 MB, free: 10.71 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.2971, allocations: 1.283 MB / 335.3 MB, free: 9.367 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.2982, allocations: 0.5494 MB / 335.8 MB, free: 8.812 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005809/0.2988, allocations: 318.4 kB / 336.1 MB, free: 8.5 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.2989, allocations: 12.5 kB / 336.2 MB, free: 8.484 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.2989, allocations: 39.12 kB / 336.2 MB, free: 8.438 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 1.783e-06/0.2989, allocations: 4 kB / 336.2 MB, free: 8.434 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006645/0.3056, allocations: 2.86 MB / 339.1 MB, free: 5.453 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.3057, allocations: 89.61 kB / 339.1 MB, free: 5.348 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004284/0.3061, allocations: 342.8 kB / 339.5 MB, free: 4.996 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.3062, allocations: 49.69 kB / 339.5 MB, free: 4.941 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3063, allocations: 153.6 kB / 339.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.3065, allocations: 224.8 kB / 339.9 MB, free: 4.566 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.3067, allocations: 118.3 kB / 340 MB, free: 4.445 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3068, allocations: 350.8 kB / 340.4 MB, free: 4.094 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.3074, allocations: 289.2 kB / 340.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.308, allocations: 354.5 kB / 341 MB, free: 3.453 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.3091, allocations: 0.5226 MB / 341.5 MB, free: 2.926 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3091, allocations: 32 / 341.5 MB, free: 2.926 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001729/0.3108, allocations: 0.885 MB / 342.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3109, allocations: 7.938 kB / 342.4 MB, free: 2.023 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3109, allocations: 64 / 342.4 MB, free: 2.023 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3121, allocations: 485.5 kB / 342.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.3125, allocations: 83.88 kB / 343 MB, free: 1.465 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.3139, allocations: 1.079 MB / 344 MB, free: 368 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/0.3144, allocations: 60.02 kB / 344.1 MB, free: 308 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.246e-05/0.3145, allocations: 24 kB / 344.1 MB, free: 284 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.0003262/0.3148, allocations: 177.7 kB / 344.3 MB, free: 96 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.315, allocations: 47.47 kB / 344.3 MB, free: 48 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.3151, allocations: 59.84 kB / 344.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3152, allocations: 8 kB / 344.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.3152, allocations: 0 / 344.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3152, allocations: 7.922 kB / 344.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/0.3184, allocations: 1.765 MB / 346.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3184, allocations: 0 / 346.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.3188, allocations: 87.91 kB / 346.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009949/0.3198, allocations: 440.5 kB / 346.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.383e-05/0.3198, allocations: 23.98 kB / 346.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.3211, allocations: 1.044 MB / 347.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3212, allocations: 0 / 347.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.3236, allocations: 1.309 MB / 349.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.3239, allocations: 176.6 kB / 349.2 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.953e-05/0.324, allocations: 19.98 kB / 349.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004172/0.3245, allocations: 51.94 kB / 349.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.3247, allocations: 88.34 kB / 349.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.217e-05/0.3247, allocations: 23.98 kB / 349.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002786/0.325, allocations: 250 kB / 349.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.325, allocations: 0 / 349.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005233/0.3256, allocations: 148 kB / 349.8 MB, free: 10.43 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.0002623/0.3258, allocations: 151 kB / 350 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3274, allocations: 0.7079 MB / 350.7 MB, free: 9.562 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3274, allocations: 3.938 kB / 350.7 MB, free: 9.559 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008229/0.3283, allocations: 392.1 kB / 351 MB, free: 9.176 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.3288, allocations: 48.86 kB / 351.1 MB, free: 9.129 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002743/0.3316, allocations: 1.278 MB / 352.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.332, allocations: 0.8212 MB / 353.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.3323, allocations: 59.34 kB / 353.3 MB, free: 6.914 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3324, allocations: 43.42 kB / 353.3 MB, free: 6.871 MB / 286.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3324, allocations: 0 / 353.3 MB, free: 6.871 MB / 286.1 MB Notification: Performance of Templates: time 0.01588/0.3483, allocations: 9.328 MB / 362.6 MB, free: 13.54 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)