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.001132/0.001132, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001608/0.001608, allocations: 182 kB / 17.56 MB, free: 6.203 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.655/1.655, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0004744/0.0004746, allocations: 16 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003857/0.1278, allocations: 2.47 MB / 330.8 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.1295, allocations: 0.928 MB / 331.7 MB, free: 328 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.1297, allocations: 11.94 kB / 331.7 MB, free: 316 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1299, allocations: 39.69 kB / 331.8 MB, free: 276 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.1301, allocations: 91.31 kB / 331.9 MB, free: 184 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1305, allocations: 183.7 kB / 332 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.131, allocations: 0.5384 MB / 332.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.1312, allocations: 98.59 kB / 332.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.1315, allocations: 215.2 kB / 332.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.1319, allocations: 251 kB / 333.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-05/0.1319, allocations: 24 kB / 333.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.1321, allocations: 71.89 kB / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1322, allocations: 95.62 kB / 333.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1325, allocations: 212.7 kB / 333.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.133, allocations: 0.4946 MB / 334 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.133, allocations: 0 / 334 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.133, allocations: 4 kB / 334 MB, free: 14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.133, allocations: 0 / 334 MB, free: 14 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.001545/0.1345, allocations: 0.698 MB / 334.7 MB, free: 13.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.1346, allocations: 8.031 kB / 334.7 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.1347, allocations: 44.47 kB / 334.8 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.1351, allocations: 302.6 kB / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.1352, allocations: 25.38 kB / 335.1 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.1353, allocations: 40.36 kB / 335.1 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009125/0.1362, allocations: 450.6 kB / 335.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.1362, allocations: 3.906 kB / 335.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.978e-05/0.1363, allocations: 16 kB / 335.6 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1363, allocations: 8 kB / 335.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009603/0.1373, allocations: 479.6 kB / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.1396, allocations: 1.293 MB / 337.4 MB, free: 10.49 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008122/0.1404, allocations: 379.6 kB / 337.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/0.1409, allocations: 257.2 kB / 338 MB, free: 9.859 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.141, allocations: 4.375 kB / 338 MB, free: 9.855 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.141, allocations: 42.94 kB / 338 MB, free: 9.805 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.141, allocations: 0 / 338 MB, free: 9.805 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005461/0.1465, allocations: 2.381 MB / 340.4 MB, free: 7.285 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.1466, allocations: 55.84 kB / 340.5 MB, free: 7.219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.1468, allocations: 254.6 kB / 340.7 MB, free: 6.961 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.1469, allocations: 41.69 kB / 340.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.147, allocations: 164.6 kB / 340.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.1472, allocations: 169.7 kB / 341.1 MB, free: 6.582 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.842e-05/0.1473, allocations: 45.69 kB / 341.1 MB, free: 6.531 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1474, allocations: 338.8 kB / 341.4 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/0.1479, allocations: 245 kB / 341.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005433/0.1485, allocations: 315.2 kB / 342 MB, free: 5.625 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/0.1493, allocations: 431.7 kB / 342.4 MB, free: 5.191 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1493, allocations: 0 / 342.4 MB, free: 5.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001642/0.151, allocations: 0.7704 MB / 343.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.151, allocations: 8 kB / 343.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.151, allocations: 0 / 343.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.1521, allocations: 0.5607 MB / 343.8 MB, free: 3.824 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.1524, allocations: 71.84 kB / 343.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.1555, allocations: 3.463 MB / 347.3 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/0.1561, allocations: 112.2 kB / 347.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.1561, allocations: 19.94 kB / 347.4 MB, free: 15.87 MB / 302.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.0002357/0.1564, allocations: 169.3 kB / 347.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.077e-05/0.1565, allocations: 35.53 kB / 347.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.158, allocations: 0.7443 MB / 348.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.158, allocations: 4 kB / 348.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1581, allocations: 0 / 348.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.1581, allocations: 7.922 kB / 348.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.1602, allocations: 1.278 MB / 349.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1602, allocations: 4 kB / 349.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.1605, allocations: 55.97 kB / 349.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009789/0.1615, allocations: 0.5216 MB / 350.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.1616, allocations: 19.97 kB / 350.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.1645, allocations: 3.448 MB / 353.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1645, allocations: 3.984 kB / 353.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.1665, allocations: 1.047 MB / 354.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.1667, allocations: 156.7 kB / 354.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-05/0.1668, allocations: 20 kB / 354.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/0.1673, allocations: 107.8 kB / 355 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.1675, allocations: 84.28 kB / 355.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-05/0.1675, allocations: 19.97 kB / 355.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.1677, allocations: 178 kB / 355.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1677, allocations: 0 / 355.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005091/0.1682, allocations: 131.9 kB / 355.4 MB, free: 7.414 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.000274/0.1685, allocations: 135.1 kB / 355.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.1701, allocations: 0.8215 MB / 356.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1702, allocations: 3.938 kB / 356.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008411/0.171, allocations: 0.545 MB / 356.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.1715, allocations: 56.47 kB / 357 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.1735, allocations: 1.199 MB / 358.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.1739, allocations: 0.8035 MB / 359 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.174, allocations: 39.22 kB / 359 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.922e-05/0.1741, allocations: 27.42 kB / 359.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1741, allocations: 0 / 359.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Templates: time 0.01412/0.1882, allocations: 9.269 MB / 368.3 MB, free: 10.4 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)