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.0008185/0.0008185, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009254/0.0009255, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004329/0.0004329, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2768, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002954/0.2798, allocations: 2.303 MB / 328.8 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.2823, allocations: 1.064 MB / 329.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003983/0.2827, allocations: 8.375 kB / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.2831, allocations: 62 kB / 329.9 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007838/0.2839, allocations: 159.1 kB / 330.1 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.2845, allocations: 186.2 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009772/0.2854, allocations: 0.5615 MB / 330.8 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.2857, allocations: 101 kB / 330.9 MB, free: 14.03 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005996/0.2863, allocations: 254.2 kB / 331.2 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006268/0.287, allocations: 302 kB / 331.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.2871, allocations: 27.34 kB / 331.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003915/0.2875, allocations: 91.66 kB / 331.6 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.2878, allocations: 120.7 kB / 331.7 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.288, allocations: 101.6 kB / 331.8 MB, free: 13.53 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006259/0.2886, allocations: 466.4 kB / 332.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2886, allocations: 0 / 332.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2886, allocations: 1.469 kB / 332.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.2887, allocations: 0 / 332.2 MB, free: 13.2 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.001821/0.2905, allocations: 0.7319 MB / 333 MB, free: 12.6 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2905, allocations: 9.531 kB / 333 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003778/0.2909, allocations: 65.34 kB / 333 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005481/0.2915, allocations: 355.2 kB / 333.4 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.2916, allocations: 97.45 kB / 333.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.2917, allocations: 40.81 kB / 333.5 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.2928, allocations: 0.5647 MB / 334.1 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.2929, allocations: 0 / 334.1 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.2929, allocations: 19.98 kB / 334.1 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2929, allocations: 8 kB / 334.1 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.2943, allocations: 0.6518 MB / 334.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.2969, allocations: 1.322 MB / 336.1 MB, free: 9.688 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.2981, allocations: 0.5452 MB / 336.6 MB, free: 9.137 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.2988, allocations: 326.4 kB / 337 MB, free: 8.816 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.269e-05/0.2988, allocations: 12.5 kB / 337 MB, free: 8.805 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.2989, allocations: 39.12 kB / 337 MB, free: 8.758 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 2.404e-06/0.2989, allocations: 4 kB / 337 MB, free: 8.754 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006917/0.3058, allocations: 2.958 MB / 340 MB, free: 5.672 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.3059, allocations: 85.67 kB / 340.1 MB, free: 5.57 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.3063, allocations: 331 kB / 340.4 MB, free: 5.234 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.736e-05/0.3064, allocations: 41.7 kB / 340.4 MB, free: 5.188 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.3065, allocations: 161.5 kB / 340.6 MB, free: 5.027 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.3068, allocations: 232.7 kB / 340.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.3068, allocations: 12 kB / 340.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.307, allocations: 354.8 kB / 341.2 MB, free: 4.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006135/0.3076, allocations: 293.2 kB / 341.4 MB, free: 4.145 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.3082, allocations: 358.5 kB / 341.8 MB, free: 3.781 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.3088, allocations: 271.1 kB / 342.1 MB, free: 3.52 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3089, allocations: 0 / 342.1 MB, free: 3.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001912/0.3108, allocations: 0.9085 MB / 343 MB, free: 2.602 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.3108, allocations: 4 kB / 343 MB, free: 2.598 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3109, allocations: 8.031 kB / 343 MB, free: 2.59 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.312, allocations: 477.8 kB / 343.4 MB, free: 2.121 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.3124, allocations: 87.88 kB / 343.5 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3138, allocations: 1.083 MB / 344.6 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.3143, allocations: 80 kB / 344.7 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.253e-05/0.3143, allocations: 23.98 kB / 344.7 MB, free: 0.8242 MB / 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002663/0.3146, allocations: 173.8 kB / 344.9 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/0.3147, allocations: 39.59 kB / 344.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001756/0.3149, allocations: 75.7 kB / 345 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.3149, allocations: 11.95 kB / 345 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3149, allocations: 0 / 345 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.315, allocations: 7.984 kB / 345 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003449/0.3184, allocations: 1.773 MB / 346.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3184, allocations: 0 / 346.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003668/0.3188, allocations: 91.81 kB / 346.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00094/0.3198, allocations: 444.5 kB / 347.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-05/0.3198, allocations: 15.98 kB / 347.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.3211, allocations: 1.044 MB / 348.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3211, allocations: 0 / 348.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/0.3235, allocations: 1.317 MB / 349.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002603/0.3238, allocations: 184.6 kB / 349.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.54e-05/0.3239, allocations: 16 kB / 349.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004312/0.3243, allocations: 72 kB / 350 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.3245, allocations: 96.36 kB / 350.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.095e-05/0.3246, allocations: 31.97 kB / 350.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003035/0.3249, allocations: 241.9 kB / 350.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3249, allocations: 0 / 350.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005621/0.3255, allocations: 152 kB / 350.5 MB, free: 10.92 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 (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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002936/0.3258, allocations: 147.2 kB / 350.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.3273, allocations: 0.7197 MB / 351.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3274, allocations: 0 / 351.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008396/0.3282, allocations: 396.2 kB / 351.7 MB, free: 9.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.3287, allocations: 52.83 kB / 351.8 MB, free: 9.605 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.3315, allocations: 1.357 MB / 353.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004938/0.332, allocations: 0.8212 MB / 354 MB, free: 7.367 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002515/0.3323, allocations: 63.34 kB / 354 MB, free: 7.305 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.3324, allocations: 39.41 kB / 354.1 MB, free: 7.266 MB / 286.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3324, allocations: 0 / 354.1 MB, free: 7.266 MB / 286.1 MB Notification: Performance of Templates: time 0.01616/0.3486, allocations: 8.949 MB / 363 MB, free: 14.31 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)