Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001804/0.001804, allocations: 182.4 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.628/1.628, allocations: 194.2 MB / 208.4 MB, free: 6.637 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001773/0.001773, allocations: 124.7 kB / 253.5 MB, free: 9.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.719e-05/2.721e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0766/0.07665, allocations: 44.5 MB / 349.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.275/0.3516, allocations: 76.31 MB / 425.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001648/0.3519, allocations: 67.28 kB / 425.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02337/0.3752, allocations: 9.925 MB / 435.7 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3753, allocations: 4 kB / 435.7 MB, free: 7.125 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3753, allocations: 7.812 kB / 435.7 MB, free: 7.121 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0007632/0.3761, allocations: 0.5932 MB / 436.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.3761, allocations: 7.719 kB / 436.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.3764, allocations: 58.12 kB / 436.4 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.3767, allocations: 279.8 kB / 436.7 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.793e-05/0.3768, allocations: 93.27 kB / 436.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.3768, allocations: 33.5 kB / 436.8 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.3773, allocations: 381.6 kB / 437.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3773, allocations: 0 / 437.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.3774, allocations: 13.88 kB / 437.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.3774, allocations: 7.625 kB / 437.2 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005181/0.3779, allocations: 418 kB / 437.6 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.3789, allocations: 0.9135 MB / 438.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.3794, allocations: 355.3 kB / 438.9 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.3797, allocations: 202.2 kB / 439.1 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.3797, allocations: 8.281 kB / 439.1 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.384e-05/0.3797, allocations: 42.42 kB / 439.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.593e-06/0.3797, allocations: 0 / 439.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.002019/0.3818, allocations: 1.538 MB / 440.6 MB, free: 4.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.3818, allocations: 85.36 kB / 440.7 MB, free: 4.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.382, allocations: 209.9 kB / 440.9 MB, free: 4.586 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.382, allocations: 41.19 kB / 441 MB, free: 4.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.3821, allocations: 131.8 kB / 441.1 MB, free: 4.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.278e-05/0.3821, allocations: 187.2 kB / 441.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.3822, allocations: 6.938 kB / 441.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.3822, allocations: 343.2 kB / 441.6 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.3825, allocations: 165.3 kB / 441.8 MB, free: 3.984 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.3827, allocations: 211.4 kB / 442 MB, free: 3.945 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.383, allocations: 162.6 kB / 442.2 MB, free: 3.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.383, allocations: 3.953 kB / 442.2 MB, free: 3.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006926/0.3837, allocations: 0.551 MB / 442.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3837, allocations: 7.984 kB / 442.7 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3837, allocations: 3.938 kB / 442.7 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005606/0.3843, allocations: 244.3 kB / 443 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.3846, allocations: 71.08 kB / 443 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.3872, allocations: 2.682 MB / 445.7 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.3875, allocations: 39 kB / 445.8 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.3876, allocations: 25.55 kB / 445.8 MB, free: 0.9961 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 9.123e-05/0.3877, allocations: 119.5 kB / 445.9 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.3877, allocations: 31.62 kB / 445.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-05/0.3878, allocations: 49.72 kB / 446 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3878, allocations: 4 kB / 446 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3878, allocations: 11.92 kB / 446 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3878, allocations: 3.953 kB / 446 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.3893, allocations: 1.192 MB / 447.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3893, allocations: 4 kB / 447.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.3896, allocations: 63.89 kB / 447.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005408/0.3902, allocations: 227.3 kB / 447.5 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.3902, allocations: 15.05 kB / 447.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002914/0.3931, allocations: 2.582 MB / 450.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3931, allocations: 4.062 kB / 450.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.3943, allocations: 0.8613 MB / 450.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3945, allocations: 156.2 kB / 451.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.182e-05/0.3945, allocations: 11.69 kB / 451.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.3948, allocations: 43.78 kB / 451.1 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.395, allocations: 84.12 kB / 451.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.395, allocations: 23.73 kB / 451.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001465/0.3952, allocations: 163.9 kB / 451.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3952, allocations: 0 / 451.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005734/0.3958, allocations: 166.3 kB / 451.6 MB, free: 12.25 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002164/0.396, allocations: 146.3 kB / 451.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000942/0.397, allocations: 0.6206 MB / 452.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.397, allocations: 0 / 452.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005737/0.3976, allocations: 448.5 kB / 452.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.3979, allocations: 28.48 kB / 452.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3989, allocations: 0.6104 MB / 453.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.3993, allocations: 0.801 MB / 454.2 MB, free: 9.902 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.3995, allocations: 66.94 kB / 454.3 MB, free: 9.836 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.3996, allocations: 30.92 kB / 454.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3996, allocations: 0 / 454.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of Templates: time 0.01083/0.4104, allocations: 6.819 MB / 461.1 MB, free: 3.012 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)