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.0007818/0.0007818, 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.005823/0.005823, allocations: 170 kB / 16.26 MB, free: 6.613 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.45/1.45, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004608/0.000461, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2995, allocations: 47.58 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002856/0.3024, allocations: 2.108 MB / 329.1 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.3043, allocations: 0.9958 MB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.3045, allocations: 6.719 kB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.3047, allocations: 36.66 kB / 330.2 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004839/0.3052, allocations: 135.7 kB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.3055, allocations: 158.4 kB / 330.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00051/0.3061, allocations: 455.8 kB / 330.9 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.3063, allocations: 77.05 kB / 331 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.3066, allocations: 175.7 kB / 331.2 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000324/0.307, allocations: 233.9 kB / 331.4 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.307, allocations: 19.44 kB / 331.4 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.3073, allocations: 92.38 kB / 331.5 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.3074, allocations: 97.84 kB / 331.6 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.3077, allocations: 189.8 kB / 331.8 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005657/0.3082, allocations: 467.1 kB / 332.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3082, allocations: 5.031 kB / 332.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3083, allocations: 0 / 332.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3083, allocations: 0 / 332.2 MB, free: 13.59 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.001319/0.3096, allocations: 0.6163 MB / 332.8 MB, free: 13.05 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.3097, allocations: 9.688 kB / 332.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003466/0.31, allocations: 58.06 kB / 332.9 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.3105, allocations: 316.6 kB / 333.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.3107, allocations: 89.36 kB / 333.3 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.52e-05/0.3108, allocations: 28.88 kB / 333.3 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009906/0.3118, allocations: 423.9 kB / 333.8 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.3118, allocations: 9.422 kB / 333.8 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.511e-05/0.3118, allocations: 9.844 kB / 333.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3119, allocations: 7.938 kB / 333.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.313, allocations: 488.9 kB / 334.3 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.315, allocations: 0.989 MB / 335.2 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009261/0.3159, allocations: 413.1 kB / 335.6 MB, free: 10.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000516/0.3165, allocations: 246.1 kB / 335.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.3165, allocations: 4.438 kB / 335.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.3166, allocations: 39 kB / 335.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 2.305e-06/0.3166, allocations: 0 / 335.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005616/0.3222, allocations: 2.226 MB / 338.2 MB, free: 7.93 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.771e-05/0.3223, allocations: 89.59 kB / 338.2 MB, free: 7.824 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.3227, allocations: 259.1 kB / 338.5 MB, free: 7.562 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.3227, allocations: 41.69 kB / 338.5 MB, free: 7.516 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3229, allocations: 137.2 kB / 338.7 MB, free: 7.375 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.323, allocations: 189.3 kB / 338.9 MB, free: 7.188 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.097e-05/0.3231, allocations: 41.7 kB / 338.9 MB, free: 7.141 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3233, allocations: 342.8 kB / 339.2 MB, free: 6.797 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004773/0.3237, allocations: 201 kB / 339.4 MB, free: 6.602 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.3243, allocations: 256.6 kB / 339.7 MB, free: 6.34 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.3252, allocations: 400.4 kB / 340.1 MB, free: 5.945 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3252, allocations: 0 / 340.1 MB, free: 5.945 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001292/0.3265, allocations: 0.6329 MB / 340.7 MB, free: 5.301 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3265, allocations: 11.94 kB / 340.7 MB, free: 5.289 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3266, allocations: 0 / 340.7 MB, free: 5.289 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007905/0.3273, allocations: 257.9 kB / 341 MB, free: 5.035 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.3277, allocations: 71.88 kB / 341 MB, free: 4.965 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00392/0.3316, allocations: 2.702 MB / 343.7 MB, free: 2.133 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/0.332, allocations: 35.97 kB / 343.8 MB, free: 2.098 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/0.3321, allocations: 19.94 kB / 343.8 MB, free: 2.078 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.0002656/0.3323, allocations: 161.8 kB / 344 MB, free: 1.91 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-05/0.3324, allocations: 35.56 kB / 344 MB, free: 1.875 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.3326, allocations: 51.3 kB / 344 MB, free: 1.824 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.3326, allocations: 7.938 kB / 344 MB, free: 1.816 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3326, allocations: 0 / 344 MB, free: 1.816 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3326, allocations: 0 / 344 MB, free: 1.816 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.3348, allocations: 1.292 MB / 345.3 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3349, allocations: 3.938 kB / 345.3 MB, free: 468 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003279/0.3352, allocations: 67.94 kB / 345.4 MB, free: 400 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007005/0.3359, allocations: 236.7 kB / 345.6 MB, free: 160 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.3359, allocations: 12 kB / 345.6 MB, free: 148 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00365/0.3396, allocations: 2.612 MB / 348.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3396, allocations: 4.062 kB / 348.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.3415, allocations: 0.9767 MB / 349.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3417, allocations: 164.6 kB / 349.4 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.014e-05/0.3417, allocations: 12 kB / 349.4 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.3421, allocations: 44.03 kB / 349.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.3422, allocations: 64.33 kB / 349.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.3423, allocations: 19.92 kB / 349.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.3425, allocations: 200.6 kB / 349.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3425, allocations: 0 / 349.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006548/0.3432, allocations: 152 kB / 349.9 MB, free: 11.73 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.0002654/0.3435, allocations: 143.2 kB / 350 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.3449, allocations: 0.7112 MB / 350.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3449, allocations: 0 / 350.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.3458, allocations: 487.7 kB / 351.2 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.3462, allocations: 44.53 kB / 351.3 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.3478, allocations: 0.9722 MB / 352.2 MB, free: 9.328 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.3482, allocations: 0.7931 MB / 353 MB, free: 8.508 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.3484, allocations: 62.94 kB / 353.1 MB, free: 8.441 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.3486, allocations: 31.42 kB / 353.1 MB, free: 8.414 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3486, allocations: 0 / 353.1 MB, free: 8.414 MB / 286.1 MB Notification: Performance of Templates: time 0.01342/0.362, allocations: 7.157 MB / 360.3 MB, free: 1.25 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)