Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001489, allocations: 112.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001753/0.001753, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 59.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2068, allocations: 50.55 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003992/0.2109, allocations: 2.946 MB / 412.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.2126, allocations: 1.048 MB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.2128, allocations: 4 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.2131, allocations: 79.31 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003732/0.2135, allocations: 158.9 kB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2139, allocations: 187.6 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000578/0.2145, allocations: 0.597 MB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.2147, allocations: 122.6 kB / 415.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.215, allocations: 263.2 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/0.2154, allocations: 283 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2155, allocations: 51.94 kB / 415.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.2157, allocations: 112 kB / 415.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.2158, allocations: 123.6 kB / 415.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.2161, allocations: 230.9 kB / 416.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005893/0.2167, allocations: 0.5852 MB / 416.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2167, allocations: 0 / 416.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2167, allocations: 0 / 416.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.2167, allocations: 0 / 416.7 MB, free: 10.83 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001464/0.2182, allocations: 0.7681 MB / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.2182, allocations: 12.03 kB / 417.5 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.2183, allocations: 44.38 kB / 417.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.2188, allocations: 330.4 kB / 417.8 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.2188, allocations: 29.38 kB / 417.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.238e-05/0.2189, allocations: 36.36 kB / 417.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.2198, allocations: 438.6 kB / 418.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2198, allocations: 0 / 418.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/0.2199, allocations: 16 kB / 418.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2199, allocations: 11.94 kB / 418.4 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009813/0.2209, allocations: 451.6 kB / 418.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.2232, allocations: 1.273 MB / 420.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009159/0.2242, allocations: 411.9 kB / 420.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.2247, allocations: 238.1 kB / 420.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.2247, allocations: 8.438 kB / 420.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.2248, allocations: 43 kB / 420.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.804e-06/0.2248, allocations: 0 / 420.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005434/0.2302, allocations: 2.256 MB / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.2302, allocations: 59.78 kB / 423.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.2305, allocations: 282.5 kB / 423.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.275e-05/0.2306, allocations: 41.7 kB / 423.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2307, allocations: 172.7 kB / 423.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.2308, allocations: 181.5 kB / 423.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.231, allocations: 98.14 kB / 423.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2312, allocations: 342.8 kB / 424.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.2317, allocations: 217 kB / 424.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005332/0.2322, allocations: 295.2 kB / 424.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008063/0.233, allocations: 395.7 kB / 425 MB, free: 2.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.233, allocations: 0 / 425 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001587/0.2346, allocations: 0.7236 MB / 425.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2347, allocations: 8 kB / 425.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2347, allocations: 4.125 kB / 425.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.2357, allocations: 434.1 kB / 426.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.236, allocations: 67.91 kB / 426.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002886/0.2389, allocations: 3.644 MB / 429.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.2394, allocations: 75.89 kB / 430 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.2395, allocations: 20.09 kB / 430 MB, free: 12.77 MB / 350.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.2397, allocations: 181.6 kB / 430.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.423e-05/0.2398, allocations: 39.61 kB / 430.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.2414, allocations: 0.7278 MB / 431 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.2414, allocations: 7.922 kB / 431 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2415, allocations: 0 / 431 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.2417, allocations: 156.6 kB / 431.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.2417, allocations: 16 kB / 431.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.2422, allocations: 75.91 kB / 431.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.2424, allocations: 88.41 kB / 431.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002257/0.2447, allocations: 0.8053 MB / 432.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001627/0.2464, allocations: 0.9119 MB / 433 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004859/0.2469, allocations: 232.4 kB / 433.2 MB, free: 9.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.247, allocations: 193.9 kB / 433.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of Backend: time 3.1e-07/0.247, allocations: 0 / 433.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.2495, allocations: 1.092 MB / 434.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of SimCode: time 0.001662/0.2512, allocations: 1.474 MB / 436 MB, free: 6.82 MB / 350.1 MB Notification: Performance of Templates: time 0.01502/0.2662, allocations: 9.644 MB / 445.6 MB, free: 13.21 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)