Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0007946/0.0007947, allocations: 86.67 kB / 16.31 MB, free: 6.449 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.000919/0.0009191, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.577/1.577, allocations: 205.4 MB / 223.4 MB, free: 5.289 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.0004916/0.0004922, allocations: 8 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3043, allocations: 47.59 MB / 327.7 MB, free: 1.449 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.0031/0.3074, allocations: 2.296 MB / 330 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.3098, allocations: 1.088 MB / 331.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.31, allocations: 8.688 kB / 331.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.3103, allocations: 58.42 kB / 331.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005814/0.3109, allocations: 154.7 kB / 331.3 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.3113, allocations: 194.5 kB / 331.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006636/0.312, allocations: 0.5565 MB / 332.1 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.3123, allocations: 97.8 kB / 332.2 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004163/0.3127, allocations: 253.7 kB / 332.4 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004136/0.3131, allocations: 295.1 kB / 332.7 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.678e-05/0.3132, allocations: 26.97 kB / 332.7 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.3135, allocations: 103.7 kB / 332.8 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.3137, allocations: 120.1 kB / 333 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3138, allocations: 101.8 kB / 333 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.3143, allocations: 458.2 kB / 333.5 MB, free: 13.24 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3143, allocations: 1.281 kB / 333.5 MB, free: 13.24 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3143, allocations: 0 / 333.5 MB, free: 13.24 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.3144, allocations: 0 / 333.5 MB, free: 13.24 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.001584/0.3159, allocations: 0.7316 MB / 334.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.316, allocations: 9.5 kB / 334.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003242/0.3163, allocations: 61.73 kB / 334.3 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.3169, allocations: 359.1 kB / 334.7 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.3171, allocations: 97.17 kB / 334.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3172, allocations: 49.81 kB / 334.8 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.3183, allocations: 0.5625 MB / 335.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.3183, allocations: 4 kB / 335.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.3184, allocations: 12 kB / 335.4 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.3184, allocations: 12 kB / 335.4 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.3197, allocations: 0.6519 MB / 336 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.3223, allocations: 1.318 MB / 337.4 MB, free: 9.664 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.3234, allocations: 0.5493 MB / 337.9 MB, free: 9.109 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.324, allocations: 326.3 kB / 338.2 MB, free: 8.789 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.233e-05/0.3241, allocations: 12.55 kB / 338.2 MB, free: 8.777 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.3241, allocations: 39.12 kB / 338.3 MB, free: 8.73 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 2.364e-06/0.3241, allocations: 7.938 kB / 338.3 MB, free: 8.723 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006974/0.3311, allocations: 2.954 MB / 341.2 MB, free: 5.645 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.3312, allocations: 89.61 kB / 341.3 MB, free: 5.539 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005201/0.3318, allocations: 323 kB / 341.6 MB, free: 5.211 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.422e-05/0.3318, allocations: 45.7 kB / 341.7 MB, free: 5.16 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.332, allocations: 165.5 kB / 341.8 MB, free: 4.996 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.3323, allocations: 228.8 kB / 342.1 MB, free: 4.77 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.3323, allocations: 12 kB / 342.1 MB, free: 4.758 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.3325, allocations: 354.8 kB / 342.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/0.3332, allocations: 289.2 kB / 342.7 MB, free: 4.121 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006846/0.3339, allocations: 358.5 kB / 343.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005958/0.3345, allocations: 271.2 kB / 343.3 MB, free: 3.496 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3345, allocations: 0 / 343.3 MB, free: 3.496 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001859/0.3364, allocations: 0.9123 MB / 344.2 MB, free: 2.574 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3364, allocations: 4 kB / 344.2 MB, free: 2.57 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3364, allocations: 4.031 kB / 344.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.3375, allocations: 473.9 kB / 344.7 MB, free: 2.102 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.3379, allocations: 87.88 kB / 344.8 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3392, allocations: 1.091 MB / 345.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005131/0.3398, allocations: 75.98 kB / 346 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.499e-05/0.3398, allocations: 27.98 kB / 346 MB, free: 0.7969 MB / 270.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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/0.3401, allocations: 169.8 kB / 346.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.3403, allocations: 39.53 kB / 346.2 MB, free: 0.582 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.3405, allocations: 63.83 kB / 346.2 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.3405, allocations: 15.95 kB / 346.3 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.3405, allocations: 0 / 346.3 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.3405, allocations: 7.984 kB / 346.3 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.344, allocations: 1.785 MB / 348.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.344, allocations: 0 / 348.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.3444, allocations: 79.89 kB / 348.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009228/0.3453, allocations: 452.5 kB / 348.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.425e-05/0.3454, allocations: 23.97 kB / 348.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.3467, allocations: 1.04 MB / 349.6 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3467, allocations: 0 / 349.6 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.3492, allocations: 1.321 MB / 351 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003279/0.3495, allocations: 176.5 kB / 351.1 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.3497, allocations: 20 kB / 351.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004652/0.3502, allocations: 68 kB / 351.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.3504, allocations: 100.4 kB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/0.3505, allocations: 27.98 kB / 351.3 MB, free: 11.28 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003288/0.3508, allocations: 241.9 kB / 351.6 MB, free: 11.04 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3508, allocations: 0 / 351.6 MB, free: 11.04 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000639/0.3514, allocations: 148 kB / 351.7 MB, free: 10.9 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 (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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003432/0.3518, allocations: 147.1 kB / 351.9 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.3534, allocations: 0.7197 MB / 352.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3534, allocations: 0 / 352.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008685/0.3543, allocations: 404.2 kB / 353 MB, free: 9.633 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006123/0.355, allocations: 56.77 kB / 353 MB, free: 9.574 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.3579, allocations: 1.354 MB / 354.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.3584, allocations: 0.8212 MB / 355.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.3587, allocations: 59.34 kB / 355.3 MB, free: 7.281 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.3589, allocations: 47.41 kB / 355.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3589, allocations: 0 / 355.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of Templates: time 0.01773/0.3766, allocations: 8.937 MB / 364.3 MB, free: 14.29 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)