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.001124/0.001124, allocations: 183.2 kB / 8.354 MB, free: 0.7305 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.605/1.605, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001738/0.001738, allocations: 120.7 kB / 248.1 MB, free: 16 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.373e-05, allocations: 4 kB / 298.1 MB, free: 35.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07125/0.07128, allocations: 44.51 MB / 342.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3351/0.4065, allocations: 75.04 MB / 417.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.4067, allocations: 75.53 kB / 417.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02301/0.4297, allocations: 9.249 MB / 426.9 MB, free: 8.328 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4298, allocations: 0 / 426.9 MB, free: 8.328 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.4298, allocations: 7.531 kB / 426.9 MB, free: 8.328 MB / 298.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.00108/0.4309, allocations: 0.5564 MB / 427.5 MB, free: 7.859 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.431, allocations: 11.56 kB / 427.5 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004096/0.4314, allocations: 58 kB / 427.6 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.4319, allocations: 265.7 kB / 427.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.432, allocations: 82.86 kB / 427.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.897e-05/0.4321, allocations: 15.38 kB / 427.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005309/0.4326, allocations: 366.4 kB / 428.3 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.4331, allocations: 308.4 kB / 428.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.4331, allocations: 3.906 kB / 428.6 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.4332, allocations: 7.844 kB / 428.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.4332, allocations: 11.52 kB / 428.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.435, allocations: 1.106 MB / 429.7 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004815/0.4355, allocations: 296.2 kB / 430 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.4357, allocations: 149.8 kB / 430.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.4358, allocations: 7.75 kB / 430.2 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.4358, allocations: 42 kB / 430.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.625e-06/0.4358, allocations: 0 / 430.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002525/0.4383, allocations: 1.241 MB / 431.4 MB, free: 5.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.4384, allocations: 88.55 kB / 431.5 MB, free: 5.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.4386, allocations: 176.1 kB / 431.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.4386, allocations: 29.45 kB / 431.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.694e-05/0.4387, allocations: 139.1 kB / 431.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-05/0.4388, allocations: 135.3 kB / 432 MB, free: 5.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.4389, allocations: 3.844 kB / 432 MB, free: 5.453 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.4389, allocations: 337.2 kB / 432.3 MB, free: 5.129 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.4392, allocations: 136.8 kB / 432.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.4394, allocations: 192 kB / 432.6 MB, free: 5.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.4398, allocations: 143.4 kB / 432.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4398, allocations: 4.781 kB / 432.8 MB, free: 5.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009365/0.4407, allocations: 479.8 kB / 433.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4407, allocations: 3.844 kB / 433.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4408, allocations: 3.75 kB / 433.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.4415, allocations: 228.4 kB / 433.5 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.4418, allocations: 61.11 kB / 433.5 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.4448, allocations: 2.566 MB / 436.1 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.445, allocations: 23.47 kB / 436.1 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.4451, allocations: 22.92 kB / 436.2 MB, free: 3.309 MB / 298.7 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: 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 () * 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.0001737/0.4453, allocations: 124.4 kB / 436.3 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.586e-05/0.4454, allocations: 27.31 kB / 436.3 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.662e-05/0.4455, allocations: 37.36 kB / 436.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.4455, allocations: 3.844 kB / 436.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.4455, allocations: 0 / 436.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4455, allocations: 3.844 kB / 436.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.4468, allocations: 0.9513 MB / 437.3 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4469, allocations: 0 / 437.3 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.4471, allocations: 50.06 kB / 437.3 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005186/0.4476, allocations: 221.2 kB / 437.6 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.4477, allocations: 11.11 kB / 437.6 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/0.4502, allocations: 2.51 MB / 440.1 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4502, allocations: 0 / 440.1 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009099/0.4512, allocations: 0.6892 MB / 440.8 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4513, allocations: 141.1 kB / 440.9 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.4514, allocations: 3.953 kB / 440.9 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.4516, allocations: 31.25 kB / 440.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.4518, allocations: 72.83 kB / 441 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.4518, allocations: 11.22 kB / 441 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.4519, allocations: 147.7 kB / 441.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.4519, allocations: 0 / 441.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000669/0.4526, allocations: 127.9 kB / 441.3 MB, free: 0.6641 MB / 298.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) * 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.000304/0.4529, allocations: 145.3 kB / 441.4 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008121/0.4537, allocations: 0.5333 MB / 442 MB, free: 380 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4537, allocations: 0 / 442 MB, free: 380 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.4542, allocations: 382.7 kB / 442.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.4545, allocations: 15.94 kB / 442.4 MB, free: 16.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000864/0.4554, allocations: 0.5057 MB / 442.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.4558, allocations: 0.7812 MB / 443.6 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.4561, allocations: 61.3 kB / 443.7 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.4562, allocations: 38.17 kB / 443.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4562, allocations: 0 / 443.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of Templates: time 0.01133/0.4675, allocations: 6.052 MB / 449.8 MB, free: 12.08 MB / 314.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)