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.006565/0.006565, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001513/0.001513, allocations: 192 kB / 16.67 MB, free: 5.969 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001231/0.001231, allocations: 52.36 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1248, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004307/0.1292, allocations: 2.802 MB / 376 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.131, allocations: 0.9357 MB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.1312, allocations: 7.938 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.1314, allocations: 55.45 kB / 377 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.1317, allocations: 111 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.1322, allocations: 211.6 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.1328, allocations: 0.5773 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.133, allocations: 110.7 kB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002991/0.1333, allocations: 255.3 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.1336, allocations: 267 kB / 378.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.491e-05/0.1337, allocations: 44 kB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.1339, allocations: 107.8 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.134, allocations: 111.6 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.1343, allocations: 219 kB / 378.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005905/0.1349, allocations: 0.537 MB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1349, allocations: 0 / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1349, allocations: 0 / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1349, 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.001383/0.1363, allocations: 0.7443 MB / 380.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1363, allocations: 16.03 kB / 380.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.476e-05/0.1364, allocations: 44.66 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.1369, allocations: 314.7 kB / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.137, allocations: 21.38 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.956e-05/0.1371, allocations: 36.38 kB / 380.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008515/0.1379, allocations: 442.6 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.1379, allocations: 4 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.138, allocations: 16 kB / 381.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.138, allocations: 8 kB / 381.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009305/0.1389, allocations: 459.7 kB / 381.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.1412, allocations: 1.254 MB / 382.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007828/0.142, allocations: 367.6 kB / 383.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004529/0.1424, allocations: 257.2 kB / 383.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.1425, allocations: 4.375 kB / 383.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.1425, allocations: 34.94 kB / 383.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.1425, allocations: 0 / 383.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005197/0.1477, allocations: 2.265 MB / 385.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.1478, allocations: 59.78 kB / 385.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.1481, allocations: 254.6 kB / 386 MB, free: 4.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.1481, allocations: 41.69 kB / 386.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1483, allocations: 172.9 kB / 386.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.1484, allocations: 174.6 kB / 386.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.1486, allocations: 102.2 kB / 386.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1488, allocations: 342.8 kB / 386.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005041/0.1493, allocations: 233 kB / 387.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000533/0.1498, allocations: 299.2 kB / 387.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007924/0.1506, allocations: 419.7 kB / 387.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1507, allocations: 4 kB / 387.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001599/0.1523, allocations: 0.755 MB / 388.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.1523, allocations: 9.125 kB / 388.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.1523, allocations: 7.984 kB / 388.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.1534, allocations: 0.5373 MB / 389.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.1537, allocations: 79.77 kB / 389.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.1568, allocations: 3.668 MB / 392.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.1574, allocations: 67.91 kB / 392.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.1574, allocations: 23.98 kB / 392.9 MB, free: 12.77 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.0002539/0.1577, allocations: 161.9 kB / 393.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.1578, allocations: 31.81 kB / 393.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/0.1594, allocations: 0.7286 MB / 393.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1594, allocations: 4 kB / 393.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1594, allocations: 4 kB / 393.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1594, allocations: 0 / 393.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.1616, allocations: 1.266 MB / 395.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1616, allocations: 0 / 395.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.1619, allocations: 55.95 kB / 395.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.163, allocations: 0.5371 MB / 395.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.608e-05/0.1631, allocations: 19.97 kB / 395.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/0.1667, allocations: 3.626 MB / 399.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1667, allocations: 0 / 399.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.1688, allocations: 1.033 MB / 400.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.169, allocations: 160.8 kB / 400.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.067e-05/0.1691, allocations: 20 kB / 400.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.1696, allocations: 71.84 kB / 400.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.1698, allocations: 92.28 kB / 400.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.1698, allocations: 19.98 kB / 400.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001813/0.17, allocations: 182 kB / 400.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.17, allocations: 0 / 400.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005254/0.1706, allocations: 120 kB / 401 MB, free: 4.211 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.0002632/0.1708, allocations: 147.1 kB / 401.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.1725, allocations: 0.8098 MB / 402 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.1726, allocations: 0 / 402 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008981/0.1735, allocations: 0.5447 MB / 402.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.174, allocations: 72.47 kB / 402.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.176, allocations: 0.9754 MB / 403.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000398/0.1764, allocations: 0.7957 MB / 404.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.1765, allocations: 35.28 kB / 404.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.947e-05/0.1766, allocations: 35.42 kB / 404.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1766, allocations: 0 / 404.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of Templates: time 0.01636/0.193, allocations: 10.05 MB / 414.5 MB, free: 6.613 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)