Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.008281/0.008281, allocations: 102 kB / 15.73 MB, free: 6.051 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.001672/0.001672, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.565/1.565, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001335/0.001335, allocations: 50.02 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004476/0.1061, allocations: 2.727 MB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.1088, allocations: 1.132 MB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.1092, allocations: 4 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003751/0.1097, allocations: 71.31 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008089/0.1105, allocations: 194.8 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.1111, allocations: 247.6 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008089/0.1119, allocations: 0.6392 MB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1122, allocations: 143.2 kB / 378.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005618/0.1128, allocations: 291.1 kB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005892/0.1134, allocations: 338.9 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1135, allocations: 52 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003561/0.1139, allocations: 139.9 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.1141, allocations: 151.5 kB / 379.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.1144, allocations: 246.9 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008678/0.1153, allocations: 0.6464 MB / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1153, allocations: 0 / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1153, allocations: 0 / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.1154, allocations: 4 kB / 380.1 MB, free: 10.3 MB / 318.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.001765/0.1171, allocations: 0.7915 MB / 380.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1172, allocations: 11.89 kB / 380.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004009/0.1176, allocations: 68.34 kB / 381 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006182/0.1182, allocations: 362.4 kB / 381.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.1184, allocations: 104.9 kB / 381.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.1185, allocations: 40.28 kB / 381.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.1196, allocations: 0.5645 MB / 382.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.1196, allocations: 0 / 382.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.491e-05/0.1197, allocations: 16 kB / 382.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1197, allocations: 12 kB / 382.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.121, allocations: 0.6402 MB / 382.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.1234, allocations: 1.275 MB / 384 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1245, allocations: 0.5482 MB / 384.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.1251, allocations: 330.5 kB / 384.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.1252, allocations: 8.5 kB / 384.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.1252, allocations: 39.12 kB / 384.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.204e-06/0.1252, allocations: 0 / 384.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006913/0.1321, allocations: 2.875 MB / 387.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.1322, allocations: 89.61 kB / 387.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.1327, allocations: 338.9 kB / 388.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.327e-05/0.1328, allocations: 41.7 kB / 388.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.1329, allocations: 161.5 kB / 388.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.1331, allocations: 228.9 kB / 388.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.1333, allocations: 122.2 kB / 388.8 MB, free: 1.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1335, allocations: 346.8 kB / 389.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006098/0.1341, allocations: 285.2 kB / 389.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.1347, allocations: 358.5 kB / 389.7 MB, free: 324 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.1358, allocations: 0.5265 MB / 390.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1358, allocations: 3.938 kB / 390.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001708/0.1375, allocations: 0.8812 MB / 391.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.1376, allocations: 11.94 kB / 391.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1376, allocations: 0 / 391.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.1386, allocations: 465.6 kB / 391.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.139, allocations: 87.86 kB / 391.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.1404, allocations: 1.079 MB / 392.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.1409, allocations: 55.92 kB / 392.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.141, allocations: 31.98 kB / 392.9 MB, free: 13.14 MB / 334.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.0003071/0.1413, allocations: 173.8 kB / 393 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1414, allocations: 43.44 kB / 393.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.1416, allocations: 67.77 kB / 393.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.1416, allocations: 8 kB / 393.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.1416, allocations: 3.938 kB / 393.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1416, allocations: 3.984 kB / 393.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.145, allocations: 1.76 MB / 394.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.145, allocations: 0 / 394.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.1454, allocations: 79.95 kB / 395 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009389/0.1463, allocations: 456.5 kB / 395.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.1464, allocations: 19.97 kB / 395.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.1476, allocations: 1.044 MB / 396.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.1476, allocations: 0 / 396.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.1502, allocations: 1.302 MB / 397.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.1504, allocations: 176.6 kB / 398 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-05/0.1505, allocations: 20 kB / 398 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004586/0.151, allocations: 51.88 kB / 398.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.1512, allocations: 88.48 kB / 398.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.1513, allocations: 27.97 kB / 398.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002976/0.1516, allocations: 237.9 kB / 398.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1516, allocations: 3.938 kB / 398.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005259/0.1521, allocations: 152 kB / 398.5 MB, free: 7.305 MB / 334.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.0003059/0.1524, allocations: 151 kB / 398.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.154, allocations: 0.7119 MB / 399.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.154, allocations: 0 / 399.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008551/0.1549, allocations: 396 kB / 399.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.1554, allocations: 48.81 kB / 399.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.1582, allocations: 1.111 MB / 401 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.1586, allocations: 0.8173 MB / 401.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.1589, allocations: 63.34 kB / 401.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.159, allocations: 43.41 kB / 401.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1591, allocations: 4 kB / 401.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of Templates: time 0.01744/0.1765, allocations: 10.04 MB / 411.9 MB, free: 9.848 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)