Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001527/0.001527, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.17/1.17, allocations: 194.5 MB / 211.6 MB, free: 3.035 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.001606/0.001606, allocations: 107.7 kB / 256.9 MB, free: 4.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002766, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07571/0.076, allocations: 44.5 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.2935, allocations: 76.39 MB / 431.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.2938, allocations: 66.97 kB / 431.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0235/0.3173, allocations: 9.955 MB / 441.5 MB, free: 4.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3173, allocations: 0 / 441.5 MB, free: 4.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.3173, allocations: 12 kB / 441.5 MB, free: 4.84 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.000856/0.3182, allocations: 0.6142 MB / 442.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.3182, allocations: 8.031 kB / 442.1 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.3185, allocations: 63.47 kB / 442.2 MB, free: 4.133 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.3189, allocations: 282.2 kB / 442.4 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.319, allocations: 89.17 kB / 442.5 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.814e-05/0.3191, allocations: 36.66 kB / 442.6 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006515/0.3197, allocations: 409.9 kB / 443 MB, free: 3.434 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3197, allocations: 4 kB / 443 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.3198, allocations: 17.38 kB / 443 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3198, allocations: 8 kB / 443 MB, free: 3.414 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000784/0.3206, allocations: 476.5 kB / 443.5 MB, free: 3.051 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.3217, allocations: 0.8996 MB / 444.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006228/0.3223, allocations: 382.3 kB / 444.7 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.3223, allocations: 12.36 kB / 444.7 MB, free: 2.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.3224, allocations: 50.81 kB / 444.8 MB, free: 1.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.553e-06/0.3224, allocations: 4 kB / 444.8 MB, free: 1.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004231/0.3266, allocations: 2.147 MB / 446.9 MB, free: 32 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.3267, allocations: 81.67 kB / 447 MB, free: 15.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.327, allocations: 207.4 kB / 447.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.096e-05/0.327, allocations: 41.69 kB / 447.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.3271, allocations: 131.5 kB / 447.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.3273, allocations: 189.4 kB / 447.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.3273, allocations: 8 kB / 447.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3275, allocations: 342.8 kB / 447.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004093/0.3279, allocations: 193 kB / 448.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.3283, allocations: 244.6 kB / 448.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.3287, allocations: 190.1 kB / 448.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3288, allocations: 0 / 448.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001144/0.3299, allocations: 0.6173 MB / 449.2 MB, free: 13.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3299, allocations: 4 kB / 449.2 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.3299, allocations: 0 / 449.2 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006824/0.3306, allocations: 242.8 kB / 449.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.331, allocations: 71.89 kB / 449.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003682/0.3347, allocations: 2.755 MB / 452.2 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.335, allocations: 36 kB / 452.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.445e-05/0.3351, allocations: 24.06 kB / 452.3 MB, free: 10.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002079/0.3353, allocations: 153.8 kB / 452.4 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/0.3354, allocations: 31.62 kB / 452.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.3355, allocations: 51.31 kB / 452.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3355, allocations: 7.984 kB / 452.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3355, allocations: 3.953 kB / 452.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.3355, allocations: 0 / 452.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.3375, allocations: 1.256 MB / 453.8 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3375, allocations: 0 / 453.8 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.3378, allocations: 75.88 kB / 453.8 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/0.3384, allocations: 226.2 kB / 454.1 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.3385, allocations: 20.73 kB / 454.1 MB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003415/0.3419, allocations: 2.655 MB / 456.7 MB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3419, allocations: 3.953 kB / 456.7 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.3436, allocations: 0.9472 MB / 457.7 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3439, allocations: 160.8 kB / 457.9 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.3439, allocations: 12 kB / 457.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.3442, allocations: 39.92 kB / 457.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.3444, allocations: 72.3 kB / 458 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.3444, allocations: 21.2 kB / 458 MB, free: 4.535 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001911/0.3446, allocations: 175.1 kB / 458.2 MB, free: 4.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3446, allocations: 4 kB / 458.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005815/0.3452, allocations: 159.9 kB / 458.3 MB, free: 4.207 MB / 330.7 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: 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 (31): * Single equations (assignments): 30 * 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.0002301/0.3454, allocations: 143.1 kB / 458.5 MB, free: 4.055 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.3467, allocations: 0.6887 MB / 459.2 MB, free: 3.352 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3467, allocations: 4 kB / 459.2 MB, free: 3.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.3475, allocations: 479.7 kB / 459.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3478, allocations: 26.25 kB / 459.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.3493, allocations: 0.9402 MB / 460.6 MB, free: 1.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.3498, allocations: 0.8009 MB / 461.4 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002311/0.35, allocations: 69.14 kB / 461.5 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3501, allocations: 39.41 kB / 461.5 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3501, allocations: 0 / 461.5 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of Templates: time 0.01046/0.3606, allocations: 6.804 MB / 468.3 MB, free: 10.24 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)