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.0008814/0.0008818, allocations: 87.41 kB / 16.31 MB, free: 6.457 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.0008612/0.0008612, allocations: 180.4 kB / 17.21 MB, free: 6.328 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.623/1.623, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0004392/0.0004392, allocations: 12 kB / 280.1 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1261, allocations: 47.58 MB / 327.7 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003762/0.1299, allocations: 2.374 MB / 330.1 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1317, allocations: 0.8972 MB / 331 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.1318, allocations: 11.88 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.132, allocations: 43.69 kB / 331.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000204/0.1323, allocations: 87.3 kB / 331.1 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.1327, allocations: 167.7 kB / 331.3 MB, free: 480 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005337/0.1332, allocations: 0.4955 MB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.1334, allocations: 86.02 kB / 331.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002378/0.1337, allocations: 215.3 kB / 332.1 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.134, allocations: 247.1 kB / 332.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.649e-05/0.1341, allocations: 24 kB / 332.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1342, allocations: 63.95 kB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1344, allocations: 87.64 kB / 332.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.1345, allocations: 89.52 kB / 332.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000429/0.1349, allocations: 383.2 kB / 333 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.1349, allocations: 0 / 333 MB, free: 14.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1349, allocations: 0 / 333 MB, free: 14.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.135, allocations: 0 / 333 MB, free: 14.79 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.001371/0.1363, allocations: 0.6862 MB / 333.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.1364, allocations: 16.03 kB / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.301e-05/0.1365, allocations: 39.53 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.1368, allocations: 301.4 kB / 334 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.1369, allocations: 25 kB / 334 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.854e-05/0.137, allocations: 39.94 kB / 334.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008377/0.1378, allocations: 438.3 kB / 334.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1379, allocations: 11.91 kB / 334.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.226e-05/0.1379, allocations: 15.98 kB / 334.5 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1379, allocations: 8 kB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009293/0.1389, allocations: 463.7 kB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.1411, allocations: 1.304 MB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008462/0.142, allocations: 380.4 kB / 336.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.1424, allocations: 253.5 kB / 336.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.1425, allocations: 4.375 kB / 336.9 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1425, allocations: 34.94 kB / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.1425, allocations: 4 kB / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005076/0.1476, allocations: 2.37 MB / 339.3 MB, free: 8.109 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.1477, allocations: 59.84 kB / 339.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.148, allocations: 254.6 kB / 339.6 MB, free: 7.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.91e-05/0.148, allocations: 37.7 kB / 339.7 MB, free: 7.742 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1482, allocations: 176.6 kB / 339.8 MB, free: 7.566 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1483, allocations: 161.7 kB / 340 MB, free: 7.406 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.1483, allocations: 8 kB / 340 MB, free: 7.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1485, allocations: 346.7 kB / 340.3 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.149, allocations: 245 kB / 340.6 MB, free: 6.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005225/0.1495, allocations: 303.1 kB / 340.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.1499, allocations: 202.1 kB / 341.1 MB, free: 6.301 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1499, allocations: 0 / 341.1 MB, free: 6.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001565/0.1515, allocations: 0.7665 MB / 341.8 MB, free: 5.516 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1515, allocations: 4.125 kB / 341.8 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1516, allocations: 8 kB / 341.8 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.1526, allocations: 0.545 MB / 342.4 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.1529, allocations: 79.89 kB / 342.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002736/0.1556, allocations: 3.455 MB / 345.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/0.1561, allocations: 111.9 kB / 346 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.1562, allocations: 16 kB / 346.1 MB, free: 1.004 MB / 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002416/0.1564, allocations: 169.6 kB / 346.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.1565, allocations: 43.48 kB / 346.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.1581, allocations: 0.7326 MB / 347 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1581, allocations: 4 kB / 347 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1581, allocations: 4 kB / 347 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1581, allocations: 3.984 kB / 347 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.1603, allocations: 1.271 MB / 348.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1603, allocations: 0 / 348.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.1606, allocations: 59.91 kB / 348.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.1616, allocations: 0.5332 MB / 348.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.1616, allocations: 19.97 kB / 348.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/0.1645, allocations: 3.436 MB / 352.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1645, allocations: 0 / 352.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.1664, allocations: 1.04 MB / 353.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.1667, allocations: 160.7 kB / 353.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.217e-05/0.1667, allocations: 23.95 kB / 353.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.1672, allocations: 99.91 kB / 353.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.1674, allocations: 108.2 kB / 353.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.1674, allocations: 23.97 kB / 353.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.1676, allocations: 178 kB / 353.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1676, allocations: 0 / 353.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005306/0.1682, allocations: 128 kB / 354.1 MB, free: 8.547 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002404/0.1684, allocations: 135.2 kB / 354.2 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1701, allocations: 0.8136 MB / 355 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1701, allocations: 0 / 355 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009238/0.171, allocations: 0.5488 MB / 355.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004885/0.1715, allocations: 56.72 kB / 355.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1736, allocations: 1.156 MB / 356.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.1741, allocations: 0.7996 MB / 357.6 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.1742, allocations: 35.28 kB / 357.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.883e-05/0.1743, allocations: 23.42 kB / 357.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.1743, allocations: 4 kB / 357.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of Templates: time 0.0152/0.1895, allocations: 9.007 MB / 366.6 MB, free: 11.85 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)