Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00121/0.00121, allocations: 95.23 kB / 16.3 MB, free: 5.996 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.001245/0.001245, allocations: 184 kB / 17.2 MB, free: 5.914 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.606/1.606, allocations: 205.4 MB / 223.4 MB, free: 5.754 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.0005389/0.000539, allocations: 10.81 kB / 280.1 MB, free: 13.08 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3356, allocations: 47.58 MB / 327.7 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003046/0.3387, allocations: 1.949 MB / 329.6 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.3416, allocations: 0.9699 MB / 330.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004632/0.3421, allocations: 6.969 kB / 330.6 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.3424, allocations: 31.89 kB / 330.6 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008982/0.3433, allocations: 143.7 kB / 330.8 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.3438, allocations: 153.4 kB / 330.9 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000769/0.3446, allocations: 288.5 kB / 331.2 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.3449, allocations: 67.02 kB / 331.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005476/0.3454, allocations: 191.4 kB / 331.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005059/0.3459, allocations: 208.7 kB / 331.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.3461, allocations: 19.66 kB / 331.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.3464, allocations: 88.66 kB / 331.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.3466, allocations: 82.58 kB / 331.9 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001621/0.3468, allocations: 80.95 kB / 331.9 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006385/0.3474, allocations: 361.2 kB / 332.3 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.3474, allocations: 1.281 kB / 332.3 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3474, allocations: 0 / 332.3 MB, free: 14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3475, allocations: 4 kB / 332.3 MB, free: 14 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.00158/0.3491, allocations: 0.6113 MB / 332.9 MB, free: 13.47 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.3491, allocations: 9.094 kB / 332.9 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004072/0.3495, allocations: 57.22 kB / 333 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006787/0.3502, allocations: 307.9 kB / 333.3 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.3504, allocations: 92.33 kB / 333.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.3505, allocations: 33.38 kB / 333.4 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.3515, allocations: 414.7 kB / 333.8 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3516, allocations: 7.984 kB / 333.8 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.644e-05/0.3516, allocations: 11.25 kB / 333.8 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3517, allocations: 6.625 kB / 333.8 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.3529, allocations: 484.8 kB / 334.3 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.3551, allocations: 0.9907 MB / 335.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009431/0.3561, allocations: 417.1 kB / 335.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.3561, allocations: 8.438 kB / 335.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.3562, allocations: 42.94 kB / 335.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.3562, allocations: 0 / 335.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005706/0.3619, allocations: 2.211 MB / 338 MB, free: 8.969 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.378e-05/0.362, allocations: 81.67 kB / 338 MB, free: 8.871 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.3625, allocations: 259.1 kB / 338.3 MB, free: 8.609 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.991e-05/0.3625, allocations: 37.7 kB / 338.3 MB, free: 8.566 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.3627, allocations: 141 kB / 338.5 MB, free: 8.422 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.3629, allocations: 177.4 kB / 338.6 MB, free: 8.246 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.3629, allocations: 16 kB / 338.7 MB, free: 8.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.3631, allocations: 342.8 kB / 339 MB, free: 7.887 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.3636, allocations: 201 kB / 339.2 MB, free: 7.691 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004968/0.3641, allocations: 252.6 kB / 339.4 MB, free: 7.434 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.3646, allocations: 190.1 kB / 339.6 MB, free: 7.25 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3646, allocations: 4 kB / 339.6 MB, free: 7.246 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001223/0.3658, allocations: 0.6173 MB / 340.2 MB, free: 6.621 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.3659, allocations: 15.94 kB / 340.3 MB, free: 6.605 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3659, allocations: 0 / 340.3 MB, free: 6.605 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000749/0.3667, allocations: 258.1 kB / 340.5 MB, free: 6.352 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.367, allocations: 71.89 kB / 340.6 MB, free: 6.281 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/0.3711, allocations: 2.734 MB / 343.3 MB, free: 3.414 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000378/0.3715, allocations: 44.03 kB / 343.4 MB, free: 3.371 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.3715, allocations: 19.98 kB / 343.4 MB, free: 3.352 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002459/0.3718, allocations: 153.8 kB / 343.5 MB, free: 3.191 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.193e-05/0.3719, allocations: 31.61 kB / 343.6 MB, free: 3.16 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.372, allocations: 51.31 kB / 343.6 MB, free: 3.109 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.372, allocations: 4 kB / 343.6 MB, free: 3.105 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.372, allocations: 0 / 343.6 MB, free: 3.105 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.372, allocations: 3.984 kB / 343.6 MB, free: 3.102 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.3746, allocations: 1.287 MB / 344.9 MB, free: 1.75 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3746, allocations: 4 kB / 344.9 MB, free: 1.746 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.3749, allocations: 71.84 kB / 345 MB, free: 1.676 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006632/0.3756, allocations: 244.7 kB / 345.2 MB, free: 1.434 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.3757, allocations: 15.98 kB / 345.2 MB, free: 1.418 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.3794, allocations: 2.651 MB / 347.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.3794, allocations: 4.031 kB / 347.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.3812, allocations: 0.9823 MB / 348.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.3815, allocations: 156.7 kB / 349 MB, free: 13.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.915e-05/0.3816, allocations: 12 kB / 349 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/0.382, allocations: 35.97 kB / 349.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.3822, allocations: 76.19 kB / 349.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/0.3822, allocations: 19.98 kB / 349.2 MB, free: 13.31 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.3825, allocations: 200.7 kB / 349.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3825, allocations: 0 / 349.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008203/0.3833, allocations: 156 kB / 349.5 MB, free: 12.96 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 (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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003502/0.3837, allocations: 135.2 kB / 349.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3852, allocations: 0.715 MB / 350.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3853, allocations: 0 / 350.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009055/0.3862, allocations: 487.6 kB / 350.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.3866, allocations: 32.55 kB / 350.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.3883, allocations: 0.945 MB / 351.8 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.3888, allocations: 0.8048 MB / 352.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.3891, allocations: 58.95 kB / 352.7 MB, free: 9.703 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.3892, allocations: 39.42 kB / 352.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3892, allocations: 0 / 352.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of Templates: time 0.01499/0.4042, allocations: 6.919 MB / 359.6 MB, free: 2.738 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) Environment - environmentSimulation: