Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001146/0.001147, allocations: 182.3 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.506/1.506, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.001734/0.001734, allocations: 132.6 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.839e-05/2.842e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07829/0.07834, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.3821, allocations: 76.02 MB / 425.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.3824, allocations: 80.12 kB / 425.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01921/0.4016, allocations: 7.485 MB / 433 MB, free: 7.918 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4017, allocations: 0 / 433 MB, free: 7.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.4017, allocations: 15.53 kB / 433 MB, free: 7.914 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.001049/0.4027, allocations: 0.6835 MB / 433.7 MB, free: 7.387 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.4028, allocations: 11.69 kB / 433.7 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.341e-05/0.4029, allocations: 54.47 kB / 433.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.4032, allocations: 315.1 kB / 434.1 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.4033, allocations: 26.69 kB / 434.1 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-05/0.4033, allocations: 39.72 kB / 434.2 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.404, allocations: 425.9 kB / 434.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.404, allocations: 11 kB / 434.6 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.4041, allocations: 10.5 kB / 434.6 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4041, allocations: 11.34 kB / 434.6 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005873/0.4047, allocations: 395.4 kB / 435 MB, free: 6.922 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.4065, allocations: 1.162 MB / 436.1 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.4071, allocations: 372.7 kB / 436.5 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.4075, allocations: 242.5 kB / 436.7 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.778e-05/0.4076, allocations: 12.08 kB / 436.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.4076, allocations: 38.47 kB / 436.8 MB, free: 6.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.855e-06/0.4076, allocations: 0 / 436.8 MB, free: 6.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.002547/0.4101, allocations: 1.643 MB / 438.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.4102, allocations: 59.81 kB / 438.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.4104, allocations: 232.1 kB / 438.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.4105, allocations: 40.36 kB / 438.8 MB, free: 5.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.932e-05/0.4105, allocations: 182.7 kB / 438.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.4107, allocations: 197.1 kB / 439.1 MB, free: 4.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.4107, allocations: 14.16 kB / 439.2 MB, free: 4.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.161e-05/0.4108, allocations: 344.7 kB / 439.5 MB, free: 4.641 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.4111, allocations: 197.7 kB / 439.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.4114, allocations: 252.7 kB / 439.9 MB, free: 4.594 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.4116, allocations: 164 kB / 440.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4116, allocations: 0 / 440.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001304/0.413, allocations: 0.6843 MB / 440.8 MB, free: 4.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.413, allocations: 7.688 kB / 440.8 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.413, allocations: 3.984 kB / 440.8 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006543/0.4137, allocations: 390.2 kB / 441.2 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.414, allocations: 92.27 kB / 441.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000828/0.4148, allocations: 1.319 MB / 442.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005109/0.4154, allocations: 107.4 kB / 442.7 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/0.4154, allocations: 19.03 kB / 442.7 MB, free: 3.168 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: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.4156, allocations: 140.3 kB / 442.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/0.4157, allocations: 42.81 kB / 442.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.4169, allocations: 0.6884 MB / 443.6 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.4169, allocations: 7.984 kB / 443.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4169, allocations: 4 kB / 443.6 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4169, allocations: 7.922 kB / 443.6 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.4189, allocations: 1.356 MB / 444.9 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.419, allocations: 0 / 444.9 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.4193, allocations: 91.98 kB / 445 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005292/0.4198, allocations: 365.3 kB / 445.4 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.259e-05/0.4199, allocations: 23.59 kB / 445.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007807/0.4207, allocations: 1.295 MB / 446.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.4207, allocations: 8.156 kB / 446.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.4222, allocations: 0.9985 MB / 447.7 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.4224, allocations: 163.7 kB / 447.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.597e-05/0.4225, allocations: 21.44 kB / 447.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.4229, allocations: 85.98 kB / 448 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.4231, allocations: 107 kB / 448.1 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.082e-05/0.4232, allocations: 29.84 kB / 448.1 MB, free: 14.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001747/0.4233, allocations: 191.1 kB / 448.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4234, allocations: 4 kB / 448.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004724/0.4238, allocations: 129.7 kB / 448.4 MB, free: 14.36 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000257/0.4241, allocations: 157.8 kB / 448.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009513/0.4251, allocations: 0.5609 MB / 449.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4251, allocations: 0 / 449.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005396/0.4256, allocations: 301.9 kB / 449.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.4261, allocations: 73.08 kB / 449.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.4295, allocations: 1.312 MB / 450.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.4299, allocations: 0.8316 MB / 451.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.4301, allocations: 35.28 kB / 451.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.4302, allocations: 35.42 kB / 451.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.4302, allocations: 0 / 451.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of Templates: time 0.01345/0.4437, allocations: 8.455 MB / 460.2 MB, free: 2.914 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)