Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009014/0.0009013, 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.007692/0.007692, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.583/1.583, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0004908/0.0004908, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3259, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002743/0.3287, allocations: 2.025 MB / 329.1 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.3305, allocations: 0.9526 MB / 330 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.3307, allocations: 8 kB / 330 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.3309, allocations: 31.08 kB / 330 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004486/0.3314, allocations: 105.9 kB / 330.1 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.3317, allocations: 157.2 kB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.3322, allocations: 399 kB / 330.7 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.3324, allocations: 57.78 kB / 330.7 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.3327, allocations: 155.3 kB / 330.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.333, allocations: 209.7 kB / 331.1 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.895e-05/0.3331, allocations: 16.72 kB / 331.1 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.3333, allocations: 93.78 kB / 331.2 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.3335, allocations: 85.28 kB / 331.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3337, allocations: 175.9 kB / 331.5 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005199/0.3342, allocations: 415.5 kB / 331.9 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3343, allocations: 0.9688 kB / 331.9 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3343, allocations: 4 kB / 331.9 MB, free: 13.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.3343, allocations: 0 / 331.9 MB, free: 13.84 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001173/0.3355, allocations: 0.5829 MB / 332.5 MB, free: 13.32 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.3355, allocations: 9.062 kB / 332.5 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.336, allocations: 47.38 kB / 332.5 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.3365, allocations: 299.6 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.3366, allocations: 87.33 kB / 332.9 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.3367, allocations: 26.5 kB / 332.9 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007779/0.3375, allocations: 392 kB / 333.3 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3376, allocations: 5.938 kB / 333.3 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.3376, allocations: 10.16 kB / 333.3 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.3376, allocations: 6.781 kB / 333.3 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009778/0.3386, allocations: 430.3 kB / 333.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.3407, allocations: 1.247 MB / 335 MB, free: 11.21 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000742/0.3415, allocations: 362.5 kB / 335.3 MB, free: 10.84 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003839/0.3419, allocations: 192.8 kB / 335.5 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.3419, allocations: 12.14 kB / 335.5 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001051/0.342, allocations: 35.28 kB / 335.6 MB, free: 10.6 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 2.545e-06/0.342, allocations: 0 / 335.6 MB, free: 10.6 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.005735/0.3478, allocations: 1.972 MB / 337.6 MB, free: 8.512 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.3479, allocations: 84.86 kB / 337.6 MB, free: 8.41 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.3482, allocations: 242.3 kB / 337.9 MB, free: 8.16 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.3483, allocations: 33.7 kB / 337.9 MB, free: 8.121 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3484, allocations: 136.7 kB / 338 MB, free: 7.984 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.3485, allocations: 149.8 kB / 338.2 MB, free: 7.836 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.882e-05/0.3486, allocations: 45.69 kB / 338.2 MB, free: 7.785 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3488, allocations: 334.8 kB / 338.6 MB, free: 7.449 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004115/0.3492, allocations: 180.7 kB / 338.7 MB, free: 7.273 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.3496, allocations: 229.9 kB / 339 MB, free: 7.027 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007538/0.3504, allocations: 355.2 kB / 339.3 MB, free: 6.668 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3504, allocations: 0 / 339.3 MB, free: 6.668 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0012/0.3516, allocations: 0.5668 MB / 339.9 MB, free: 6.094 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3516, allocations: 4 kB / 339.9 MB, free: 6.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.3516, allocations: 0 / 339.9 MB, free: 6.09 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008252/0.3525, allocations: 256.8 kB / 340.1 MB, free: 5.836 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.3527, allocations: 55.89 kB / 340.2 MB, free: 5.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004004/0.3568, allocations: 2.66 MB / 342.8 MB, free: 2.988 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/0.3571, allocations: 35.97 kB / 342.9 MB, free: 2.953 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.3572, allocations: 12.06 kB / 342.9 MB, free: 2.941 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002534/0.3574, allocations: 161.8 kB / 343 MB, free: 2.773 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.3575, allocations: 35.5 kB / 343.1 MB, free: 2.738 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.3576, allocations: 39 kB / 343.1 MB, free: 2.699 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3576, allocations: 4 kB / 343.1 MB, free: 2.695 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3576, allocations: 0 / 343.1 MB, free: 2.695 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3577, allocations: 3.984 kB / 343.1 MB, free: 2.691 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.3596, allocations: 1.104 MB / 344.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3596, allocations: 4 kB / 344.2 MB, free: 1.523 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.3599, allocations: 43.91 kB / 344.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006937/0.3606, allocations: 244.8 kB / 344.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.3606, allocations: 15.98 kB / 344.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.3649, allocations: 2.593 MB / 347.1 MB, free: 14.49 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3649, allocations: 0 / 347.1 MB, free: 14.49 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.3667, allocations: 0.8413 MB / 348 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.3669, allocations: 140.8 kB / 348.1 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.3669, allocations: 8 kB / 348.1 MB, free: 13.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.3674, allocations: 32.05 kB / 348.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.3675, allocations: 59.89 kB / 348.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.3676, allocations: 15.98 kB / 348.2 MB, free: 13.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002328/0.3678, allocations: 181.5 kB / 348.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3678, allocations: 0 / 348.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006703/0.3685, allocations: 136 kB / 348.5 MB, free: 13.05 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0003111/0.3688, allocations: 135.2 kB / 348.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3702, allocations: 0.6369 MB / 349.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3702, allocations: 256 / 349.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007946/0.371, allocations: 437.3 kB / 349.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.3715, allocations: 36.09 kB / 349.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.3731, allocations: 0.8783 MB / 350.6 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007397/0.3739, allocations: 0.7725 MB / 351.4 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002018/0.3741, allocations: 54.95 kB / 351.5 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.471e-05/0.3742, allocations: 31.41 kB / 351.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3742, allocations: 0 / 351.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of Templates: time 0.01329/0.3875, allocations: 6.565 MB / 358.1 MB, free: 3.422 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)