Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001124/0.001125, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009816/0.009816, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.526/1.526, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.0005595/0.0005601, allocations: 8 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.288, allocations: 47.58 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002656/0.2908, allocations: 2.395 MB / 329.4 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.293, allocations: 1.123 MB / 330.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.2931, allocations: 5.75 kB / 330.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002338/0.2934, allocations: 57.95 kB / 330.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005504/0.2939, allocations: 154.8 kB / 330.8 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.2944, allocations: 218.6 kB / 331 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006193/0.2951, allocations: 0.6105 MB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.2953, allocations: 108.3 kB / 331.7 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.2956, allocations: 258.2 kB / 331.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.2961, allocations: 320.3 kB / 332.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.73e-05/0.2961, allocations: 26.56 kB / 332.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.2964, allocations: 108.2 kB / 332.4 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.2966, allocations: 116.4 kB / 332.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.2968, allocations: 252 kB / 332.7 MB, free: 13.22 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006189/0.2974, allocations: 0.6019 MB / 333.3 MB, free: 12.78 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2974, allocations: 1.062 kB / 333.3 MB, free: 12.78 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2975, allocations: 0 / 333.3 MB, free: 12.78 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.2975, allocations: 0 / 333.3 MB, free: 12.78 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.001525/0.299, allocations: 0.7209 MB / 334.1 MB, free: 12.19 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2991, allocations: 16.97 kB / 334.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003608/0.2994, allocations: 63.86 kB / 334.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005534/0.3, allocations: 362.5 kB / 334.5 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.3001, allocations: 101 kB / 334.6 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.3002, allocations: 44.27 kB / 334.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.3013, allocations: 0.5684 MB / 335.2 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.3014, allocations: 4 kB / 335.2 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.798e-05/0.3014, allocations: 16 kB / 335.2 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3015, allocations: 12 kB / 335.2 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.3028, allocations: 0.6518 MB / 335.9 MB, free: 10.4 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.3053, allocations: 1.31 MB / 337.2 MB, free: 9.035 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.3065, allocations: 0.5644 MB / 337.8 MB, free: 8.465 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006955/0.3072, allocations: 330.4 kB / 338.1 MB, free: 8.141 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-05/0.3073, allocations: 12.48 kB / 338.1 MB, free: 8.125 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.3073, allocations: 43.12 kB / 338.1 MB, free: 8.074 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 2.114e-06/0.3074, allocations: 0 / 338.1 MB, free: 8.074 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.007161/0.3145, allocations: 2.981 MB / 341.1 MB, free: 4.973 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.549e-05/0.3146, allocations: 85.61 kB / 341.2 MB, free: 4.871 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.3151, allocations: 331 kB / 341.5 MB, free: 4.531 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.829e-05/0.3152, allocations: 41.7 kB / 341.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.3154, allocations: 161.5 kB / 341.7 MB, free: 4.324 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.3156, allocations: 228.8 kB / 342 MB, free: 4.098 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.3157, allocations: 57.69 kB / 342 MB, free: 4.035 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3158, allocations: 350.8 kB / 342.4 MB, free: 3.684 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.3165, allocations: 297.2 kB / 342.6 MB, free: 3.395 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/0.3171, allocations: 362.5 kB / 343 MB, free: 3.027 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3182, allocations: 0.5421 MB / 343.5 MB, free: 2.48 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3182, allocations: 0 / 343.5 MB, free: 2.48 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001786/0.32, allocations: 0.8968 MB / 344.4 MB, free: 1.574 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3201, allocations: 7.938 kB / 344.4 MB, free: 1.566 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.3201, allocations: 0 / 344.4 MB, free: 1.566 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3212, allocations: 477.5 kB / 344.9 MB, free: 1.098 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.3216, allocations: 83.89 kB / 345 MB, free: 1.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.3228, allocations: 1.087 MB / 346.1 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005177/0.3233, allocations: 76 kB / 346.2 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.498e-05/0.3234, allocations: 27.98 kB / 346.2 MB, free: 15.8 MB / 286.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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002421/0.3237, allocations: 173.7 kB / 346.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.874e-05/0.3238, allocations: 43.47 kB / 346.4 MB, free: 15.58 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.3239, allocations: 71.77 kB / 346.5 MB, free: 15.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.3239, allocations: 11.94 kB / 346.5 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.324, allocations: 3.938 kB / 346.5 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.324, allocations: 3.984 kB / 346.5 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.3271, allocations: 1.777 MB / 348.3 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3272, allocations: 0 / 348.3 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.3275, allocations: 87.91 kB / 348.3 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009656/0.3285, allocations: 448.4 kB / 348.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.3286, allocations: 19.98 kB / 348.8 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.3299, allocations: 1.048 MB / 349.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3299, allocations: 4.031 kB / 349.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002528/0.3324, allocations: 1.325 MB / 351.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.3327, allocations: 180.6 kB / 351.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.3328, allocations: 16 kB / 351.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004718/0.3333, allocations: 76.06 kB / 351.4 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.3335, allocations: 88.36 kB / 351.5 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-05/0.3335, allocations: 23.97 kB / 351.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002987/0.3338, allocations: 245.9 kB / 351.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3338, allocations: 4 kB / 351.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005491/0.3344, allocations: 140 kB / 351.9 MB, free: 9.891 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 (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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002906/0.3347, allocations: 151.1 kB / 352.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.3363, allocations: 0.7236 MB / 352.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3363, allocations: 4.062 kB / 352.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008249/0.3371, allocations: 400.1 kB / 353.2 MB, free: 8.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.3377, allocations: 44.88 kB / 353.2 MB, free: 8.566 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.3404, allocations: 1.404 MB / 354.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3407, allocations: 0.8173 MB / 355.5 MB, free: 6.289 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002325/0.341, allocations: 63.34 kB / 355.5 MB, free: 6.227 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3411, allocations: 43.41 kB / 355.6 MB, free: 6.184 MB / 286.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3411, allocations: 3.938 kB / 355.6 MB, free: 6.18 MB / 286.1 MB Notification: Performance of Templates: time 0.01533/0.3565, allocations: 9.21 MB / 364.8 MB, free: 12.96 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)