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.0009/0.0009001, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0009026/0.0009027, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.0004726/0.0004729, allocations: 18.81 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2607, allocations: 47.59 MB / 326.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002573/0.2634, allocations: 2.3 MB / 328.8 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.2652, allocations: 1.072 MB / 329.8 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.2654, allocations: 8.094 kB / 329.9 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.2656, allocations: 53.98 kB / 329.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.2661, allocations: 158.6 kB / 330.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.2665, allocations: 191.1 kB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000602/0.2671, allocations: 0.5563 MB / 330.8 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.2673, allocations: 97.95 kB / 330.9 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.2677, allocations: 250.2 kB / 331.1 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.2681, allocations: 310.2 kB / 331.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-05/0.2682, allocations: 30.97 kB / 331.5 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.2684, allocations: 99.66 kB / 331.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.2686, allocations: 116.2 kB / 331.7 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.585e-05/0.2687, allocations: 98.7 kB / 331.8 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004718/0.2692, allocations: 465.6 kB / 332.2 MB, free: 13.22 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2692, allocations: 1.156 kB / 332.2 MB, free: 13.22 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2692, allocations: 0 / 332.2 MB, free: 13.22 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2692, allocations: 0 / 332.2 MB, free: 13.22 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.001408/0.2706, allocations: 0.7281 MB / 333 MB, free: 12.62 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2706, allocations: 9.188 kB / 333 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.271, allocations: 66.61 kB / 333 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.2715, allocations: 355.1 kB / 333.4 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.2717, allocations: 101.6 kB / 333.5 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.345e-05/0.2718, allocations: 45.3 kB / 333.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.2729, allocations: 0.5584 MB / 334.1 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.273, allocations: 0 / 334.1 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.273, allocations: 16 kB / 334.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2731, allocations: 19.94 kB / 334.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.2744, allocations: 0.648 MB / 334.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/0.2768, allocations: 1.318 MB / 336.1 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.2779, allocations: 0.5529 MB / 336.6 MB, free: 9.109 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00061/0.2786, allocations: 322.4 kB / 337 MB, free: 8.793 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.2786, allocations: 12.55 kB / 337 MB, free: 8.781 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.2786, allocations: 39.12 kB / 337 MB, free: 8.734 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 1.864e-06/0.2787, allocations: 0 / 337 MB, free: 8.734 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006686/0.2853, allocations: 2.962 MB / 340 MB, free: 5.648 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.2854, allocations: 81.67 kB / 340.1 MB, free: 5.551 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/0.2858, allocations: 327 kB / 340.4 MB, free: 5.219 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.2859, allocations: 45.7 kB / 340.4 MB, free: 5.168 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.286, allocations: 161.5 kB / 340.6 MB, free: 5.008 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.2862, allocations: 236.7 kB / 340.8 MB, free: 4.773 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.2863, allocations: 12 kB / 340.8 MB, free: 4.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2864, allocations: 350.8 kB / 341.2 MB, free: 4.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005928/0.287, allocations: 293.2 kB / 341.4 MB, free: 4.125 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006448/0.2877, allocations: 354.5 kB / 341.8 MB, free: 3.766 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.2883, allocations: 275.1 kB / 342.1 MB, free: 3.5 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2883, allocations: 0 / 342.1 MB, free: 3.5 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001751/0.29, allocations: 0.9162 MB / 343 MB, free: 2.574 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2901, allocations: 8 kB / 343 MB, free: 2.566 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2901, allocations: 0 / 343 MB, free: 2.566 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.2911, allocations: 477.8 kB / 343.5 MB, free: 2.098 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.2915, allocations: 83.89 kB / 343.5 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.2928, allocations: 1.091 MB / 344.6 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.2932, allocations: 76.03 kB / 344.7 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.2933, allocations: 23.98 kB / 344.7 MB, free: 0.8008 MB / 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002324/0.2935, allocations: 181.7 kB / 344.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-05/0.2936, allocations: 39.53 kB / 344.9 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.2938, allocations: 63.77 kB / 345 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.2938, allocations: 15.95 kB / 345 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.2938, allocations: 0 / 345 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.2938, allocations: 3.984 kB / 345 MB, free: 500 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.2969, allocations: 1.777 MB / 346.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2969, allocations: 0 / 346.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003459/0.2973, allocations: 87.91 kB / 346.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008912/0.2982, allocations: 444.4 kB / 347.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.2982, allocations: 23.98 kB / 347.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.2994, allocations: 1.044 MB / 348.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.2994, allocations: 0 / 348.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3018, allocations: 1.313 MB / 349.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.3021, allocations: 180.6 kB / 349.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.72e-05/0.3022, allocations: 24.06 kB / 349.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/0.3026, allocations: 67.94 kB / 350 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.3028, allocations: 100.4 kB / 350.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/0.3028, allocations: 23.98 kB / 350.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.3031, allocations: 241.9 kB / 350.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3031, allocations: 0 / 350.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.3037, allocations: 148 kB / 350.5 MB, free: 10.9 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 (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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002403/0.3039, allocations: 147.2 kB / 350.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.3053, allocations: 0.7197 MB / 351.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3054, allocations: 0 / 351.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007904/0.3062, allocations: 400.1 kB / 351.7 MB, free: 9.641 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.3067, allocations: 52.83 kB / 351.8 MB, free: 9.586 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.3097, allocations: 1.365 MB / 353.1 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.3103, allocations: 0.8173 MB / 354 MB, free: 7.344 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.3105, allocations: 59.34 kB / 354 MB, free: 7.285 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.3107, allocations: 43.41 kB / 354.1 MB, free: 7.242 MB / 286.1 MB Notification: Performance of SimCode: time 1.644e-06/0.3107, allocations: 0 / 354.1 MB, free: 7.242 MB / 286.1 MB Notification: Performance of Templates: time 0.01704/0.3278, allocations: 8.945 MB / 363 MB, free: 14.29 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)