Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 111.1 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 56.09 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2041, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003979/0.2081, allocations: 2.87 MB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.2102, allocations: 1.267 MB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.2104, allocations: 7.938 kB / 414.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.2107, allocations: 91.27 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005211/0.2113, allocations: 209.9 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005265/0.2118, allocations: 251.5 kB / 414.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006754/0.2125, allocations: 0.7094 MB / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.2127, allocations: 127.4 kB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004603/0.2132, allocations: 331 kB / 415.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004436/0.2136, allocations: 374.8 kB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.2138, allocations: 60 kB / 416.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.214, allocations: 159.8 kB / 416.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.2142, allocations: 163.6 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.2145, allocations: 266.7 kB / 416.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007144/0.2152, allocations: 0.7139 MB / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2152, allocations: 0 / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2152, allocations: 0 / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.2153, allocations: 3.938 kB / 417.5 MB, free: 10.01 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001664/0.2169, allocations: 0.8498 MB / 418.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.217, allocations: 8.031 kB / 418.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004424/0.2174, allocations: 80.34 kB / 418.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.218, allocations: 362.4 kB / 418.8 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.2181, allocations: 96.94 kB / 418.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.2182, allocations: 44.38 kB / 418.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.2193, allocations: 0.5644 MB / 419.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.2193, allocations: 3.906 kB / 419.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.2194, allocations: 16 kB / 419.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2194, allocations: 8 kB / 419.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.2208, allocations: 0.6128 MB / 420.1 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.2232, allocations: 1.306 MB / 421.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2243, allocations: 0.5208 MB / 421.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006329/0.225, allocations: 302.4 kB / 422.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.159e-05/0.225, allocations: 20.48 kB / 422.3 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.2251, allocations: 35.12 kB / 422.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 1.833e-06/0.2251, allocations: 0 / 422.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.006818/0.2319, allocations: 2.746 MB / 425 MB, free: 2.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.232, allocations: 85.67 kB / 425.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.2324, allocations: 355.2 kB / 425.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.2324, allocations: 37.7 kB / 425.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.2326, allocations: 169.6 kB / 425.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.2328, allocations: 232.6 kB / 425.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.233, allocations: 126.2 kB / 426 MB, free: 1.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.2331, allocations: 354.8 kB / 426.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/0.2337, allocations: 269.2 kB / 426.6 MB, free: 496 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.2344, allocations: 330.5 kB / 427 MB, free: 156 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.2355, allocations: 491.3 kB / 427.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2355, allocations: 4 kB / 427.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001805/0.2373, allocations: 0.8372 MB / 428.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2373, allocations: 8 kB / 428.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2374, allocations: 4.031 kB / 428.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.2384, allocations: 445.2 kB / 428.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.2388, allocations: 87.86 kB / 428.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.2401, allocations: 1.021 MB / 429.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.2406, allocations: 59.95 kB / 429.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.029e-05/0.2407, allocations: 27.98 kB / 429.9 MB, free: 13.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002348/0.2409, allocations: 189.6 kB / 430.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.241, allocations: 43.44 kB / 430.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.2412, allocations: 67.86 kB / 430.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.2412, allocations: 4 kB / 430.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.2412, allocations: 3.984 kB / 430.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.2415, allocations: 184.5 kB / 430.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.435e-05/0.2416, allocations: 24 kB / 430.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.2421, allocations: 55.94 kB / 430.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.2423, allocations: 88.42 kB / 430.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002659/0.2449, allocations: 0.9635 MB / 431.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002074/0.247, allocations: 1.101 MB / 432.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006026/0.2476, allocations: 288.3 kB / 432.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.2479, allocations: 257.9 kB / 433.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of Backend: time 2.4e-07/0.248, allocations: 0 / 433.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.2504, allocations: 0.9615 MB / 434.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of SimCode: time 0.001522/0.2519, allocations: 1.476 MB / 435.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of Templates: time 0.01598/0.2679, allocations: 10.74 MB / 446.3 MB, free: 12.82 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)