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.001008/0.001008, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.395/1.395, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001746/0.001746, allocations: 121 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.213e-05/2.216e-05, allocations: 0 / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 44.49 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3153/0.4154, allocations: 75.63 MB / 418.2 MB, free: 20.24 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001615/0.4156, allocations: 67.09 kB / 418.3 MB, free: 20.21 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02405/0.4397, allocations: 9.874 MB / 428.1 MB, free: 12.1 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4397, allocations: 4 kB / 428.1 MB, free: 12.09 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4397, allocations: 15.98 kB / 428.2 MB, free: 12.08 MB / 315.1 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.0008618/0.4406, allocations: 0.5855 MB / 428.7 MB, free: 11.47 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.4407, allocations: 8.031 kB / 428.8 MB, free: 11.46 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.4409, allocations: 56.06 kB / 428.8 MB, free: 11.41 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.4413, allocations: 284 kB / 429.1 MB, free: 11.12 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.4414, allocations: 83.73 kB / 429.2 MB, free: 11.03 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.118e-05/0.4415, allocations: 19.91 kB / 429.2 MB, free: 11.01 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005643/0.442, allocations: 397.3 kB / 429.6 MB, free: 10.73 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.4425, allocations: 351.1 kB / 429.9 MB, free: 10.46 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.4426, allocations: 1.688 kB / 429.9 MB, free: 10.46 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.4426, allocations: 0 / 429.9 MB, free: 10.46 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.4426, allocations: 8 kB / 429.9 MB, free: 10.45 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.4438, allocations: 0.8327 MB / 430.8 MB, free: 9.75 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.4442, allocations: 325 kB / 431.1 MB, free: 9.531 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.4445, allocations: 185.3 kB / 431.3 MB, free: 9.418 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.4445, allocations: 15.88 kB / 431.3 MB, free: 9.406 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.4445, allocations: 38.31 kB / 431.3 MB, free: 9.363 MB / 315.1 MB Notification: Performance of pre-optimization done (n=49): time 1.533e-06/0.4445, allocations: 0 / 431.3 MB, free: 9.363 MB / 315.1 MB Notification: Performance of matching and sorting (n=55): time 0.002236/0.4468, allocations: 1.44 MB / 432.8 MB, free: 8.109 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.4468, allocations: 85.67 kB / 432.8 MB, free: 8.008 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.447, allocations: 177.5 kB / 433 MB, free: 7.852 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.447, allocations: 29.7 kB / 433 MB, free: 7.816 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.4471, allocations: 138 kB / 433.2 MB, free: 7.695 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.4472, allocations: 177.7 kB / 433.3 MB, free: 7.539 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.544e-05/0.4472, allocations: 0 / 433.3 MB, free: 7.539 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.4473, allocations: 335.4 kB / 433.7 MB, free: 7.215 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.4475, allocations: 159.3 kB / 433.8 MB, free: 7.121 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.4477, allocations: 199.8 kB / 434 MB, free: 6.984 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.448, allocations: 158.7 kB / 434.2 MB, free: 6.879 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.448, allocations: 0 / 434.2 MB, free: 6.879 MB / 315.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006998/0.4487, allocations: 0.5157 MB / 434.7 MB, free: 6.496 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4487, allocations: 7.984 kB / 434.7 MB, free: 6.488 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.4488, allocations: 3.984 kB / 434.7 MB, free: 6.484 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005628/0.4493, allocations: 238.2 kB / 434.9 MB, free: 6.305 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002815/0.4496, allocations: 73.77 kB / 435 MB, free: 6.238 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002702/0.4523, allocations: 2.581 MB / 437.6 MB, free: 4.094 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.4526, allocations: 32.06 kB / 437.6 MB, free: 4.062 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.4527, allocations: 18.8 kB / 437.6 MB, free: 4.047 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.000153/0.4528, allocations: 124 kB / 437.8 MB, free: 3.922 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.158e-05/0.4529, allocations: 31.62 kB / 437.8 MB, free: 3.891 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.683e-05/0.453, allocations: 43.45 kB / 437.8 MB, free: 3.875 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.453, allocations: 8 kB / 437.8 MB, free: 3.867 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.453, allocations: 1.062 kB / 437.8 MB, free: 3.867 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.453, allocations: 4 kB / 437.9 MB, free: 3.863 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.4544, allocations: 1.097 MB / 439 MB, free: 2.992 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4545, allocations: 8.969 kB / 439 MB, free: 2.984 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.4548, allocations: 63.14 kB / 439 MB, free: 2.926 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004916/0.4553, allocations: 224.1 kB / 439.2 MB, free: 2.754 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.4553, allocations: 11.23 kB / 439.3 MB, free: 2.746 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/0.4577, allocations: 2.504 MB / 441.8 MB, free: 0.6289 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4577, allocations: 4.062 kB / 441.8 MB, free: 0.625 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009925/0.4587, allocations: 0.8252 MB / 442.6 MB, free: 20 kB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.4589, allocations: 144.7 kB / 442.7 MB, free: 15.88 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.341e-05/0.459, allocations: 4 kB / 442.7 MB, free: 15.88 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.4593, allocations: 28.03 kB / 442.8 MB, free: 15.85 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.4594, allocations: 78.92 kB / 442.8 MB, free: 15.78 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4595, allocations: 20.27 kB / 442.9 MB, free: 15.76 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.4596, allocations: 148.4 kB / 443 MB, free: 15.64 MB / 331.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4596, allocations: 0 / 443 MB, free: 15.64 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0005947/0.4602, allocations: 139.9 kB / 443.1 MB, free: 15.5 MB / 331.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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * 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.0002348/0.4605, allocations: 144.5 kB / 443.3 MB, free: 15.36 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0008469/0.4613, allocations: 0.5898 MB / 443.9 MB, free: 14.91 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4613, allocations: 0 / 443.9 MB, free: 14.91 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.4619, allocations: 417.4 kB / 444.3 MB, free: 14.59 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.4622, allocations: 26.14 kB / 444.3 MB, free: 14.57 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.4632, allocations: 0.5809 MB / 444.9 MB, free: 14.04 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.4636, allocations: 0.8042 MB / 445.7 MB, free: 13.21 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.4638, allocations: 63.25 kB / 445.7 MB, free: 13.16 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.4639, allocations: 30.86 kB / 445.8 MB, free: 13.13 MB / 331.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4639, allocations: 0 / 445.8 MB, free: 13.13 MB / 331.1 MB Notification: Performance of Templates: time 0.01145/0.4754, allocations: 6.523 MB / 452.3 MB, free: 6.684 MB / 331.1 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)