Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00106/0.00106, allocations: 180.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.133/1.133, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001567/0.001567, allocations: 114.8 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.000316, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.07935, allocations: 44.49 MB / 355 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.3086, allocations: 75.79 MB / 430.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/0.3088, allocations: 77.91 kB / 430.9 MB, free: 13.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02183/0.3307, allocations: 9.325 MB / 440.2 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3307, allocations: 0 / 440.2 MB, free: 5.934 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3307, allocations: 4 kB / 440.2 MB, free: 5.93 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008248/0.3316, allocations: 0.5878 MB / 440.8 MB, free: 5.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3316, allocations: 12.03 kB / 440.8 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.3319, allocations: 48.62 kB / 440.9 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.3323, allocations: 278.7 kB / 441.2 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.3324, allocations: 86.14 kB / 441.2 MB, free: 4.887 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-05/0.3325, allocations: 25.06 kB / 441.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.3331, allocations: 376.8 kB / 441.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3331, allocations: 3.984 kB / 441.6 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.3331, allocations: 14.56 kB / 441.7 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3331, allocations: 4 kB / 441.7 MB, free: 4.562 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.3338, allocations: 416.2 kB / 442.1 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.3352, allocations: 1.164 MB / 443.2 MB, free: 3.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.3357, allocations: 339 kB / 443.6 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3358, allocations: 7.984 kB / 443.6 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.3358, allocations: 37.94 kB / 443.6 MB, free: 2.957 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.984e-06/0.3358, allocations: 0 / 443.6 MB, free: 2.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.003824/0.3396, allocations: 1.881 MB / 445.5 MB, free: 1.336 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.3397, allocations: 88.8 kB / 445.6 MB, free: 1.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.3399, allocations: 195.6 kB / 445.8 MB, free: 1.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.3399, allocations: 36.27 kB / 445.8 MB, free: 1.027 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.34, allocations: 136 kB / 445.9 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-05/0.3401, allocations: 147.9 kB / 446.1 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.3401, allocations: 5.938 kB / 446.1 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.898e-05/0.3402, allocations: 340.4 kB / 446.4 MB, free: 460 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.3405, allocations: 166.9 kB / 446.6 MB, free: 320 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.3408, allocations: 221.9 kB / 446.8 MB, free: 80 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.3411, allocations: 156.8 kB / 447 MB, free: 15.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3411, allocations: 0 / 447 MB, free: 15.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001013/0.3422, allocations: 0.5473 MB / 447.5 MB, free: 15.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.3422, allocations: 9.25 kB / 447.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3422, allocations: 0.75 kB / 447.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.3429, allocations: 238.3 kB / 447.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.3431, allocations: 55.91 kB / 447.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.3467, allocations: 2.707 MB / 450.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.347, allocations: 31.97 kB / 450.5 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.347, allocations: 16 kB / 450.5 MB, free: 12.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.3472, allocations: 157.8 kB / 450.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.067e-05/0.3473, allocations: 27.72 kB / 450.7 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.146e-05/0.3474, allocations: 44.77 kB / 450.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3474, allocations: 7.938 kB / 450.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3474, allocations: 3.953 kB / 450.8 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3474, allocations: 0 / 450.8 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.3492, allocations: 1.067 MB / 451.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3492, allocations: 0 / 451.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.3494, allocations: 51.91 kB / 451.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006018/0.35, allocations: 224.6 kB / 452.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.3501, allocations: 19.98 kB / 452.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003314/0.3534, allocations: 2.647 MB / 454.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3534, allocations: 4.031 kB / 454.8 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3548, allocations: 0.7939 MB / 455.6 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.355, allocations: 140.8 kB / 455.7 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.044e-05/0.355, allocations: 12 kB / 455.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.3553, allocations: 27.97 kB / 455.8 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.3555, allocations: 71.94 kB / 455.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.3555, allocations: 19.98 kB / 455.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.3557, allocations: 157.5 kB / 456 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3557, allocations: 0 / 456 MB, free: 6.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006268/0.3563, allocations: 148.4 kB / 456.2 MB, free: 6.352 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002516/0.3566, allocations: 139.2 kB / 456.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.3577, allocations: 0.6195 MB / 456.9 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3577, allocations: 0 / 456.9 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006575/0.3584, allocations: 425.6 kB / 457.3 MB, free: 5.141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3587, allocations: 28.48 kB / 457.4 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.36, allocations: 0.8224 MB / 458.2 MB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.3604, allocations: 0.7881 MB / 459 MB, free: 3.457 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002165/0.3606, allocations: 57.89 kB / 459 MB, free: 3.398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3607, allocations: 39.41 kB / 459.1 MB, free: 3.359 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3607, allocations: 0 / 459.1 MB, free: 3.359 MB / 330.7 MB Notification: Performance of Templates: time 0.0111/0.3718, allocations: 6.247 MB / 465.3 MB, free: 13.21 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)