Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001169/0.001169, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001244/0.001245, allocations: 194 kB / 16.25 MB, free: 6.625 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.524/1.524, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001421/0.001421, allocations: 47.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2724, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004045/0.2765, allocations: 2.471 MB / 327.3 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.2788, allocations: 1.002 MB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.2791, allocations: 3.5 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00029/0.2794, allocations: 40.89 kB / 328.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007407/0.2802, allocations: 138.4 kB / 328.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.2806, allocations: 161.9 kB / 328.7 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006005/0.2813, allocations: 471.4 kB / 329.1 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.2815, allocations: 88.89 kB / 329.2 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.2819, allocations: 214.5 kB / 329.4 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000402/0.2823, allocations: 244.4 kB / 329.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.089e-05/0.2824, allocations: 37.47 kB / 329.7 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002926/0.2827, allocations: 114.9 kB / 329.8 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.2829, allocations: 109.5 kB / 329.9 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.2831, allocations: 184.3 kB / 330.1 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000674/0.2838, allocations: 497.4 kB / 330.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2838, allocations: 0 / 330.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2838, allocations: 0 / 330.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.2839, allocations: 1.438 kB / 330.6 MB, free: 13.74 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.001668/0.2855, allocations: 0.6752 MB / 331.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.268e-05/0.2856, allocations: 8.938 kB / 331.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004223/0.286, allocations: 49.89 kB / 331.3 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005924/0.2866, allocations: 317.6 kB / 331.6 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.2868, allocations: 89.61 kB / 331.7 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.2869, allocations: 36.86 kB / 331.7 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009571/0.2879, allocations: 416.8 kB / 332.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.2879, allocations: 5.062 kB / 332.1 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.288, allocations: 18.53 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.288, allocations: 6.719 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.2892, allocations: 470.2 kB / 332.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.291, allocations: 0.9774 MB / 333.6 MB, free: 11.15 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007917/0.2918, allocations: 401.2 kB / 334 MB, free: 10.75 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.2923, allocations: 238 kB / 334.2 MB, free: 10.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.394e-05/0.2924, allocations: 8.438 kB / 334.2 MB, free: 10.51 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.2924, allocations: 43.12 kB / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/0.2924, allocations: 0 / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005119/0.2976, allocations: 2.164 MB / 336.4 MB, free: 8.184 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.2977, allocations: 85.67 kB / 336.5 MB, free: 8.082 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.298, allocations: 255.1 kB / 336.8 MB, free: 7.824 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.298, allocations: 37.7 kB / 336.8 MB, free: 7.781 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.2981, allocations: 145.1 kB / 337 MB, free: 7.633 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.2983, allocations: 181.4 kB / 337.1 MB, free: 7.453 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.2985, allocations: 94.14 kB / 337.2 MB, free: 7.355 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2986, allocations: 338.8 kB / 337.6 MB, free: 7.016 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/0.299, allocations: 197 kB / 337.8 MB, free: 6.82 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.2995, allocations: 244.6 kB / 338 MB, free: 6.574 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.3003, allocations: 396.3 kB / 338.4 MB, free: 6.184 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3003, allocations: 3.938 kB / 338.4 MB, free: 6.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001187/0.3015, allocations: 0.6096 MB / 339 MB, free: 5.559 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3015, allocations: 7.938 kB / 339 MB, free: 5.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3015, allocations: 7.984 kB / 339 MB, free: 5.543 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007312/0.3022, allocations: 253.8 kB / 339.3 MB, free: 5.293 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.3026, allocations: 67.89 kB / 339.3 MB, free: 5.227 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003831/0.3064, allocations: 2.928 MB / 342.2 MB, free: 2.164 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/0.3067, allocations: 27.97 kB / 342.3 MB, free: 2.137 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.3068, allocations: 19.98 kB / 342.3 MB, free: 2.117 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.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.307, allocations: 157.8 kB / 342.4 MB, free: 1.953 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.587e-05/0.3071, allocations: 35.56 kB / 342.5 MB, free: 1.918 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.3072, allocations: 51.3 kB / 342.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.3072, allocations: 12 kB / 342.5 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3072, allocations: 0 / 342.5 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3073, allocations: 3.984 kB / 342.5 MB, free: 1.852 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.3093, allocations: 1.264 MB / 343.8 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3093, allocations: 0 / 343.8 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.3097, allocations: 63.89 kB / 343.9 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006175/0.3103, allocations: 244.7 kB / 344.1 MB, free: 224 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.3103, allocations: 15.98 kB / 344.1 MB, free: 208 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003591/0.3139, allocations: 2.849 MB / 347 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.314, allocations: 0 / 347 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.3157, allocations: 0.9572 MB / 347.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.3158, allocations: 148.7 kB / 348.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.3159, allocations: 15.94 kB / 348.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.3162, allocations: 31.97 kB / 348.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.3164, allocations: 64.33 kB / 348.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.3165, allocations: 19.98 kB / 348.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.3167, allocations: 196.6 kB / 348.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3167, allocations: 0 / 348.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.3173, allocations: 156.1 kB / 348.6 MB, free: 11.59 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 (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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002519/0.3176, allocations: 143.2 kB / 348.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.3191, allocations: 0.7307 MB / 349.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3191, allocations: 0 / 349.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.3199, allocations: 483.6 kB / 349.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.3204, allocations: 36.38 kB / 349.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.3219, allocations: 0.9347 MB / 350.9 MB, free: 9.227 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.3222, allocations: 0.7929 MB / 351.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.3225, allocations: 62.94 kB / 351.7 MB, free: 8.336 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.729e-05/0.3226, allocations: 39.42 kB / 351.8 MB, free: 8.297 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3226, allocations: 0 / 351.8 MB, free: 8.297 MB / 286.1 MB Notification: Performance of Templates: time 0.01327/0.3359, allocations: 7.696 MB / 359.5 MB, free: 0.5938 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)