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.001678/0.001678, allocations: 112.1 kB / 17.06 MB, free: 5.969 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.002223/0.002223, allocations: 200 kB / 18.01 MB, free: 5.055 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.574/1.574, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001247/0.001247, allocations: 43.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.09958, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004338/0.104, allocations: 3.023 MB / 377.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1059, allocations: 0.9785 MB / 378.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.1062, allocations: 11.94 kB / 378.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002771/0.1066, allocations: 67.31 kB / 378.6 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.107, allocations: 130.9 kB / 378.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.1076, allocations: 223.6 kB / 378.9 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1996/0.3072, allocations: 0.6284 MB / 379.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.3076, allocations: 134.4 kB / 379.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003748/0.3079, allocations: 277.4 kB / 379.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003283/0.3083, allocations: 302.9 kB / 380.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.415e-05/0.3084, allocations: 50.03 kB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.3086, allocations: 97.75 kB / 380.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.3087, allocations: 121.8 kB / 380.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.3089, allocations: 255 kB / 380.7 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007646/0.3097, allocations: 0.5936 MB / 381.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3097, allocations: 0.5938 kB / 381.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3097, allocations: 0 / 381.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3097, allocations: 1.25 kB / 381.3 MB, free: 9.559 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.001423/0.3111, allocations: 0.7814 MB / 382.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3112, allocations: 9.188 kB / 382.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.3113, allocations: 50.31 kB / 382.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.3118, allocations: 330.6 kB / 382.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.3118, allocations: 29.88 kB / 382.5 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.3119, allocations: 46.25 kB / 382.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008567/0.3127, allocations: 476.2 kB / 383 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.3128, allocations: 7.406 kB / 383 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.3128, allocations: 17.69 kB / 383.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3128, allocations: 13.06 kB / 383.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000898/0.3137, allocations: 479.3 kB / 383.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.3156, allocations: 1.115 MB / 384.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007151/0.3163, allocations: 395.9 kB / 385 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004686/0.3168, allocations: 265 kB / 385.3 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.3169, allocations: 10.28 kB / 385.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.3169, allocations: 39.97 kB / 385.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.754e-06/0.3169, allocations: 0 / 385.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004789/0.3217, allocations: 2.335 MB / 387.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.3218, allocations: 59.19 kB / 387.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003133/0.3221, allocations: 285.6 kB / 388 MB, free: 6.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.878e-05/0.3221, allocations: 41.58 kB / 388.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.3222, allocations: 185.9 kB / 388.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3224, allocations: 191.9 kB / 388.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.3226, allocations: 110.7 kB / 388.5 MB, free: 6.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.3227, allocations: 347.3 kB / 388.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.3231, allocations: 243.5 kB / 389.1 MB, free: 5.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.3236, allocations: 288.9 kB / 389.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007093/0.3243, allocations: 417.6 kB / 389.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3244, allocations: 2.875 kB / 389.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001513/0.3259, allocations: 0.7846 MB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3259, allocations: 5.766 kB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3259, allocations: 1.156 kB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008458/0.3268, allocations: 0.499 MB / 391.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.3271, allocations: 89.47 kB / 391.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.3282, allocations: 1.413 MB / 392.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.3287, allocations: 74.73 kB / 392.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.3287, allocations: 19.14 kB / 392.7 MB, free: 3.793 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.0001788/0.3289, allocations: 177.8 kB / 392.9 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.329, allocations: 39.73 kB / 392.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.3291, allocations: 58.92 kB / 393 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.3292, allocations: 6.5 kB / 393 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3292, allocations: 96 / 393 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.3292, allocations: 11.67 kB / 393 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.3318, allocations: 1.453 MB / 394.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3318, allocations: 4.422 kB / 394.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.3321, allocations: 89.03 kB / 394.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007344/0.3329, allocations: 476.4 kB / 395 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.3329, allocations: 25.66 kB / 395 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000918/0.3339, allocations: 1.37 MB / 396.4 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3339, allocations: 5.359 kB / 396.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.3357, allocations: 1.086 MB / 397.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3359, allocations: 172.4 kB / 397.7 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.679e-05/0.336, allocations: 17.78 kB / 397.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.3364, allocations: 64.7 kB / 397.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.3366, allocations: 95.58 kB / 397.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.3367, allocations: 22.7 kB / 397.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.3369, allocations: 202.2 kB / 398 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3369, allocations: 1.375 kB / 398 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005152/0.3374, allocations: 134.9 kB / 398.2 MB, free: 0.7148 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.0001999/0.3376, allocations: 135.9 kB / 398.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.3388, allocations: 0.5898 MB / 398.9 MB, free: 440 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3388, allocations: 5.625 kB / 398.9 MB, free: 436 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.3395, allocations: 345.8 kB / 399.2 MB, free: 332 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.34, allocations: 75.64 kB / 399.3 MB, free: 304 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.3436, allocations: 1.444 MB / 400.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.344, allocations: 0.8161 MB / 401.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001735/0.3442, allocations: 39.03 kB / 401.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.923e-05/0.3443, allocations: 37.61 kB / 401.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3443, allocations: 0 / 401.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of Templates: time 0.01704/0.3613, allocations: 10.44 MB / 412.1 MB, free: 8.566 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)