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.0009594/0.0009594, allocations: 166.6 kB / 7.636 MB, free: 1.418 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.517/1.517, allocations: 170.7 MB / 178.7 MB, free: 15.64 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.001466/0.001466, allocations: 111.5 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.174e-05/1.178e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0655/0.06553, allocations: 38.77 MB / 301 MB, free: 3.641 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.3153, allocations: 70.03 MB / 371 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001631/0.3155, allocations: 67.09 kB / 371.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02114/0.3367, allocations: 7.398 MB / 378.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3367, allocations: 0 / 378.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.826e-05/0.3368, allocations: 11.98 kB / 378.5 MB, free: 8.109 MB / 266.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.001706/0.3385, allocations: 0.693 MB / 379.2 MB, free: 7.402 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3385, allocations: 8.031 kB / 379.2 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000215/0.3388, allocations: 55.44 kB / 379.2 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.3393, allocations: 313.2 kB / 379.5 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.3394, allocations: 12 kB / 379.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.3395, allocations: 31.94 kB / 379.6 MB, free: 6.977 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008142/0.3403, allocations: 418.4 kB / 380 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007537/0.3411, allocations: 388.1 kB / 380.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.3411, allocations: 4 kB / 380.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.3412, allocations: 0 / 380.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.3412, allocations: 11.98 kB / 380.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.3435, allocations: 1.09 MB / 381.5 MB, free: 5.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006228/0.3441, allocations: 350.6 kB / 381.8 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.3445, allocations: 239.2 kB / 382.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.135e-05/0.3446, allocations: 4.438 kB / 382.1 MB, free: 5.094 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.081e-05/0.3446, allocations: 34.62 kB / 382.1 MB, free: 5.051 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.853e-06/0.3446, allocations: 4 kB / 382.1 MB, free: 5.047 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.003343/0.348, allocations: 1.643 MB / 383.7 MB, free: 3.602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.348, allocations: 67.89 kB / 383.8 MB, free: 3.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.3483, allocations: 211.8 kB / 384 MB, free: 3.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.3484, allocations: 37.06 kB / 384 MB, free: 3.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3485, allocations: 184.4 kB / 384.2 MB, free: 3.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.3487, allocations: 182.8 kB / 384.4 MB, free: 3.004 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.3487, allocations: 3.984 kB / 384.4 MB, free: 3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3489, allocations: 351.8 kB / 384.8 MB, free: 2.664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.3492, allocations: 206.6 kB / 385 MB, free: 2.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.3495, allocations: 250.5 kB / 385.2 MB, free: 2.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3499, allocations: 180.7 kB / 385.4 MB, free: 2.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3499, allocations: 0 / 385.4 MB, free: 2.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001531/0.3514, allocations: 0.8016 MB / 386.2 MB, free: 1.609 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3515, allocations: 7.906 kB / 386.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3515, allocations: 0 / 386.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008101/0.3523, allocations: 0.5226 MB / 386.7 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/0.3527, allocations: 98.41 kB / 386.8 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.354, allocations: 1.424 MB / 388.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005322/0.3546, allocations: 100 kB / 388.3 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/0.3546, allocations: 26.86 kB / 388.4 MB, free: 15.62 MB / 282.7 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): 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.0001841/0.3548, allocations: 121.5 kB / 388.5 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.346e-05/0.3549, allocations: 39.56 kB / 388.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.3551, allocations: 52.23 kB / 388.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.3551, allocations: 8 kB / 388.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3551, allocations: 0 / 388.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3551, allocations: 4 kB / 388.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.3579, allocations: 1.427 MB / 390 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3579, allocations: 4 kB / 390 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.3583, allocations: 83.02 kB / 390.1 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007953/0.3591, allocations: 0.4912 MB / 390.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.786e-05/0.3592, allocations: 19.78 kB / 390.6 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3605, allocations: 1.393 MB / 392 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3605, allocations: 4.031 kB / 392 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3622, allocations: 1.094 MB / 393.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.3624, allocations: 168.2 kB / 393.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/0.3625, allocations: 7.562 kB / 393.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.363, allocations: 71.94 kB / 393.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.3632, allocations: 118.3 kB / 393.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.93e-05/0.3633, allocations: 30.91 kB / 393.5 MB, free: 11.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.3635, allocations: 166.4 kB / 393.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3635, allocations: 0 / 393.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005329/0.364, allocations: 112 kB / 393.7 MB, free: 10.86 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.0002578/0.3643, allocations: 135.8 kB / 393.9 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009199/0.3652, allocations: 0.5113 MB / 394.4 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3652, allocations: 0 / 394.4 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.3658, allocations: 291.8 kB / 394.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.3662, allocations: 46.98 kB / 394.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.3695, allocations: 1.305 MB / 396 MB, free: 8.867 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.37, allocations: 0.8319 MB / 396.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.3702, allocations: 43.25 kB / 396.9 MB, free: 7.969 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.189e-05/0.3703, allocations: 27.44 kB / 396.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3703, allocations: 0 / 396.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of Templates: time 0.01266/0.383, allocations: 7.762 MB / 404.7 MB, free: 192 kB / 282.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)