Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009852/0.0009856, allocations: 87.56 kB / 16.31 MB, free: 5.684 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.0009847/0.0009847, allocations: 179.2 kB / 17.21 MB, free: 5.602 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.403/1.403, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0004421/0.0004423, allocations: 8 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.265, allocations: 47.58 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002742/0.2678, allocations: 2.035 MB / 329.8 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.2695, allocations: 0.9552 MB / 330.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.2696, allocations: 10.75 kB / 330.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2698, allocations: 32.02 kB / 330.8 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004432/0.2703, allocations: 131.9 kB / 330.9 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.2706, allocations: 149.6 kB / 331 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.2711, allocations: 421.4 kB / 331.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.2713, allocations: 63.89 kB / 331.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.2717, allocations: 192.3 kB / 331.7 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003059/0.272, allocations: 209.2 kB / 331.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.049e-05/0.272, allocations: 19.97 kB / 331.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.2722, allocations: 91.72 kB / 332 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.2724, allocations: 89.7 kB / 332.1 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.401e-05/0.2725, allocations: 82.33 kB / 332.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003801/0.2729, allocations: 353.4 kB / 332.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2729, allocations: 0 / 332.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2729, allocations: 0.9375 kB / 332.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2729, allocations: 0 / 332.5 MB, free: 13.9 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001126/0.2741, allocations: 0.6229 MB / 333.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2741, allocations: 9.562 kB / 333.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002944/0.2744, allocations: 52.42 kB / 333.2 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.2749, allocations: 312.2 kB / 333.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.275, allocations: 88.89 kB / 333.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.557e-05/0.2751, allocations: 32.09 kB / 333.6 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007916/0.2759, allocations: 421.1 kB / 334 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.2759, allocations: 0.8125 kB / 334 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/0.2759, allocations: 15.06 kB / 334 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.276, allocations: 7.219 kB / 334.1 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.277, allocations: 488.4 kB / 334.5 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.2787, allocations: 0.9871 MB / 335.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008223/0.2795, allocations: 417.3 kB / 335.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004523/0.28, allocations: 234.1 kB / 336.2 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.28, allocations: 8.438 kB / 336.2 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2801, allocations: 39 kB / 336.2 MB, free: 10.84 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.843e-06/0.2801, allocations: 0 / 336.2 MB, free: 10.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.004939/0.285, allocations: 2.214 MB / 338.4 MB, free: 8.512 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.2851, allocations: 81.67 kB / 338.5 MB, free: 8.414 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.2854, allocations: 263.1 kB / 338.8 MB, free: 8.148 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.2855, allocations: 33.7 kB / 338.8 MB, free: 8.109 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2856, allocations: 145 kB / 338.9 MB, free: 7.961 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.2857, allocations: 185.3 kB / 339.1 MB, free: 7.777 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.2858, allocations: 12 kB / 339.1 MB, free: 7.766 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2859, allocations: 342.8 kB / 339.5 MB, free: 7.422 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.2864, allocations: 197 kB / 339.6 MB, free: 7.23 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.2868, allocations: 256.6 kB / 339.9 MB, free: 6.969 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.2873, allocations: 194.2 kB / 340.1 MB, free: 6.781 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2873, allocations: 0 / 340.1 MB, free: 6.781 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001192/0.2885, allocations: 0.629 MB / 340.7 MB, free: 6.145 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2885, allocations: 7.953 kB / 340.7 MB, free: 6.137 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2885, allocations: 0 / 340.7 MB, free: 6.137 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007259/0.2892, allocations: 258.1 kB / 341 MB, free: 5.883 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.2895, allocations: 67.89 kB / 341 MB, free: 5.816 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.2933, allocations: 2.687 MB / 343.7 MB, free: 2.996 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.2936, allocations: 35.97 kB / 343.8 MB, free: 2.961 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.2936, allocations: 12 kB / 343.8 MB, free: 2.949 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001976/0.2938, allocations: 169.8 kB / 343.9 MB, free: 2.773 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.836e-05/0.2939, allocations: 31.62 kB / 344 MB, free: 2.742 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.294, allocations: 47.31 kB / 344 MB, free: 2.695 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.294, allocations: 4 kB / 344 MB, free: 2.691 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2941, allocations: 4 kB / 344 MB, free: 2.688 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2941, allocations: 3.984 kB / 344 MB, free: 2.684 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.2961, allocations: 1.276 MB / 345.3 MB, free: 1.344 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2962, allocations: 8.031 kB / 345.3 MB, free: 1.336 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.2965, allocations: 67.89 kB / 345.4 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006108/0.2971, allocations: 240.6 kB / 345.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.2972, allocations: 19.94 kB / 345.6 MB, free: 1.012 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003481/0.3006, allocations: 2.6 MB / 348.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3007, allocations: 3.938 kB / 348.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.3024, allocations: 0.9767 MB / 349.2 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.3027, allocations: 156.7 kB / 349.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.78e-05/0.3027, allocations: 12 kB / 349.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.303, allocations: 36.03 kB / 349.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.3032, allocations: 76.3 kB / 349.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.3032, allocations: 15.98 kB / 349.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.3035, allocations: 200.6 kB / 349.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3035, allocations: 0 / 349.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007069/0.3042, allocations: 152 kB / 349.8 MB, free: 12.62 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: 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 (31): * Single equations (assignments): 30 * 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.0002838/0.3045, allocations: 143.2 kB / 350 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.306, allocations: 0.7189 MB / 350.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.306, allocations: 0 / 350.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007922/0.3068, allocations: 483.7 kB / 351.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.3072, allocations: 40.38 kB / 351.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.3087, allocations: 0.9488 MB / 352.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.3091, allocations: 0.797 MB / 353 MB, free: 9.418 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.3094, allocations: 62.94 kB / 353 MB, free: 9.352 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/0.3095, allocations: 27.42 kB / 353.1 MB, free: 9.324 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3095, allocations: 0 / 353.1 MB, free: 9.324 MB / 286.1 MB Notification: Performance of Templates: time 0.01192/0.3214, allocations: 6.95 MB / 360 MB, free: 2.367 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)