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.006213/0.006212, allocations: 165.5 kB / 15.11 MB, free: 5.973 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.246/1.246, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.001518/0.001518, allocations: 111.3 kB / 226.2 MB, free: 8.012 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002864, allocations: 8 kB / 274.1 MB, free: 8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1707, allocations: 38.77 MB / 312.9 MB, free: 24.28 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08835/0.2591, allocations: 70.78 MB / 383.7 MB, free: 1.387 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.2594, allocations: 79.95 kB / 383.7 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02143/0.2808, allocations: 7.474 MB / 391.2 MB, free: 9.812 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2809, allocations: 0 / 391.2 MB, free: 9.812 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.406e-05/0.2809, allocations: 8 kB / 391.2 MB, free: 9.805 MB / 298.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.001354/0.2823, allocations: 0.7307 MB / 392 MB, free: 9.027 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2823, allocations: 8.031 kB / 392 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2825, allocations: 59.34 kB / 392 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.2829, allocations: 306.2 kB / 392.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.283, allocations: 29 kB / 392.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.2831, allocations: 51.86 kB / 392.4 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008903/0.284, allocations: 478.3 kB / 392.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.284, allocations: 0 / 392.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.912e-05/0.2841, allocations: 16 kB / 392.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.2841, allocations: 12 kB / 392.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009491/0.2851, allocations: 495.6 kB / 393.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.2872, allocations: 1.156 MB / 394.5 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/0.288, allocations: 392.9 kB / 394.9 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.288, allocations: 4.438 kB / 394.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.2881, allocations: 46.94 kB / 395 MB, free: 5.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.884e-06/0.2881, allocations: 0 / 395 MB, free: 5.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004996/0.2931, allocations: 2.468 MB / 397.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.2931, allocations: 59.97 kB / 397.5 MB, free: 3.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.2934, allocations: 250.5 kB / 397.7 MB, free: 2.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.486e-05/0.2935, allocations: 45.69 kB / 397.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.2936, allocations: 181.3 kB / 398 MB, free: 2.746 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.2938, allocations: 197.3 kB / 398.2 MB, free: 2.551 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.2938, allocations: 12 kB / 398.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.294, allocations: 350.8 kB / 398.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.2944, allocations: 249.2 kB / 398.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.2949, allocations: 296.7 kB / 399 MB, free: 1.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.2953, allocations: 203.2 kB / 399.2 MB, free: 1.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2953, allocations: 4 kB / 399.2 MB, free: 1.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001746/0.2971, allocations: 0.8925 MB / 400.1 MB, free: 0.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2971, allocations: 4 kB / 400.1 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2971, allocations: 0 / 400.1 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008921/0.298, allocations: 0.5285 MB / 400.7 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1784/0.4765, allocations: 90.28 kB / 400.8 MB, free: 78.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.478, allocations: 1.383 MB / 402.1 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.4787, allocations: 102.1 kB / 402.2 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.013e-05/0.4788, allocations: 28.8 kB / 402.3 MB, free: 77 MB / 298.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 () * Number of clocked 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.0003239/0.4791, allocations: 173.2 kB / 402.4 MB, free: 76.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.4792, allocations: 40.14 kB / 402.5 MB, free: 76.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.4793, allocations: 57.95 kB / 402.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.4794, allocations: 9.875 kB / 402.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.4794, allocations: 0 / 402.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.4794, allocations: 2.203 kB / 402.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.4826, allocations: 1.578 MB / 404.1 MB, free: 76.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.4826, allocations: 5.969 kB / 404.1 MB, free: 76.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.483, allocations: 86.19 kB / 404.2 MB, free: 76.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.4842, allocations: 0.5009 MB / 404.7 MB, free: 76.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.108e-05/0.4843, allocations: 22.73 kB / 404.7 MB, free: 76.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.4854, allocations: 1.359 MB / 406.1 MB, free: 75.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4854, allocations: 2.594 kB / 406.1 MB, free: 75.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.488, allocations: 1.261 MB / 407.4 MB, free: 75.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.4884, allocations: 169.4 kB / 407.5 MB, free: 75.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.309e-05/0.4885, allocations: 19.47 kB / 407.5 MB, free: 75.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.4889, allocations: 85.28 kB / 407.6 MB, free: 75.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.4891, allocations: 109.9 kB / 407.7 MB, free: 75.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.11e-05/0.4892, allocations: 28.34 kB / 407.8 MB, free: 75.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002241/0.4894, allocations: 201.7 kB / 408 MB, free: 74.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4894, allocations: 3.938 kB / 408 MB, free: 74.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005664/0.49, allocations: 136.4 kB / 408.1 MB, free: 74.95 MB / 298.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) * 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 (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.0002251/0.4902, allocations: 143 kB / 408.2 MB, free: 74.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.4914, allocations: 0.5838 MB / 408.8 MB, free: 74.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4914, allocations: 0 / 408.8 MB, free: 74.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006114/0.492, allocations: 339.9 kB / 409.2 MB, free: 74.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.4925, allocations: 63.89 kB / 409.2 MB, free: 74.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.496, allocations: 1.774 MB / 411 MB, free: 73.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.4963, allocations: 0.8298 MB / 411.8 MB, free: 72.89 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.4965, allocations: 42.09 kB / 411.9 MB, free: 72.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.456e-05/0.4966, allocations: 31.25 kB / 411.9 MB, free: 72.88 MB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4966, allocations: 0 / 411.9 MB, free: 72.88 MB / 298.7 MB Notification: Performance of Templates: time 0.01081/0.5074, allocations: 8.139 MB / 420 MB, free: 68.11 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)