Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001311/0.001311, allocations: 156.1 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.477/1.477, allocations: 170.7 MB / 178.7 MB, free: 7.039 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001577/0.001577, allocations: 102.8 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.758e-05, allocations: 4 kB / 262.2 MB, free: 3.066 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2005, allocations: 38.77 MB / 301 MB, free: 39.13 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07636/0.277, allocations: 71.87 MB / 372.8 MB, free: 7.766 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.2772, allocations: 71.97 kB / 372.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03352/0.3107, allocations: 11.84 MB / 384.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3108, allocations: 4 kB / 384.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.15e-05/0.3108, allocations: 8 kB / 384.8 MB, free: 11.91 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001389/0.3122, allocations: 0.7128 MB / 385.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3123, allocations: 12.03 kB / 385.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003436/0.3126, allocations: 60.3 kB / 385.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.3131, allocations: 337.3 kB / 385.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.3132, allocations: 89.34 kB / 386 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.71e-05/0.3133, allocations: 24 kB / 386 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009089/0.3142, allocations: 0.5637 MB / 386.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007684/0.315, allocations: 489.1 kB / 387 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.315, allocations: 4 kB / 387 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.3151, allocations: 0 / 387 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3151, allocations: 12 kB / 387.1 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.3171, allocations: 1.146 MB / 388.2 MB, free: 8.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.3179, allocations: 480.4 kB / 388.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/0.3183, allocations: 274.5 kB / 388.9 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.3184, allocations: 10.06 kB / 388.9 MB, free: 7.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.3184, allocations: 39.12 kB / 389 MB, free: 7.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 2.274e-06/0.3184, allocations: 0 / 389 MB, free: 7.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.003621/0.3221, allocations: 1.916 MB / 390.9 MB, free: 5.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.3221, allocations: 85.67 kB / 391 MB, free: 5.414 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.3224, allocations: 238 kB / 391.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.3225, allocations: 29.7 kB / 391.2 MB, free: 5.133 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3226, allocations: 165.5 kB / 391.4 MB, free: 4.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.3227, allocations: 212.8 kB / 391.6 MB, free: 4.758 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.3228, allocations: 12 kB / 391.6 MB, free: 4.746 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3229, allocations: 342.8 kB / 392 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.3233, allocations: 245.5 kB / 392.2 MB, free: 4.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.3237, allocations: 302.4 kB / 392.5 MB, free: 3.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004878/0.3242, allocations: 240.4 kB / 392.7 MB, free: 3.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3242, allocations: 0 / 392.7 MB, free: 3.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001338/0.3256, allocations: 0.7904 MB / 393.5 MB, free: 2.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.3256, allocations: 6.156 kB / 393.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3256, allocations: 0 / 393.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.3267, allocations: 0.5182 MB / 394 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.327, allocations: 99.8 kB / 394.1 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.3284, allocations: 1.126 MB / 395.3 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.3289, allocations: 72.02 kB / 395.3 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.504e-05/0.329, allocations: 33.86 kB / 395.4 MB, free: 0.9453 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.3293, allocations: 120.8 kB / 395.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.463e-05/0.3294, allocations: 39.53 kB / 395.5 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.3295, allocations: 60.05 kB / 395.6 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3295, allocations: 8 kB / 395.6 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3295, allocations: 0 / 395.6 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3296, allocations: 3.984 kB / 395.6 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/0.3325, allocations: 1.645 MB / 397.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.3325, allocations: 0.875 kB / 397.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.3329, allocations: 79.88 kB / 397.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009366/0.3338, allocations: 0.501 MB / 397.8 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.3339, allocations: 15.97 kB / 397.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3351, allocations: 1.084 MB / 398.9 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3351, allocations: 4.031 kB / 398.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.337, allocations: 1.206 MB / 400.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002339/0.3373, allocations: 188.6 kB / 400.3 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-05/0.3374, allocations: 8 kB / 400.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.3378, allocations: 61.44 kB / 400.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.338, allocations: 108.2 kB / 400.5 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.3381, allocations: 31.98 kB / 400.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001631/0.3382, allocations: 182 kB / 400.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3383, allocations: 4 kB / 400.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005092/0.3388, allocations: 136 kB / 400.8 MB, free: 11.35 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002878/0.3391, allocations: 155.6 kB / 401 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3401, allocations: 0.592 MB / 401.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3401, allocations: 7.938 kB / 401.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.3407, allocations: 333.9 kB / 401.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.341, allocations: 26.03 kB / 401.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.3432, allocations: 0.9404 MB / 402.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3436, allocations: 0.8366 MB / 403.7 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.3439, allocations: 67.25 kB / 403.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.3441, allocations: 39.41 kB / 403.8 MB, free: 8.309 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3441, allocations: 0 / 403.8 MB, free: 8.309 MB / 314.7 MB Notification: Performance of Templates: time 0.01363/0.3577, allocations: 8.152 MB / 412 MB, free: 224 kB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)