Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001504/0.001503, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002098/0.002098, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.605/1.605, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.001447/0.001447, allocations: 43.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3485, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005625/0.3542, allocations: 2.761 MB / 327.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.3572, allocations: 1.119 MB / 328.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002593/0.3574, allocations: 9.094 kB / 328.7 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.3578, allocations: 55.23 kB / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007475/0.3586, allocations: 169.8 kB / 329 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005206/0.3591, allocations: 221.9 kB / 329.2 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009259/0.3601, allocations: 0.6418 MB / 329.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003147/0.3604, allocations: 121.7 kB / 329.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004721/0.3609, allocations: 294.8 kB / 330.2 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004947/0.3614, allocations: 344.2 kB / 330.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.3615, allocations: 51.16 kB / 330.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002825/0.3618, allocations: 133 kB / 330.7 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.362, allocations: 148.2 kB / 330.9 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.3623, allocations: 256.6 kB / 331.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007254/0.363, allocations: 0.6356 MB / 331.8 MB, free: 12.89 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.363, allocations: 1.094 kB / 331.8 MB, free: 12.89 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.363, allocations: 0 / 331.8 MB, free: 12.89 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.363, allocations: 3.938 kB / 331.8 MB, free: 12.89 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.001681/0.3647, allocations: 0.7885 MB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3648, allocations: 14.11 kB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003777/0.3652, allocations: 66.12 kB / 332.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005864/0.3658, allocations: 357.9 kB / 333 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/0.3659, allocations: 104.9 kB / 333.1 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.74e-05/0.366, allocations: 48.28 kB / 333.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.3672, allocations: 0.5567 MB / 333.7 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.3673, allocations: 4 kB / 333.7 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.858e-05/0.3673, allocations: 15.98 kB / 333.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3674, allocations: 12 kB / 333.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.3689, allocations: 0.6402 MB / 334.4 MB, free: 10.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.3715, allocations: 1.283 MB / 335.7 MB, free: 9.102 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.3727, allocations: 0.5411 MB / 336.2 MB, free: 8.555 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007749/0.3735, allocations: 326.5 kB / 336.5 MB, free: 8.234 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.664e-05/0.3735, allocations: 8.5 kB / 336.5 MB, free: 8.227 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3736, allocations: 43.12 kB / 336.6 MB, free: 8.172 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 2.014e-06/0.3736, allocations: 0 / 336.6 MB, free: 8.172 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.007241/0.3808, allocations: 2.867 MB / 339.4 MB, free: 5.184 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.381, allocations: 85.61 kB / 339.5 MB, free: 5.082 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004918/0.3815, allocations: 342.8 kB / 339.8 MB, free: 4.73 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.957e-05/0.3815, allocations: 37.7 kB / 339.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3817, allocations: 161.6 kB / 340 MB, free: 4.527 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.3819, allocations: 224.8 kB / 340.3 MB, free: 4.305 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.3822, allocations: 118.3 kB / 340.4 MB, free: 4.184 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0003218/0.3825, allocations: 354.8 kB / 340.7 MB, free: 3.828 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006039/0.3831, allocations: 293.1 kB / 341 MB, free: 3.543 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.3838, allocations: 350.5 kB / 341.4 MB, free: 3.188 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.385, allocations: 0.5304 MB / 341.9 MB, free: 2.652 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.385, allocations: 0 / 341.9 MB, free: 2.652 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001666/0.3867, allocations: 0.8811 MB / 342.8 MB, free: 1.762 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.3867, allocations: 7.938 kB / 342.8 MB, free: 1.754 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3867, allocations: 8.031 kB / 342.8 MB, free: 1.746 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.3879, allocations: 473.6 kB / 343.2 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.3883, allocations: 83.88 kB / 343.3 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.3897, allocations: 1.079 MB / 344.4 MB, free: 96 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004396/0.3901, allocations: 55.94 kB / 344.5 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.3902, allocations: 23.98 kB / 344.5 MB, free: 16 kB / 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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.3905, allocations: 189.8 kB / 344.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.374e-05/0.3906, allocations: 39.53 kB / 344.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.3907, allocations: 63.77 kB / 344.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3907, allocations: 8 kB / 344.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3908, allocations: 0 / 344.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3908, allocations: 3.984 kB / 344.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.3944, allocations: 1.766 MB / 346.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3944, allocations: 0 / 346.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.3947, allocations: 75.88 kB / 346.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.3958, allocations: 456.5 kB / 347.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.395e-05/0.3958, allocations: 19.98 kB / 347.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.3973, allocations: 1.044 MB / 348.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.3973, allocations: 12.05 kB / 348.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3998, allocations: 1.297 MB / 349.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/0.4001, allocations: 180.6 kB / 349.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.4002, allocations: 20 kB / 349.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.4006, allocations: 51.88 kB / 349.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.4009, allocations: 88.42 kB / 349.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.4009, allocations: 24.05 kB / 349.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002974/0.4012, allocations: 249.9 kB / 350 MB, free: 10.3 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4012, allocations: 0 / 350 MB, free: 10.3 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005627/0.4018, allocations: 140 kB / 350.2 MB, free: 10.17 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002901/0.4021, allocations: 147.1 kB / 350.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.4039, allocations: 0.747 MB / 351.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4039, allocations: 0 / 351.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009372/0.4049, allocations: 392 kB / 351.4 MB, free: 8.883 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.4054, allocations: 60.75 kB / 351.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.4083, allocations: 1.28 MB / 352.8 MB, free: 7.516 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.4088, allocations: 0.8251 MB / 353.6 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.409, allocations: 59.34 kB / 353.7 MB, free: 6.605 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.4091, allocations: 47.41 kB / 353.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4091, allocations: 0 / 353.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of Templates: time 0.01652/0.4257, allocations: 9.869 MB / 363.6 MB, free: 12.68 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)