Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 107.5 kB / 16.62 MB, free: 6.812 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.001544/0.001544, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.532/1.532, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001115/0.001115, allocations: 55.92 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1113, allocations: 46.64 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005291/0.1167, allocations: 2.832 MB / 329 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.1187, allocations: 0.9395 MB / 329.9 MB, free: 1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.1189, allocations: 8 kB / 329.9 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.1192, allocations: 43.64 kB / 330 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.1195, allocations: 91.3 kB / 330 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.12, allocations: 187.8 kB / 330.2 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000526/0.1205, allocations: 0.5696 MB / 330.8 MB, free: 108 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.1207, allocations: 102.7 kB / 330.9 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.121, allocations: 255.1 kB / 331.1 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003116/0.1213, allocations: 279 kB / 331.4 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.839e-05/0.1214, allocations: 44 kB / 331.5 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.1216, allocations: 87.95 kB / 331.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.1217, allocations: 115.6 kB / 331.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.122, allocations: 211 kB / 331.9 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000604/0.1226, allocations: 0.5336 MB / 332.4 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1226, allocations: 0 / 332.4 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1226, allocations: 7.938 kB / 332.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.1226, allocations: 0 / 332.4 MB, free: 14.48 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001487/0.1241, allocations: 0.733 MB / 333.1 MB, free: 13.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.1242, allocations: 12.03 kB / 333.2 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1243, allocations: 40.47 kB / 333.2 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.1248, allocations: 310.6 kB / 333.5 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.909e-05/0.1248, allocations: 21.38 kB / 333.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.1249, allocations: 36.38 kB / 333.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009782/0.1259, allocations: 442.6 kB / 334 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.126, allocations: 7.844 kB / 334 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.126, allocations: 16 kB / 334 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.126, allocations: 8 kB / 334 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009994/0.127, allocations: 463.7 kB / 334.5 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002374/0.1294, allocations: 1.269 MB / 335.7 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.1303, allocations: 371.7 kB / 336.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004725/0.1308, allocations: 249.2 kB / 336.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.301e-05/0.1309, allocations: 8.359 kB / 336.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.1309, allocations: 42.88 kB / 336.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.675e-06/0.1309, allocations: 0 / 336.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.00528/0.1362, allocations: 2.26 MB / 338.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.1363, allocations: 55.84 kB / 338.7 MB, free: 7.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.1366, allocations: 250.6 kB / 339 MB, free: 7.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.1367, allocations: 41.7 kB / 339 MB, free: 7.543 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1368, allocations: 164.6 kB / 339.2 MB, free: 7.379 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.137, allocations: 173.7 kB / 339.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002028/0.1372, allocations: 106.1 kB / 339.4 MB, free: 7.094 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1374, allocations: 342.8 kB / 339.8 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005069/0.1379, allocations: 233 kB / 340 MB, free: 6.523 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/0.1385, allocations: 303.2 kB / 340.3 MB, free: 6.207 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007942/0.1393, allocations: 419.6 kB / 340.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1393, allocations: 4 kB / 340.7 MB, free: 5.781 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0016/0.1409, allocations: 0.7548 MB / 341.5 MB, free: 5.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.1409, allocations: 4 kB / 341.5 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.141, allocations: 128 / 341.5 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.1422, allocations: 0.5523 MB / 342 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.1425, allocations: 79.89 kB / 342.1 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.1456, allocations: 3.649 MB / 345.7 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.1462, allocations: 76.03 kB / 345.8 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/0.1462, allocations: 23.98 kB / 345.8 MB, free: 320 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.000273/0.1465, allocations: 161.5 kB / 346 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.45e-05/0.1466, allocations: 43.47 kB / 346 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.1482, allocations: 0.7249 MB / 346.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.535e-06/0.1482, allocations: 7.984 kB / 346.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1482, allocations: 4 kB / 346.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1482, allocations: 0 / 346.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.1504, allocations: 1.259 MB / 348 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1504, allocations: 0 / 348 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.1507, allocations: 55.91 kB / 348.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.1517, allocations: 0.5334 MB / 348.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.107e-05/0.1518, allocations: 19.92 kB / 348.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/0.155, allocations: 3.626 MB / 352.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1551, allocations: 4 kB / 352.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.1569, allocations: 1.02 MB / 353.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.1571, allocations: 164.8 kB / 353.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.297e-05/0.1572, allocations: 16 kB / 353.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.1577, allocations: 67.91 kB / 353.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.1579, allocations: 96.17 kB / 353.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.1579, allocations: 23.97 kB / 353.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.1581, allocations: 182 kB / 353.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1581, allocations: 3.938 kB / 353.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005593/0.1587, allocations: 128 kB / 354 MB, free: 7.734 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003332/0.159, allocations: 135.2 kB / 354.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.1609, allocations: 0.8213 MB / 354.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1609, allocations: 0 / 354.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009625/0.1619, allocations: 0.5412 MB / 355.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.1625, allocations: 56.47 kB / 355.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.1647, allocations: 1.121 MB / 356.6 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.1651, allocations: 0.7957 MB / 357.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001572/0.1653, allocations: 35.27 kB / 357.5 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.651e-05/0.1654, allocations: 35.42 kB / 357.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.1654, allocations: 0 / 357.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of Templates: time 0.01581/0.1812, allocations: 9.873 MB / 367.4 MB, free: 10.2 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)