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.001847/0.001847, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.564/1.564, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001682/0.001682, allocations: 115.9 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.914e-05/1.925e-05, allocations: 4 kB / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09631, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.4318, allocations: 75.35 MB / 417.9 MB, free: 20.47 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4321, allocations: 73.95 kB / 418 MB, free: 20.43 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02001/0.4521, allocations: 7.445 MB / 425.4 MB, free: 14.2 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4522, allocations: 0 / 425.4 MB, free: 14.2 MB / 315.1 MB Notification: Performance of Transformations before backend: time 7.279e-05/0.4523, allocations: 19.98 kB / 425.5 MB, free: 14.18 MB / 315.1 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.002029/0.4543, allocations: 0.6802 MB / 426.1 MB, free: 13.49 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.4544, allocations: 12.03 kB / 426.2 MB, free: 13.48 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.4546, allocations: 49.16 kB / 426.2 MB, free: 13.43 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.4553, allocations: 312.8 kB / 426.5 MB, free: 13.12 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.4553, allocations: 12 kB / 426.5 MB, free: 13.11 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.4555, allocations: 27.88 kB / 426.5 MB, free: 13.08 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009865/0.4565, allocations: 378.5 kB / 426.9 MB, free: 12.83 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009545/0.4575, allocations: 365.6 kB / 427.3 MB, free: 12.57 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.4575, allocations: 4.656 kB / 427.3 MB, free: 12.56 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.47e-05/0.4576, allocations: 0 / 427.3 MB, free: 12.56 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.4576, allocations: 15.98 kB / 427.3 MB, free: 12.55 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.4606, allocations: 1.074 MB / 428.4 MB, free: 11.64 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009162/0.4616, allocations: 356.1 kB / 428.7 MB, free: 11.41 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.4621, allocations: 221.6 kB / 428.9 MB, free: 11.27 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.44e-05/0.4622, allocations: 4.438 kB / 428.9 MB, free: 11.27 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.4622, allocations: 47.5 kB / 429 MB, free: 11.21 MB / 315.1 MB Notification: Performance of pre-optimization done (n=52): time 3.877e-06/0.4622, allocations: 0.6562 kB / 429 MB, free: 11.21 MB / 315.1 MB Notification: Performance of matching and sorting (n=58): time 0.004816/0.4671, allocations: 1.563 MB / 430.5 MB, free: 9.844 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.4671, allocations: 59.97 kB / 430.6 MB, free: 9.773 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.4674, allocations: 205.6 kB / 430.8 MB, free: 9.602 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.4675, allocations: 33.14 kB / 430.8 MB, free: 9.566 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4677, allocations: 175.3 kB / 431 MB, free: 9.422 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.4679, allocations: 199.5 kB / 431.2 MB, free: 9.254 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.4679, allocations: 4.656 kB / 431.2 MB, free: 9.254 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 7.869e-05/0.468, allocations: 345.1 kB / 431.5 MB, free: 8.922 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.4684, allocations: 182.4 kB / 431.7 MB, free: 8.82 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.4689, allocations: 231.2 kB / 431.9 MB, free: 8.676 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/0.4695, allocations: 169.1 kB / 432.1 MB, free: 8.562 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4695, allocations: 0 / 432.1 MB, free: 8.562 MB / 315.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00199/0.4715, allocations: 0.6508 MB / 432.8 MB, free: 8.062 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.4715, allocations: 4 kB / 432.8 MB, free: 8.059 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/0.4716, allocations: 6.422 kB / 432.8 MB, free: 8.055 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4726, allocations: 382.3 kB / 433.1 MB, free: 7.762 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.4731, allocations: 87.83 kB / 433.2 MB, free: 7.68 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.4747, allocations: 1.382 MB / 434.6 MB, free: 6.383 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008149/0.4756, allocations: 87.97 kB / 434.7 MB, free: 6.297 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.499e-05/0.4757, allocations: 19.88 kB / 434.7 MB, free: 6.281 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002887/0.476, allocations: 128.4 kB / 434.8 MB, free: 6.152 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.4762, allocations: 35.53 kB / 434.9 MB, free: 6.117 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/0.4782, allocations: 0.6523 MB / 435.5 MB, free: 5.625 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.4783, allocations: 12 kB / 435.5 MB, free: 5.613 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4783, allocations: 0 / 435.5 MB, free: 5.613 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.4783, allocations: 0 / 435.5 MB, free: 5.613 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003664/0.482, allocations: 1.26 MB / 436.8 MB, free: 4.559 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.482, allocations: 0 / 436.8 MB, free: 4.559 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.4826, allocations: 95.42 kB / 436.9 MB, free: 4.469 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009294/0.4835, allocations: 367 kB / 437.3 MB, free: 4.18 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/0.4836, allocations: 15.34 kB / 437.3 MB, free: 4.168 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001468/0.4851, allocations: 1.337 MB / 438.6 MB, free: 2.895 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.4851, allocations: 7.891 kB / 438.6 MB, free: 2.887 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.4874, allocations: 0.9638 MB / 439.6 MB, free: 2.102 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.4878, allocations: 157.4 kB / 439.7 MB, free: 1.949 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.4879, allocations: 18.67 kB / 439.8 MB, free: 1.938 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007427/0.4887, allocations: 67.94 kB / 439.8 MB, free: 1.871 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.489, allocations: 116.9 kB / 439.9 MB, free: 1.77 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-05/0.4891, allocations: 31.81 kB / 440 MB, free: 1.746 MB / 315.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.4893, allocations: 164 kB / 440.1 MB, free: 1.613 MB / 315.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4893, allocations: 0 / 440.1 MB, free: 1.613 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0009295/0.4902, allocations: 119.9 kB / 440.2 MB, free: 1.496 MB / 315.1 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.0004203/0.4907, allocations: 136 kB / 440.4 MB, free: 1.359 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.4921, allocations: 0.5365 MB / 440.9 MB, free: 0.9688 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4921, allocations: 0 / 440.9 MB, free: 0.9688 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007608/0.4929, allocations: 291.8 kB / 441.2 MB, free: 0.7734 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006945/0.4936, allocations: 56.83 kB / 441.3 MB, free: 0.7305 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.4986, allocations: 1.287 MB / 442.5 MB, free: 15.49 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.4993, allocations: 0.8325 MB / 443.4 MB, free: 14.62 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.4996, allocations: 31.27 kB / 443.4 MB, free: 14.59 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.4998, allocations: 39.23 kB / 443.4 MB, free: 14.56 MB / 331.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4998, allocations: 0 / 443.4 MB, free: 14.56 MB / 331.1 MB Notification: Performance of Templates: time 0.0221/0.5219, allocations: 8.069 MB / 451.5 MB, free: 6.562 MB / 331.1 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)