Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.0008565/0.0008566, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005497/0.005497, allocations: 169.3 kB / 16.26 MB, free: 6.676 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.555/1.555, allocations: 205.4 MB / 222.5 MB, free: 5.797 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.000531/0.0005311, allocations: 8 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2941, allocations: 47.58 MB / 327 MB, free: 1.215 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002817/0.297, allocations: 2.402 MB / 329.4 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.2994, allocations: 1.116 MB / 330.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.2996, allocations: 4.344 kB / 330.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002845/0.2999, allocations: 54.86 kB / 330.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.3006, allocations: 159.2 kB / 330.8 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.3011, allocations: 214.5 kB / 331 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007635/0.3018, allocations: 0.6144 MB / 331.6 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.3021, allocations: 108.5 kB / 331.7 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.3026, allocations: 257.5 kB / 331.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.3031, allocations: 316 kB / 332.3 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.3032, allocations: 27.69 kB / 332.3 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.3035, allocations: 107.3 kB / 332.4 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.3037, allocations: 120.8 kB / 332.5 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003236/0.304, allocations: 256.2 kB / 332.8 MB, free: 13.04 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007577/0.3048, allocations: 0.5983 MB / 333.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.3048, allocations: 0 / 333.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.428e-06/0.3048, allocations: 0 / 333.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.3048, allocations: 1.562 kB / 333.4 MB, free: 12.6 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.002009/0.3069, allocations: 0.7279 MB / 334.1 MB, free: 12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.492e-05/0.307, allocations: 13.09 kB / 334.1 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005495/0.3075, allocations: 63.02 kB / 334.2 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007365/0.3083, allocations: 359.9 kB / 334.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.3085, allocations: 90.53 kB / 334.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3086, allocations: 53.38 kB / 334.6 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3099, allocations: 0.5665 MB / 335.2 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.31, allocations: 7.938 kB / 335.2 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/0.31, allocations: 16 kB / 335.2 MB, free: 10.94 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.3101, allocations: 12 kB / 335.2 MB, free: 10.93 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.3115, allocations: 0.648 MB / 335.9 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.3143, allocations: 1.314 MB / 337.2 MB, free: 8.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.3157, allocations: 0.5605 MB / 337.8 MB, free: 8.344 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007766/0.3165, allocations: 326.4 kB / 338.1 MB, free: 8.023 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-05/0.3166, allocations: 16.48 kB / 338.1 MB, free: 8.004 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.3166, allocations: 43.12 kB / 338.1 MB, free: 7.953 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 3.497e-06/0.3166, allocations: 0 / 338.1 MB, free: 7.953 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.007819/0.3245, allocations: 2.973 MB / 341.1 MB, free: 4.859 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/0.3246, allocations: 89.61 kB / 341.2 MB, free: 4.754 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/0.3252, allocations: 331 kB / 341.5 MB, free: 4.414 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/0.3253, allocations: 45.7 kB / 341.6 MB, free: 4.363 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.3255, allocations: 157.5 kB / 341.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.3257, allocations: 232.8 kB / 342 MB, free: 3.977 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3258, allocations: 57.69 kB / 342 MB, free: 3.914 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002649/0.3261, allocations: 346.8 kB / 342.4 MB, free: 3.566 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006905/0.3268, allocations: 301.2 kB / 342.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007294/0.3276, allocations: 362.5 kB / 343 MB, free: 2.906 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3288, allocations: 0.5382 MB / 343.5 MB, free: 2.363 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3288, allocations: 4.031 kB / 343.5 MB, free: 2.359 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00181/0.3306, allocations: 0.8929 MB / 344.4 MB, free: 1.457 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.3307, allocations: 11.94 kB / 344.4 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.3307, allocations: 3.938 kB / 344.5 MB, free: 1.441 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.3319, allocations: 481.5 kB / 344.9 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.3323, allocations: 83.88 kB / 345 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.3338, allocations: 1.079 MB / 346.1 MB, free: 15.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/0.3343, allocations: 80.03 kB / 346.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.3344, allocations: 23.98 kB / 346.2 MB, free: 15.68 MB / 286.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.0003154/0.3348, allocations: 181.6 kB / 346.4 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.682e-05/0.3349, allocations: 43.47 kB / 346.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/0.335, allocations: 67.77 kB / 346.5 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.3351, allocations: 12 kB / 346.5 MB, free: 15.37 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.3351, allocations: 0 / 346.5 MB, free: 15.37 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.3351, allocations: 3.984 kB / 346.5 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.3383, allocations: 1.781 MB / 348.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3383, allocations: 0 / 348.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.3387, allocations: 83.91 kB / 348.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000981/0.3397, allocations: 452.4 kB / 348.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.117e-05/0.3398, allocations: 15.98 kB / 348.8 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.3411, allocations: 1.044 MB / 349.8 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3411, allocations: 4.062 kB / 349.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.3438, allocations: 1.321 MB / 351.2 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.3441, allocations: 184.6 kB / 351.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.656e-05/0.3442, allocations: 20.06 kB / 351.4 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.3447, allocations: 67.94 kB / 351.4 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.3449, allocations: 88.36 kB / 351.5 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.485e-05/0.3449, allocations: 31.97 kB / 351.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003096/0.3453, allocations: 241.9 kB / 351.8 MB, free: 9.914 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3453, allocations: 0 / 351.8 MB, free: 9.914 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006061/0.3459, allocations: 148 kB / 351.9 MB, free: 9.77 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.0002965/0.3462, allocations: 151.1 kB / 352.1 MB, free: 9.613 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3478, allocations: 0.7236 MB / 352.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3479, allocations: 0 / 352.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008347/0.3487, allocations: 396.2 kB / 353.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.3492, allocations: 52.88 kB / 353.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.3524, allocations: 1.404 MB / 354.7 MB, free: 7.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3528, allocations: 0.8212 MB / 355.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.3531, allocations: 59.34 kB / 355.5 MB, free: 6.105 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3533, allocations: 43.34 kB / 355.6 MB, free: 6.062 MB / 286.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3533, allocations: 3.938 kB / 355.6 MB, free: 6.059 MB / 286.1 MB Notification: Performance of Templates: time 0.0176/0.3709, allocations: 9.214 MB / 364.8 MB, free: 12.84 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)