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.0009776/0.0009776, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001186/0.001187, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.49/1.49, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004664/0.0004664, allocations: 8 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1049, allocations: 47.59 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003154/0.1081, allocations: 2.391 MB / 330.7 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.1103, allocations: 1.125 MB / 331.8 MB, free: 228 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.1107, allocations: 11.94 kB / 331.8 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.111, allocations: 51.62 kB / 331.9 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008797/0.1119, allocations: 159.2 kB / 332 MB, free: 4 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006427/0.1125, allocations: 219.7 kB / 332.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000818/0.1134, allocations: 0.6118 MB / 332.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002911/0.1137, allocations: 112 kB / 333 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006395/0.1143, allocations: 263 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007167/0.1151, allocations: 318.9 kB / 333.6 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.1152, allocations: 24 kB / 333.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.1157, allocations: 103.9 kB / 333.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.1158, allocations: 119.6 kB / 333.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.1161, allocations: 256.5 kB / 334 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007117/0.1169, allocations: 0.5998 MB / 334.6 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1169, allocations: 4 kB / 334.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1169, allocations: 0 / 334.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.669e-05/0.1169, allocations: 0 / 334.6 MB, free: 13.38 MB / 286.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.001866/0.1188, allocations: 0.7253 MB / 335.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.1189, allocations: 8.031 kB / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.1192, allocations: 68.36 kB / 335.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.1198, allocations: 362.4 kB / 335.8 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.1199, allocations: 92.95 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.326e-05/0.12, allocations: 44.38 kB / 335.9 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.1211, allocations: 0.5684 MB / 336.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.1211, allocations: 0 / 336.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.373e-05/0.1212, allocations: 16 kB / 336.5 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.1212, allocations: 12 kB / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.1226, allocations: 0.6557 MB / 337.2 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/0.1253, allocations: 1.31 MB / 338.5 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1265, allocations: 0.5639 MB / 339.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.1272, allocations: 334.4 kB / 339.4 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.1272, allocations: 12.5 kB / 339.4 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1272, allocations: 35.12 kB / 339.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.304e-06/0.1273, allocations: 0 / 339.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007203/0.1345, allocations: 2.969 MB / 342.4 MB, free: 5.316 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.1346, allocations: 93.59 kB / 342.5 MB, free: 5.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005094/0.1351, allocations: 334.9 kB / 342.8 MB, free: 4.863 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.32e-05/0.1352, allocations: 49.69 kB / 342.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.1354, allocations: 157.6 kB / 343 MB, free: 4.652 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.1356, allocations: 228.7 kB / 343.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.1358, allocations: 61.69 kB / 343.3 MB, free: 4.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.136, allocations: 346.8 kB / 343.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006429/0.1366, allocations: 297.2 kB / 343.9 MB, free: 3.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007094/0.1373, allocations: 358.5 kB / 344.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.1385, allocations: 0.5382 MB / 344.8 MB, free: 2.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1385, allocations: 0 / 344.8 MB, free: 2.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001808/0.1403, allocations: 0.8968 MB / 345.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1404, allocations: 11.94 kB / 345.7 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1404, allocations: 0 / 345.7 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.1415, allocations: 473.6 kB / 346.2 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.1419, allocations: 91.81 kB / 346.3 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1433, allocations: 1.079 MB / 347.4 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.1439, allocations: 84.02 kB / 347.4 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.158e-05/0.1439, allocations: 23.98 kB / 347.5 MB, free: 136 kB / 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.0002995/0.1443, allocations: 177.7 kB / 347.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.1444, allocations: 43.58 kB / 347.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.1445, allocations: 67.78 kB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.1446, allocations: 11.98 kB / 347.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1446, allocations: 0 / 347.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1446, allocations: 0 / 347.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.1479, allocations: 1.789 MB / 349.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1479, allocations: 0 / 349.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.1483, allocations: 79.89 kB / 349.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009571/0.1493, allocations: 460.4 kB / 350.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.1493, allocations: 19.97 kB / 350.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.1506, allocations: 1.036 MB / 351.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1506, allocations: 0 / 351.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00245/0.153, allocations: 1.329 MB / 352.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/0.1533, allocations: 188.5 kB / 352.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.106e-05/0.1534, allocations: 16 kB / 352.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004489/0.1538, allocations: 75.94 kB / 352.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.1541, allocations: 80.42 kB / 352.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.1541, allocations: 31.97 kB / 352.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002833/0.1544, allocations: 241.9 kB / 353.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1544, allocations: 0 / 353.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.1549, allocations: 152 kB / 353.2 MB, free: 10.21 MB / 302.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.000255/0.1552, allocations: 147.1 kB / 353.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.1567, allocations: 0.7197 MB / 354.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1567, allocations: 0 / 354.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008126/0.1575, allocations: 400.2 kB / 354.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.158, allocations: 52.86 kB / 354.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.1607, allocations: 1.408 MB / 355.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.1611, allocations: 0.8251 MB / 356.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.1613, allocations: 59.34 kB / 356.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.1615, allocations: 39.34 kB / 356.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1615, allocations: 4 kB / 356.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of Templates: time 0.01487/0.1763, allocations: 9.203 MB / 366.1 MB, free: 13.3 MB / 318.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)