Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001302/0.001302, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.359/1.359, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001523/0.001523, allocations: 110.2 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.238e-05/2.24e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07344/0.07347, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3707, allocations: 70.69 MB / 378.3 MB, free: 5.559 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.371, allocations: 70.16 kB / 378.4 MB, free: 5.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02093/0.3919, allocations: 7.449 MB / 385.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.392, allocations: 0 / 385.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.392, allocations: 8 kB / 385.8 MB, free: 15.11 MB / 282.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.001251/0.3933, allocations: 0.7006 MB / 386.5 MB, free: 14.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.3933, allocations: 8.031 kB / 386.6 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.3935, allocations: 51.38 kB / 386.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.3939, allocations: 313.1 kB / 386.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.3939, allocations: 31.91 kB / 386.9 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.405e-05/0.394, allocations: 47.19 kB / 387 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.3948, allocations: 447.8 kB / 387.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.3948, allocations: 7.031 kB / 387.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.3948, allocations: 14.06 kB / 387.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3949, allocations: 8 kB / 387.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007051/0.3956, allocations: 437.8 kB / 387.9 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.3976, allocations: 1.149 MB / 389 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007913/0.3985, allocations: 373.6 kB / 389.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006227/0.3991, allocations: 244.3 kB / 389.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.694e-05/0.3992, allocations: 8.422 kB / 389.6 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.3992, allocations: 38.5 kB / 389.7 MB, free: 11.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 1.733e-06/0.3992, allocations: 0 / 389.7 MB, free: 11.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.003321/0.4025, allocations: 1.749 MB / 391.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4026, allocations: 59.97 kB / 391.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.4029, allocations: 246 kB / 391.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.403, allocations: 44.2 kB / 391.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4031, allocations: 188.8 kB / 392 MB, free: 9.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.4032, allocations: 196.8 kB / 392.1 MB, free: 9.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.4033, allocations: 9.875 kB / 392.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4034, allocations: 355.2 kB / 392.5 MB, free: 9.438 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.4038, allocations: 225.4 kB / 392.7 MB, free: 9.297 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.4042, allocations: 263.4 kB / 393 MB, free: 9.121 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.4045, allocations: 184.6 kB / 393.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.4045, allocations: 0 / 393.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001973/0.4065, allocations: 0.8497 MB / 394 MB, free: 8.328 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.4066, allocations: 4 kB / 394 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4066, allocations: 3.953 kB / 394 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009435/0.4075, allocations: 0.5152 MB / 394.5 MB, free: 7.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.4079, allocations: 103.5 kB / 394.6 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/0.4092, allocations: 1.377 MB / 396 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.4098, allocations: 109.2 kB / 396.1 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.28e-05/0.4099, allocations: 26.3 kB / 396.1 MB, free: 6.379 MB / 282.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): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.41, allocations: 132.4 kB / 396.3 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-05/0.4101, allocations: 41.78 kB / 396.3 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.4103, allocations: 54.27 kB / 396.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4103, allocations: 8 kB / 396.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4103, allocations: 0 / 396.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4103, allocations: 7.984 kB / 396.4 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.4129, allocations: 1.524 MB / 397.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.413, allocations: 0 / 397.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/0.4133, allocations: 87.08 kB / 398 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007818/0.4141, allocations: 0.5015 MB / 398.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.4142, allocations: 27.34 kB / 398.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.4153, allocations: 1.353 MB / 399.9 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4153, allocations: 7.984 kB / 399.9 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.417, allocations: 1.131 MB / 401 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002529/0.4173, allocations: 169.4 kB / 401.2 MB, free: 1.977 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.081e-05/0.4174, allocations: 21.62 kB / 401.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.4178, allocations: 79.23 kB / 401.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.4181, allocations: 116.8 kB / 401.4 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.4181, allocations: 23.67 kB / 401.4 MB, free: 1.777 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001962/0.4183, allocations: 196.6 kB / 401.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4183, allocations: 0 / 401.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005026/0.4188, allocations: 133.5 kB / 401.7 MB, free: 1.5 MB / 282.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.0002407/0.4191, allocations: 146 kB / 401.9 MB, free: 1.359 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009366/0.42, allocations: 0.526 MB / 402.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.42, allocations: 0 / 402.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.4206, allocations: 309.9 kB / 402.7 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.4211, allocations: 75.11 kB / 402.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.4243, allocations: 1.329 MB / 404.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.4247, allocations: 0.8321 MB / 404.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.4249, allocations: 43.25 kB / 405 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.508e-05/0.425, allocations: 31.44 kB / 405 MB, free: 14.53 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.425, allocations: 0 / 405 MB, free: 14.53 MB / 298.7 MB Notification: Performance of Templates: time 0.01292/0.438, allocations: 8.149 MB / 413.2 MB, free: 6.395 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)