Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007863/0.007863, allocations: 102.2 kB / 15.73 MB, free: 6.484 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.001364/0.001364, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.603/1.603, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.00122/0.00122, allocations: 49.73 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.12, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004679/0.1247, allocations: 2.802 MB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.1266, allocations: 0.9241 MB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.1268, allocations: 7.938 kB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.1271, allocations: 67.44 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.1274, allocations: 111 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.1279, allocations: 207.6 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.1285, allocations: 0.5735 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.1287, allocations: 118.6 kB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.129, allocations: 243.3 kB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.1294, allocations: 279 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.205e-05/0.1295, allocations: 48 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.1297, allocations: 103.9 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.1298, allocations: 111.6 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1301, allocations: 215 kB / 378.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.1306, allocations: 0.5334 MB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1307, allocations: 0 / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1307, allocations: 0 / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.1307, allocations: 0 / 379.5 MB, free: 10.96 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.00142/0.1321, allocations: 0.737 MB / 380.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1322, allocations: 8.031 kB / 380.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.1323, allocations: 40.47 kB / 380.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006044/0.1329, allocations: 322.4 kB / 380.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.133, allocations: 25.31 kB / 380.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.934e-05/0.1331, allocations: 36.38 kB / 380.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000841/0.1339, allocations: 438.6 kB / 381.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.1339, allocations: 11.97 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.134, allocations: 12 kB / 381.1 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.134, allocations: 8 kB / 381.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.135, allocations: 459.7 kB / 381.5 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.1373, allocations: 1.25 MB / 382.8 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008785/0.1382, allocations: 367.7 kB / 383.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.1387, allocations: 249.2 kB / 383.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.1388, allocations: 4.375 kB / 383.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.1388, allocations: 42.94 kB / 383.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.344e-06/0.1388, allocations: 0 / 383.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005515/0.1444, allocations: 2.256 MB / 385.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.1444, allocations: 55.84 kB / 385.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.1447, allocations: 254.5 kB / 386 MB, free: 4.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.1449, allocations: 45.64 kB / 386 MB, free: 4.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.145, allocations: 168.7 kB / 386.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.1452, allocations: 157.8 kB / 386.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.1454, allocations: 110.1 kB / 386.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1455, allocations: 338.8 kB / 386.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.146, allocations: 233 kB / 387 MB, free: 3.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000621/0.1466, allocations: 299.2 kB / 387.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008742/0.1475, allocations: 419.7 kB / 387.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1475, allocations: 0 / 387.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001616/0.1491, allocations: 0.7625 MB / 388.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1492, allocations: 4 kB / 388.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1492, allocations: 4 kB / 388.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.1503, allocations: 0.5413 MB / 389 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.1506, allocations: 79.83 kB / 389.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003166/0.1538, allocations: 3.661 MB / 392.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.1543, allocations: 71.94 kB / 392.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.1544, allocations: 16 kB / 392.9 MB, free: 12.82 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.0002509/0.1546, allocations: 177.8 kB / 393 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.1547, allocations: 31.62 kB / 393.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.1563, allocations: 0.7247 MB / 393.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1564, allocations: 4 kB / 393.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1564, allocations: 0 / 393.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1564, allocations: 3.984 kB / 393.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.1587, allocations: 1.262 MB / 395.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.1588, allocations: 7.938 kB / 395.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.159, allocations: 47.97 kB / 395.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.1601, allocations: 0.5371 MB / 395.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.1601, allocations: 23.97 kB / 395.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.1631, allocations: 3.626 MB / 399.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1631, allocations: 0 / 399.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.165, allocations: 1.033 MB / 400.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.1652, allocations: 156.7 kB / 400.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.1653, allocations: 16 kB / 400.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004631/0.1658, allocations: 75.84 kB / 400.6 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.166, allocations: 92.28 kB / 400.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.1661, allocations: 23.97 kB / 400.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.1662, allocations: 174 kB / 400.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1663, allocations: 0 / 400.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005786/0.1668, allocations: 128 kB / 401 MB, free: 4.246 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.0003028/0.1671, allocations: 139.2 kB / 401.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.1689, allocations: 0.8019 MB / 401.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.169, allocations: 256 / 401.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.17, allocations: 0.5487 MB / 402.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.1706, allocations: 64.45 kB / 402.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.1729, allocations: 0.9685 MB / 403.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.1735, allocations: 0.7918 MB / 404.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.1736, allocations: 43.27 kB / 404.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.872e-05/0.1737, allocations: 35.42 kB / 404.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1737, allocations: 0 / 404.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of Templates: time 0.0165/0.1902, allocations: 10.05 MB / 414.4 MB, free: 6.676 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)