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.0009086/0.0009088, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0008757/0.0008757, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.578/1.578, allocations: 205.4 MB / 223.4 MB, free: 5.348 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.0004954/0.0004956, allocations: 16 kB / 280.1 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3244, allocations: 47.58 MB / 327.7 MB, free: 1.48 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002772/0.3273, allocations: 2.198 MB / 329.9 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.3293, allocations: 1.087 MB / 331 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.3295, allocations: 4.375 kB / 331 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.3297, allocations: 52.89 kB / 331 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005892/0.3303, allocations: 181.5 kB / 331.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.3307, allocations: 191.6 kB / 331.4 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004699/0.3311, allocations: 396 kB / 331.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.3314, allocations: 92.89 kB / 331.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003461/0.3317, allocations: 256.5 kB / 332.1 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003771/0.3321, allocations: 302 kB / 332.4 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.572e-05/0.3322, allocations: 26.38 kB / 332.5 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.3324, allocations: 88.66 kB / 332.5 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.3326, allocations: 120.2 kB / 332.7 MB, free: 13.83 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.3327, allocations: 97.39 kB / 332.7 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.3332, allocations: 467.1 kB / 333.2 MB, free: 13.44 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3332, allocations: 0 / 333.2 MB, free: 13.44 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3332, allocations: 0 / 333.2 MB, free: 13.44 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3332, allocations: 0 / 333.2 MB, free: 13.44 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.001705/0.3349, allocations: 0.7357 MB / 333.9 MB, free: 12.83 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.335, allocations: 8.969 kB / 334 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003673/0.3353, allocations: 62.55 kB / 334 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005615/0.3359, allocations: 351.2 kB / 334.4 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.3361, allocations: 93.11 kB / 334.4 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.3363, allocations: 45.97 kB / 334.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.3374, allocations: 0.5624 MB / 335.1 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.3374, allocations: 11.94 kB / 335.1 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.555e-05/0.3375, allocations: 16 kB / 335.1 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.3375, allocations: 11.98 kB / 335.1 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.339, allocations: 0.648 MB / 335.7 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.3416, allocations: 1.314 MB / 337.1 MB, free: 9.949 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.3427, allocations: 0.553 MB / 337.6 MB, free: 9.391 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-05/0.3428, allocations: 4.562 kB / 337.6 MB, free: 9.387 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.3428, allocations: 39.12 kB / 337.6 MB, free: 9.34 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 1.973e-06/0.3428, allocations: 0 / 337.6 MB, free: 9.34 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006516/0.3493, allocations: 2.947 MB / 340.6 MB, free: 6.27 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.3494, allocations: 97.59 kB / 340.7 MB, free: 6.152 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.3498, allocations: 326.9 kB / 341 MB, free: 5.824 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.989e-05/0.3499, allocations: 45.69 kB / 341.1 MB, free: 5.773 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.35, allocations: 165.5 kB / 341.2 MB, free: 5.609 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.3502, allocations: 228.8 kB / 341.4 MB, free: 5.383 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.3502, allocations: 12 kB / 341.5 MB, free: 5.371 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3504, allocations: 346.8 kB / 341.8 MB, free: 5.023 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005527/0.3509, allocations: 293.2 kB / 342.1 MB, free: 4.738 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005995/0.3515, allocations: 362.4 kB / 342.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005293/0.3521, allocations: 267.2 kB / 342.7 MB, free: 4.113 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3521, allocations: 0 / 342.7 MB, free: 4.113 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001686/0.3538, allocations: 0.9123 MB / 343.6 MB, free: 3.191 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3538, allocations: 8 kB / 343.6 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3538, allocations: 0 / 343.6 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.3549, allocations: 469.9 kB / 344.1 MB, free: 2.723 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.3553, allocations: 91.94 kB / 344.2 MB, free: 2.633 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.3566, allocations: 1.079 MB / 345.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005126/0.3571, allocations: 84.02 kB / 345.3 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.3572, allocations: 27.92 kB / 345.3 MB, free: 1.418 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.0002867/0.3575, allocations: 173.8 kB / 345.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.902e-05/0.3576, allocations: 47.53 kB / 345.6 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.3577, allocations: 63.77 kB / 345.6 MB, free: 1.125 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.3578, allocations: 8 kB / 345.6 MB, free: 1.117 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3578, allocations: 3.953 kB / 345.6 MB, free: 1.113 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.3578, allocations: 3.984 kB / 345.6 MB, free: 1.109 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/0.3611, allocations: 1.781 MB / 347.4 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3611, allocations: 7.984 kB / 347.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.3615, allocations: 75.89 kB / 347.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009076/0.3624, allocations: 444.5 kB / 347.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.3625, allocations: 23.97 kB / 348 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.3637, allocations: 1.048 MB / 349 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3637, allocations: 0 / 349 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.3662, allocations: 1.331 MB / 350.3 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/0.3664, allocations: 176.5 kB / 350.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.3666, allocations: 23.98 kB / 350.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.367, allocations: 68 kB / 350.6 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.3672, allocations: 100.4 kB / 350.7 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.351e-05/0.3673, allocations: 23.98 kB / 350.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002933/0.3676, allocations: 241.9 kB / 351 MB, free: 11.64 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3676, allocations: 0 / 351 MB, free: 11.64 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000547/0.3681, allocations: 144 kB / 351.1 MB, free: 11.5 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.0003149/0.3685, allocations: 147.2 kB / 351.2 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.37, allocations: 0.7273 MB / 352 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.37, allocations: 0 / 352 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.3708, allocations: 396.1 kB / 352.4 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.3712, allocations: 44.98 kB / 352.4 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.3742, allocations: 1.35 MB / 353.8 MB, free: 8.805 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.3746, allocations: 0.829 MB / 354.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.3749, allocations: 63.33 kB / 354.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.375, allocations: 43.41 kB / 354.7 MB, free: 7.848 MB / 286.1 MB Notification: Performance of SimCode: time 3.8e-07/0.375, allocations: 0 / 354.7 MB, free: 7.848 MB / 286.1 MB Notification: Performance of Templates: time 0.01488/0.3899, allocations: 8.933 MB / 363.6 MB, free: 14.9 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: