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.00107/0.00107, allocations: 107.1 kB / 18.46 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 207.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 59.89 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2059, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003839/0.2097, allocations: 2.851 MB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.2116, allocations: 1.279 MB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.2118, allocations: 7.938 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.2121, allocations: 79.3 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004644/0.2125, allocations: 226 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.213, allocations: 247.5 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006493/0.2137, allocations: 0.7133 MB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.2139, allocations: 127.4 kB / 415.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.2143, allocations: 327.1 kB / 415.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004185/0.2147, allocations: 382.8 kB / 416.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.685e-05/0.2148, allocations: 56 kB / 416.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000254/0.2151, allocations: 152 kB / 416.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.2152, allocations: 163.5 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.2155, allocations: 270.7 kB / 416.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006414/0.2162, allocations: 0.7099 MB / 417.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2162, allocations: 0 / 417.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2162, allocations: 0 / 417.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2162, allocations: 0 / 417.5 MB, free: 10.03 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.0016/0.2178, allocations: 0.8576 MB / 418.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.2178, allocations: 8.031 kB / 418.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004391/0.2183, allocations: 76.34 kB / 418.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005503/0.2188, allocations: 366.4 kB / 418.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.219, allocations: 96.95 kB / 418.9 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.698e-05/0.2191, allocations: 40.38 kB / 418.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.2202, allocations: 0.5605 MB / 419.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.2202, allocations: 11.89 kB / 419.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.963e-05/0.2203, allocations: 16 kB / 419.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2203, allocations: 8 kB / 419.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.2216, allocations: 0.6089 MB / 420.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.2241, allocations: 1.314 MB / 421.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.2252, allocations: 0.517 MB / 421.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006294/0.2259, allocations: 306.4 kB / 422.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.4e-05/0.2259, allocations: 12.5 kB / 422.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.226, allocations: 43.31 kB / 422.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 1.993e-06/0.226, allocations: 3.938 kB / 422.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.006916/0.2329, allocations: 2.734 MB / 425 MB, free: 2.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.2329, allocations: 85.66 kB / 425.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.2334, allocations: 363.1 kB / 425.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.513e-05/0.2334, allocations: 41.7 kB / 425.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.938e-05/0.2336, allocations: 157.6 kB / 425.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.2337, allocations: 232.7 kB / 425.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.234, allocations: 130.2 kB / 426 MB, free: 1.121 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2341, allocations: 346.8 kB / 426.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.2347, allocations: 269.2 kB / 426.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006623/0.2354, allocations: 334.5 kB / 426.9 MB, free: 176 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2365, allocations: 495.2 kB / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2365, allocations: 0 / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001802/0.2383, allocations: 0.8411 MB / 428.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2383, allocations: 8 kB / 428.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2384, allocations: 4.031 kB / 428.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.2394, allocations: 441.3 kB / 428.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.2398, allocations: 87.88 kB / 428.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.2411, allocations: 1.021 MB / 429.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.2416, allocations: 63.91 kB / 429.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.89e-05/0.2417, allocations: 23.98 kB / 429.9 MB, free: 13.16 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.0002264/0.2419, allocations: 189.6 kB / 430.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.242, allocations: 43.44 kB / 430.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.2422, allocations: 67.92 kB / 430.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.2422, allocations: 7.984 kB / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2422, allocations: 0 / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.2425, allocations: 188.5 kB / 430.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.2426, allocations: 19.94 kB / 430.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005178/0.2431, allocations: 59.92 kB / 430.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.2433, allocations: 88.42 kB / 430.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002695/0.246, allocations: 0.9518 MB / 431.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002128/0.2481, allocations: 1.112 MB / 432.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006141/0.2488, allocations: 280.3 kB / 432.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002942/0.2491, allocations: 257.9 kB / 433.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of Backend: time 3.21e-07/0.2491, allocations: 0 / 433.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.2516, allocations: 0.9685 MB / 434.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of SimCode: time 0.001608/0.2532, allocations: 1.488 MB / 435.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of Templates: time 0.01571/0.2689, allocations: 10.73 MB / 446.3 MB, free: 12.83 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)