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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 105 kB / 17.06 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 194.9 kB / 18 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 55.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 46.62 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.006723/0.1116, allocations: 3.031 MB / 377.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1138, allocations: 0.9824 MB / 378.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.1141, allocations: 7.938 kB / 378.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.1144, allocations: 63.38 kB / 378.6 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.1147, allocations: 134.8 kB / 378.7 MB, free: 328 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006756/0.1153, allocations: 215.6 kB / 378.9 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2261/0.3414, allocations: 0.6286 MB / 379.5 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.3418, allocations: 138.8 kB / 379.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000475/0.3423, allocations: 273.2 kB / 379.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003686/0.3427, allocations: 302.5 kB / 380.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.338e-05/0.3428, allocations: 48.72 kB / 380.3 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.343, allocations: 98.78 kB / 380.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.3432, allocations: 127.1 kB / 380.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.3434, allocations: 247.1 kB / 380.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008512/0.3443, allocations: 0.597 MB / 381.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3443, allocations: 0.6562 kB / 381.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3443, allocations: 0 / 381.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.3443, allocations: 0.5 kB / 381.3 MB, free: 9.562 MB / 318.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.001563/0.3459, allocations: 0.7833 MB / 382.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.346, allocations: 9.188 kB / 382.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3461, allocations: 49.48 kB / 382.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.3466, allocations: 330.2 kB / 382.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.3467, allocations: 35.69 kB / 382.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.096e-05/0.3468, allocations: 45.17 kB / 382.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009562/0.3477, allocations: 471.6 kB / 383 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/0.3478, allocations: 7.672 kB / 383 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.765e-05/0.3479, allocations: 15.92 kB / 383.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.3479, allocations: 12 kB / 383.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.349, allocations: 483.8 kB / 383.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.3516, allocations: 1.109 MB / 384.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.3526, allocations: 403.9 kB / 385 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/0.3532, allocations: 264.9 kB / 385.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.3533, allocations: 5.844 kB / 385.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.3533, allocations: 41.12 kB / 385.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.314e-06/0.3533, allocations: 1 kB / 385.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005357/0.3587, allocations: 2.337 MB / 387.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.3587, allocations: 58.27 kB / 387.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.359, allocations: 282.7 kB / 388 MB, free: 6.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.3591, allocations: 43.64 kB / 388.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3592, allocations: 186.9 kB / 388.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.3593, allocations: 190.5 kB / 388.4 MB, free: 6.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.3595, allocations: 107 kB / 388.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.3596, allocations: 351.2 kB / 388.9 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004732/0.3601, allocations: 242 kB / 389.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000507/0.3606, allocations: 293.7 kB / 389.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007412/0.3614, allocations: 413.4 kB / 389.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3614, allocations: 1.875 kB / 389.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001594/0.363, allocations: 0.7866 MB / 390.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.363, allocations: 5.188 kB / 390.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.363, allocations: 1.281 kB / 390.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008658/0.3639, allocations: 0.4984 MB / 391.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.3643, allocations: 89.67 kB / 391.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.3654, allocations: 1.41 MB / 392.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.366, allocations: 78.62 kB / 392.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.366, allocations: 18.94 kB / 392.7 MB, free: 3.785 MB / 318.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002303/0.3662, allocations: 179.5 kB / 392.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.3663, allocations: 43.84 kB / 392.9 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3665, allocations: 60.19 kB / 393 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3665, allocations: 5.625 kB / 393 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.3665, allocations: 0 / 393 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.3665, allocations: 2.812 kB / 393 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.3696, allocations: 1.452 MB / 394.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.3696, allocations: 1.312 kB / 394.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003831/0.37, allocations: 91.12 kB / 394.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008116/0.3708, allocations: 482.5 kB / 395 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.3709, allocations: 21.42 kB / 395 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.372, allocations: 1.372 MB / 396.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.372, allocations: 2.375 kB / 396.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.3739, allocations: 1.09 MB / 397.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.3741, allocations: 164.6 kB / 397.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-05/0.3742, allocations: 20.91 kB / 397.7 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.3747, allocations: 64.84 kB / 397.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/0.3749, allocations: 94.05 kB / 397.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.375, allocations: 30.33 kB / 397.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002264/0.3752, allocations: 202.1 kB / 398 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3752, allocations: 0 / 398 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006316/0.3759, allocations: 131.7 kB / 398.2 MB, free: 0.7109 MB / 318.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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002559/0.3761, allocations: 143.2 kB / 398.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.3774, allocations: 0.5889 MB / 398.9 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3775, allocations: 0 / 398.9 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007084/0.3782, allocations: 354.5 kB / 399.2 MB, free: 324 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.3788, allocations: 74.59 kB / 399.3 MB, free: 292 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.3834, allocations: 1.436 MB / 400.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005578/0.384, allocations: 0.8149 MB / 401.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002214/0.3842, allocations: 44.95 kB / 401.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3844, allocations: 36.94 kB / 401.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3844, allocations: 0 / 401.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of Templates: time 0.01609/0.4005, allocations: 10.04 MB / 411.7 MB, free: 8.969 MB / 334.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)