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.008038/0.008037, allocations: 104.7 kB / 15.74 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.00137/0.00137, allocations: 193.5 kB / 16.67 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.635/1.635, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001126/0.001126, allocations: 50.14 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004673/0.1165, allocations: 2.798 MB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.1188, allocations: 0.9357 MB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.119, allocations: 8 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.1193, allocations: 59.38 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000297/0.1196, allocations: 107.1 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005328/0.1202, allocations: 223.5 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/0.1207, allocations: 0.5735 MB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.121, allocations: 118.6 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.1213, allocations: 239.3 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.1216, allocations: 283 kB / 378.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-05/0.1217, allocations: 48 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.1219, allocations: 95.95 kB / 378.6 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.1221, allocations: 115.6 kB / 378.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.1223, allocations: 219 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006039/0.1229, allocations: 0.5334 MB / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1229, allocations: 0 / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.123, allocations: 0 / 379.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.123, 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.001452/0.1244, allocations: 0.7292 MB / 380.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1245, allocations: 8.031 kB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.1246, allocations: 40.47 kB / 380.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004604/0.1251, allocations: 322.4 kB / 380.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.1251, allocations: 25.38 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9e-05/0.1252, allocations: 36.38 kB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008211/0.126, allocations: 446.6 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.1261, allocations: 3.984 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.1261, allocations: 16 kB / 381.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1261, allocations: 8 kB / 381.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009051/0.127, allocations: 459.7 kB / 381.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.1293, allocations: 1.246 MB / 382.8 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008937/0.1302, allocations: 367.7 kB / 383.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.1307, allocations: 249.2 kB / 383.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.087e-05/0.1308, allocations: 8.312 kB / 383.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.1308, allocations: 46.92 kB / 383.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.753e-06/0.1308, allocations: 0 / 383.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005172/0.136, allocations: 2.252 MB / 385.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.1361, allocations: 59.84 kB / 385.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.1363, allocations: 250.5 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.1364, allocations: 41.7 kB / 386.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1365, allocations: 164.7 kB / 386.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.1366, allocations: 165.8 kB / 386.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.1368, allocations: 102.1 kB / 386.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.137, allocations: 342.8 kB / 386.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000462/0.1375, allocations: 229 kB / 387 MB, free: 3.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006625/0.1382, allocations: 303.1 kB / 387.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008999/0.1391, allocations: 423.7 kB / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1391, allocations: 0 / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001585/0.1407, allocations: 0.7625 MB / 388.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1407, allocations: 4 kB / 388.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1407, allocations: 4.125 kB / 388.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.1418, allocations: 0.5489 MB / 389.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002926/0.1421, allocations: 71.91 kB / 389.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/0.1456, allocations: 3.657 MB / 392.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.1461, allocations: 71.94 kB / 392.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.1462, allocations: 27.92 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.0002798/0.1465, allocations: 173.7 kB / 393.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1466, allocations: 31.62 kB / 393.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.1483, allocations: 0.7209 MB / 393.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1483, allocations: 4 kB / 393.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1483, allocations: 0 / 393.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.1483, allocations: 7.922 kB / 393.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/0.1507, allocations: 1.258 MB / 395.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1507, allocations: 4 kB / 395.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.151, allocations: 55.91 kB / 395.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.1521, allocations: 0.5332 MB / 395.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.1521, allocations: 19.98 kB / 395.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.1553, allocations: 3.629 MB / 399.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1553, allocations: 0 / 399.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.1573, allocations: 1.037 MB / 400.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.1576, allocations: 156.7 kB / 400.5 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.814e-05/0.1576, allocations: 12 kB / 400.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004351/0.1581, allocations: 79.84 kB / 400.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.1583, allocations: 88.23 kB / 400.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.1584, allocations: 23.97 kB / 400.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001836/0.1586, allocations: 174 kB / 400.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1586, allocations: 0 / 400.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005219/0.1591, allocations: 132 kB / 401 MB, free: 4.234 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.000262/0.1594, allocations: 135.2 kB / 401.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.161, allocations: 0.8058 MB / 401.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.161, allocations: 4.25 kB / 401.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009358/0.162, allocations: 0.5448 MB / 402.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.1625, allocations: 68.36 kB / 402.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.1646, allocations: 0.9569 MB / 403.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.165, allocations: 0.7996 MB / 404.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.1652, allocations: 39.27 kB / 404.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.144e-05/0.1653, allocations: 31.44 kB / 404.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1653, allocations: 0 / 404.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of Templates: time 0.0195/0.1848, allocations: 10.05 MB / 414.4 MB, free: 6.668 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)