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.0088/0.0088, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002103/0.002103, allocations: 196.7 kB / 16.67 MB, free: 5.52 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.481/1.481, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.001819/0.001819, allocations: 43.94 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1028, allocations: 46.62 MB / 373.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004182/0.1071, allocations: 2.73 MB / 375.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.1094, allocations: 1.124 MB / 377 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.1096, allocations: 8 kB / 377 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.1099, allocations: 71.36 kB / 377.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005784/0.1104, allocations: 198.8 kB / 377.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.1109, allocations: 239.6 kB / 377.5 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2186/0.3295, allocations: 0.6478 MB / 378.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.3298, allocations: 122.6 kB / 378.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004932/0.3303, allocations: 293.6 kB / 378.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004206/0.3307, allocations: 343.3 kB / 378.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.443e-05/0.3308, allocations: 51.12 kB / 378.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003431/0.3312, allocations: 147.5 kB / 379.1 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.3314, allocations: 148.5 kB / 379.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002935/0.3317, allocations: 242.7 kB / 379.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.3328, allocations: 0.6465 MB / 380.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3328, allocations: 4 kB / 380.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3328, allocations: 0 / 380.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.3329, allocations: 0.5312 kB / 380.1 MB, free: 9.594 MB / 318.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.001779/0.3346, allocations: 0.7911 MB / 380.9 MB, free: 9.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3347, allocations: 13.14 kB / 380.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003677/0.3351, allocations: 65.52 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000665/0.3357, allocations: 373.5 kB / 381.4 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.3359, allocations: 99.66 kB / 381.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.336, allocations: 43.56 kB / 381.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.3372, allocations: 0.5588 MB / 382.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.3372, allocations: 1.375 kB / 382.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/0.3373, allocations: 17.45 kB / 382.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.3373, allocations: 10.19 kB / 382.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.3387, allocations: 0.6404 MB / 382.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.3411, allocations: 1.285 MB / 384 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.3423, allocations: 0.5503 MB / 384.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/0.343, allocations: 320.1 kB / 384.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.401e-05/0.3431, allocations: 13.48 kB / 384.9 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3432, allocations: 45.33 kB / 384.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.134e-06/0.3432, allocations: 0 / 384.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.007487/0.3507, allocations: 2.862 MB / 387.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.3508, allocations: 86.27 kB / 387.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.3513, allocations: 332.1 kB / 388.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.892e-05/0.3514, allocations: 50.3 kB / 388.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3515, allocations: 164.1 kB / 388.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.3516, allocations: 227.9 kB / 388.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.3519, allocations: 124.7 kB / 388.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.672e-05/0.352, allocations: 348.8 kB / 389.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006439/0.3526, allocations: 286.8 kB / 389.4 MB, free: 5.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000741/0.3534, allocations: 353.8 kB / 389.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.3546, allocations: 0.521 MB / 390.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3546, allocations: 0.9375 kB / 390.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00196/0.3565, allocations: 0.8846 MB / 391.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3566, allocations: 6.078 kB / 391.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3566, allocations: 8.844 kB / 391.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.3578, allocations: 473.4 kB / 391.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.3582, allocations: 84.28 kB / 391.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.3595, allocations: 1.076 MB / 392.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.3601, allocations: 58.06 kB / 392.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.3601, allocations: 23.44 kB / 392.8 MB, free: 3.684 MB / 318.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.0002517/0.3604, allocations: 184.6 kB / 393 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3605, allocations: 44.06 kB / 393.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.3607, allocations: 67.97 kB / 393.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3607, allocations: 10.81 kB / 393.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.3607, allocations: 0.7031 kB / 393.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.3607, allocations: 2.859 kB / 393.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003628/0.3644, allocations: 1.757 MB / 394.9 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3644, allocations: 5.312 kB / 394.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.3647, allocations: 76.16 kB / 395 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.3658, allocations: 453 kB / 395.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/0.3659, allocations: 22.56 kB / 395.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.3672, allocations: 1.043 MB / 396.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3672, allocations: 1.188 kB / 396.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.3699, allocations: 1.308 MB / 397.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.3701, allocations: 179.3 kB / 398 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.3703, allocations: 19.66 kB / 398 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.3707, allocations: 52.86 kB / 398 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.3709, allocations: 83.98 kB / 398.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.3709, allocations: 29.28 kB / 398.2 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002712/0.3712, allocations: 245.5 kB / 398.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3712, allocations: 0 / 398.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.3718, allocations: 147 kB / 398.5 MB, free: 0.8398 MB / 318.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.000282/0.3721, allocations: 142.4 kB / 398.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.3737, allocations: 0.7194 MB / 399.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3737, allocations: 0 / 399.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008455/0.3746, allocations: 390.8 kB / 399.8 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.3751, allocations: 54.27 kB / 399.8 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.3776, allocations: 1.104 MB / 400.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.3781, allocations: 0.8198 MB / 401.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.3783, allocations: 58.17 kB / 401.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3785, allocations: 47.17 kB / 401.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3785, allocations: 0 / 401.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of Templates: time 0.01824/0.3967, allocations: 10.07 MB / 411.9 MB, free: 7.566 MB / 334.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)