Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_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.006273/0.006273, allocations: 100.3 kB / 15.73 MB, free: 6.004 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.001185/0.001185, allocations: 194.5 kB / 16.67 MB, free: 5.926 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.547/1.547, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001289/0.001289, allocations: 49.81 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1241, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004944/0.1291, allocations: 2.806 MB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1312, allocations: 0.928 MB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1314, allocations: 7.938 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002564/0.1317, allocations: 67.42 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002911/0.132, allocations: 111.1 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.1326, allocations: 211.6 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007442/0.1334, allocations: 0.5696 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.1336, allocations: 118.6 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.1339, allocations: 243.3 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004692/0.1344, allocations: 279 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.432e-05/0.1345, allocations: 44 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.1347, allocations: 99.89 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.1349, allocations: 119.6 kB / 378.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.1352, allocations: 223 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007049/0.1359, allocations: 0.5256 MB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.1359, allocations: 4 kB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1359, allocations: 3.938 kB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1359, allocations: 0 / 379.5 MB, free: 10.95 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001825/0.1378, allocations: 0.7292 MB / 380.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.1378, allocations: 12.03 kB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1381, allocations: 40.47 kB / 380.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.1386, allocations: 314.4 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.859e-05/0.1387, allocations: 33.38 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.843e-05/0.1388, allocations: 32.38 kB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009404/0.1397, allocations: 442.6 kB / 381.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.1397, allocations: 4 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.1398, allocations: 16 kB / 381.1 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.1398, allocations: 8 kB / 381.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000952/0.1408, allocations: 451.7 kB / 381.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002571/0.1433, allocations: 1.254 MB / 382.8 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009676/0.1443, allocations: 375.7 kB / 383.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.1448, allocations: 253.2 kB / 383.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.1449, allocations: 4.375 kB / 383.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.1449, allocations: 38.94 kB / 383.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.773e-06/0.1449, allocations: 0 / 383.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005512/0.1505, allocations: 2.26 MB / 385.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.1505, allocations: 59.84 kB / 385.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.1508, allocations: 246.5 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.651e-05/0.1509, allocations: 41.7 kB / 386.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.1511, allocations: 172.6 kB / 386.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.1513, allocations: 165.8 kB / 386.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.1515, allocations: 98.14 kB / 386.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1517, allocations: 338.8 kB / 386.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.1523, allocations: 237 kB / 387 MB, free: 3.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.153, allocations: 299.2 kB / 387.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008384/0.1538, allocations: 419.7 kB / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1538, allocations: 0 / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00167/0.1555, allocations: 0.7547 MB / 388.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.1555, allocations: 8 kB / 388.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1556, allocations: 0 / 388.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.1568, allocations: 0.5569 MB / 389.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.157, allocations: 71.84 kB / 389.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003672/0.1607, allocations: 3.653 MB / 392.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.1613, allocations: 84 kB / 392.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.1613, allocations: 19.98 kB / 392.9 MB, free: 12.8 MB / 334.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.0002718/0.1616, allocations: 161.7 kB / 393 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.811e-05/0.1617, allocations: 39.56 kB / 393.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.1634, allocations: 0.7208 MB / 393.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1634, allocations: 8 kB / 393.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1634, allocations: 4 kB / 393.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1634, allocations: 3.984 kB / 393.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.1657, allocations: 1.258 MB / 395.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1657, allocations: 0 / 395.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.166, allocations: 59.97 kB / 395.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.1671, allocations: 0.5331 MB / 395.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.1671, allocations: 19.98 kB / 395.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/0.1706, allocations: 3.626 MB / 399.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.1706, allocations: 3.984 kB / 399.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.1726, allocations: 1.037 MB / 400.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.1728, allocations: 152.7 kB / 400.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.555e-05/0.1729, allocations: 19.98 kB / 400.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.1734, allocations: 71.84 kB / 400.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.1736, allocations: 92.3 kB / 400.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.1737, allocations: 19.97 kB / 400.7 MB, free: 4.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.174, allocations: 182 kB / 400.9 MB, free: 4.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.174, allocations: 0 / 400.9 MB, free: 4.352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.1745, allocations: 128 kB / 401 MB, free: 4.227 MB / 334.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.0003206/0.1749, allocations: 131.2 kB / 401.1 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.1766, allocations: 0.8097 MB / 401.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1767, allocations: 0 / 401.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.1777, allocations: 0.5489 MB / 402.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.1784, allocations: 64.42 kB / 402.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.1804, allocations: 0.9647 MB / 403.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.1809, allocations: 0.8035 MB / 404.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.181, allocations: 31.28 kB / 404.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.438e-05/0.1811, allocations: 31.42 kB / 404.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1811, allocations: 4 kB / 404.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of Templates: time 0.019/0.2001, allocations: 10.04 MB / 414.4 MB, free: 6.664 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)