Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001201/0.001201, allocations: 111 kB / 17.06 MB, free: 5.965 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.001165/0.001165, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.508/1.508, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001401/0.001401, allocations: 51.94 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004151/0.1094, allocations: 2.723 MB / 377.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.112, allocations: 1.128 MB / 378.3 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003683/0.1124, allocations: 4 kB / 378.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.1128, allocations: 71.36 kB / 378.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.1138, allocations: 194.8 kB / 378.6 MB, free: 444 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006143/0.1145, allocations: 243.5 kB / 378.8 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1827/0.2972, allocations: 0.643 MB / 379.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.2975, allocations: 122.5 kB / 379.6 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000451/0.2979, allocations: 296.5 kB / 379.9 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004117/0.2984, allocations: 347.9 kB / 380.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.545e-05/0.2985, allocations: 52.09 kB / 380.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.2988, allocations: 142 kB / 380.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.2989, allocations: 146.3 kB / 380.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.2992, allocations: 244.2 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009099/0.3001, allocations: 0.6479 MB / 381.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3001, allocations: 4.062 kB / 381.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3001, allocations: 0.7031 kB / 381.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3001, allocations: 0.5938 kB / 381.4 MB, free: 9.613 MB / 318.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.001526/0.3017, allocations: 0.7966 MB / 382.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3017, allocations: 12.77 kB / 382.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003222/0.302, allocations: 64.97 kB / 382.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.3026, allocations: 363.2 kB / 382.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.3027, allocations: 100.7 kB / 382.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.257e-05/0.3028, allocations: 42.94 kB / 382.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.3039, allocations: 0.5647 MB / 383.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3039, allocations: 1.031 kB / 383.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.304, allocations: 18.75 kB / 383.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.304, allocations: 10.09 kB / 383.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.3052, allocations: 0.6357 MB / 384 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.3076, allocations: 1.296 MB / 385.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.3088, allocations: 0.543 MB / 385.9 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006393/0.3095, allocations: 319.9 kB / 386.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.14e-05/0.3095, allocations: 6.875 kB / 386.2 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.3096, allocations: 42.59 kB / 386.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.174e-06/0.3096, allocations: 0 / 386.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006443/0.316, allocations: 2.87 MB / 389.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3161, allocations: 84.77 kB / 389.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.3165, allocations: 335.1 kB / 389.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/0.3165, allocations: 48.52 kB / 389.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.3166, allocations: 159.9 kB / 389.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.3168, allocations: 225.5 kB / 389.9 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.317, allocations: 125.4 kB / 390.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.443e-05/0.3171, allocations: 349.2 kB / 390.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005595/0.3177, allocations: 287.3 kB / 390.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006804/0.3184, allocations: 357.4 kB / 391 MB, free: 5.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.3194, allocations: 0.5242 MB / 391.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3194, allocations: 1.219 kB / 391.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001867/0.3213, allocations: 0.8787 MB / 392.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3213, allocations: 5.953 kB / 392.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3213, allocations: 5.094 kB / 392.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.3225, allocations: 481.9 kB / 392.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.3229, allocations: 87.23 kB / 393 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.3242, allocations: 1.075 MB / 394.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005294/0.3247, allocations: 55.81 kB / 394.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.718e-05/0.3248, allocations: 26.67 kB / 394.2 MB, free: 3.672 MB / 318.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.0002719/0.3251, allocations: 182.9 kB / 394.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3252, allocations: 43.66 kB / 394.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.3254, allocations: 63.53 kB / 394.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3254, allocations: 7.797 kB / 394.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.3254, allocations: 0 / 394.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.3254, allocations: 5.375 kB / 394.5 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.3287, allocations: 1.756 MB / 396.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3287, allocations: 8.312 kB / 396.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.3291, allocations: 79.31 kB / 396.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009485/0.3301, allocations: 452.2 kB / 396.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.979e-05/0.3302, allocations: 27 kB / 396.8 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.3313, allocations: 1.04 MB / 397.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3314, allocations: 2.219 kB / 397.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.3339, allocations: 1.31 MB / 399.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.3342, allocations: 173.1 kB / 399.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.75e-05/0.3343, allocations: 19.31 kB / 399.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.3347, allocations: 59.77 kB / 399.4 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.3349, allocations: 83.67 kB / 399.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.106e-05/0.335, allocations: 25.53 kB / 399.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002708/0.3353, allocations: 240.4 kB / 399.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3353, allocations: 0 / 399.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006286/0.3359, allocations: 150.2 kB / 399.9 MB, free: 0.8359 MB / 318.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.0002706/0.3362, allocations: 146.1 kB / 400 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3378, allocations: 0.7175 MB / 400.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3378, allocations: 0 / 400.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000853/0.3386, allocations: 392.6 kB / 401.1 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.3392, allocations: 53.94 kB / 401.1 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.3419, allocations: 1.106 MB / 402.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.3424, allocations: 0.8218 MB / 403.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.3426, allocations: 59.41 kB / 403.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.3427, allocations: 46.25 kB / 403.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3427, allocations: 0 / 403.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of Templates: time 0.01768/0.3604, allocations: 10.45 MB / 413.6 MB, free: 7.168 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)