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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.0009388, allocations: 92.61 kB / 16.32 MB, free: 6.457 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.0009783/0.0009783, allocations: 179.8 kB / 17.21 MB, free: 6.324 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.554/1.554, allocations: 205.4 MB / 223.4 MB, free: 5.5 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.0004515/0.0004518, allocations: 8 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2898, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002659/0.2925, allocations: 1.952 MB / 329.7 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.2944, allocations: 0.9114 MB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.2945, allocations: 3.844 kB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.2948, allocations: 31.23 kB / 330.6 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005522/0.2954, allocations: 116.8 kB / 330.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.2958, allocations: 134.7 kB / 330.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004888/0.2963, allocations: 365.6 kB / 331.2 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.2965, allocations: 58.09 kB / 331.3 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.2967, allocations: 158.7 kB / 331.4 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.2971, allocations: 194.2 kB / 331.6 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.755e-05/0.2971, allocations: 17.19 kB / 331.6 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.2974, allocations: 89.28 kB / 331.7 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.2975, allocations: 77.28 kB / 331.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.416e-05/0.2976, allocations: 74.17 kB / 331.9 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.298, allocations: 316.8 kB / 332.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.298, allocations: 0.9688 kB / 332.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.298, allocations: 0 / 332.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.298, allocations: 0 / 332.2 MB, free: 14.14 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001137/0.2992, allocations: 0.5851 MB / 332.8 MB, free: 13.63 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.2992, allocations: 8.594 kB / 332.8 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.2995, allocations: 51.03 kB / 332.8 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.3, allocations: 305.9 kB / 333.1 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.3002, allocations: 84.14 kB / 333.2 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.333e-05/0.3003, allocations: 29.09 kB / 333.2 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007635/0.301, allocations: 370.5 kB / 333.6 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.3011, allocations: 13.22 kB / 333.6 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.3011, allocations: 10.56 kB / 333.6 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.3011, allocations: 6.438 kB / 333.6 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009947/0.3021, allocations: 420.6 kB / 334 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.3044, allocations: 1.256 MB / 335.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.3051, allocations: 367 kB / 335.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.3055, allocations: 188.8 kB / 335.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.3056, allocations: 4 kB / 335.9 MB, free: 11.17 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/0.3056, allocations: 39.28 kB / 335.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 2.304e-06/0.3056, allocations: 0 / 335.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004683/0.3103, allocations: 1.964 MB / 337.9 MB, free: 9.043 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/0.3104, allocations: 84.86 kB / 337.9 MB, free: 8.941 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.3108, allocations: 238.2 kB / 338.2 MB, free: 8.695 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.3109, allocations: 37.64 kB / 338.2 MB, free: 8.652 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.311, allocations: 136.7 kB / 338.3 MB, free: 8.516 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3111, allocations: 145.8 kB / 338.5 MB, free: 8.371 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.3112, allocations: 12 kB / 338.5 MB, free: 8.359 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3113, allocations: 334.8 kB / 338.8 MB, free: 8.023 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.3117, allocations: 176.8 kB / 339 MB, free: 7.852 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/0.3122, allocations: 229.8 kB / 339.2 MB, free: 7.605 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003398/0.3125, allocations: 164.8 kB / 339.4 MB, free: 7.449 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3125, allocations: 0 / 339.4 MB, free: 7.449 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001099/0.3136, allocations: 0.563 MB / 339.9 MB, free: 6.875 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3137, allocations: 4 kB / 339.9 MB, free: 6.871 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3137, allocations: 4 kB / 339.9 MB, free: 6.867 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007246/0.3144, allocations: 244.7 kB / 340.2 MB, free: 6.625 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.3147, allocations: 59.91 kB / 340.2 MB, free: 6.566 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.3188, allocations: 2.644 MB / 342.9 MB, free: 3.789 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.3191, allocations: 31.97 kB / 342.9 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.3191, allocations: 16 kB / 342.9 MB, free: 3.742 MB / 270.1 MB 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 () * Number of clocked 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.0002211/0.3194, allocations: 161.8 kB / 343.1 MB, free: 3.574 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-05/0.3194, allocations: 23.72 kB / 343.1 MB, free: 3.551 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3195, allocations: 42.98 kB / 343.2 MB, free: 3.508 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3195, allocations: 4 kB / 343.2 MB, free: 3.504 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3196, allocations: 8 kB / 343.2 MB, free: 3.496 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3196, allocations: 3.953 kB / 343.2 MB, free: 3.492 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.3215, allocations: 1.096 MB / 344.3 MB, free: 2.336 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3215, allocations: 0 / 344.3 MB, free: 2.336 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.3217, allocations: 47.91 kB / 344.3 MB, free: 2.289 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006084/0.3223, allocations: 240.8 kB / 344.6 MB, free: 2.051 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.3224, allocations: 19.94 kB / 344.6 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.3257, allocations: 2.589 MB / 347.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3257, allocations: 7.875 kB / 347.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.3272, allocations: 0.8375 MB / 348 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3274, allocations: 136.8 kB / 348.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.3274, allocations: 12 kB / 348.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.3277, allocations: 27.97 kB / 348.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.3278, allocations: 63.94 kB / 348.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.3279, allocations: 23.98 kB / 348.3 MB, free: 14.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.3281, allocations: 177.5 kB / 348.4 MB, free: 14 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3281, allocations: 0 / 348.4 MB, free: 14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006598/0.3288, allocations: 140 kB / 348.6 MB, free: 13.86 MB / 286.1 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) * Number of clocked states: 0 () * 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.0002636/0.3291, allocations: 135.2 kB / 348.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.3304, allocations: 0.6251 MB / 349.3 MB, free: 13.08 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.3304, allocations: 4 kB / 349.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007247/0.3312, allocations: 433.6 kB / 349.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.3316, allocations: 35.94 kB / 349.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.3331, allocations: 0.8359 MB / 350.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.3335, allocations: 0.7764 MB / 351.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.3337, allocations: 54.95 kB / 351.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.3338, allocations: 23.42 kB / 351.5 MB, free: 10.86 MB / 286.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3338, allocations: 0 / 351.5 MB, free: 10.86 MB / 286.1 MB Notification: Performance of Templates: time 0.01274/0.3466, allocations: 6.376 MB / 357.9 MB, free: 4.48 MB / 286.1 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)