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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001449, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.397/1.397, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.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.001361/0.001361, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2143, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004024/0.2183, allocations: 3.026 MB / 328.3 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.2203, allocations: 0.9817 MB / 329.3 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.2205, allocations: 12.97 kB / 329.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.2208, allocations: 60.47 kB / 329.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.221, allocations: 140.5 kB / 329.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.2216, allocations: 212.2 kB / 329.7 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000616/0.2222, allocations: 0.635 MB / 330.4 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.2225, allocations: 126.8 kB / 330.5 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003259/0.2228, allocations: 275.1 kB / 330.8 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.2232, allocations: 300.3 kB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.494e-05/0.2233, allocations: 57.25 kB / 331.1 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002186/0.2235, allocations: 93.77 kB / 331.2 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.2237, allocations: 121.9 kB / 331.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.2239, allocations: 247.4 kB / 331.6 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006142/0.2245, allocations: 0.5841 MB / 332.1 MB, free: 12.78 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2246, allocations: 0 / 332.1 MB, free: 12.78 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2246, allocations: 1.156 kB / 332.1 MB, free: 12.78 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2246, allocations: 0 / 332.1 MB, free: 12.78 MB / 270.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.001396/0.226, allocations: 0.7774 MB / 332.9 MB, free: 12.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.226, allocations: 9.5 kB / 332.9 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.2262, allocations: 52.81 kB / 333 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.2266, allocations: 336.7 kB / 333.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.743e-05/0.2267, allocations: 32.94 kB / 333.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.695e-05/0.2268, allocations: 44.14 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008462/0.2276, allocations: 470.6 kB / 333.8 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.2276, allocations: 15.89 kB / 333.9 MB, free: 11.24 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.2277, allocations: 16 kB / 333.9 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.2277, allocations: 8 kB / 333.9 MB, free: 11.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/0.2286, allocations: 475.7 kB / 334.3 MB, free: 10.75 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.2306, allocations: 1.118 MB / 335.5 MB, free: 9.578 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.2315, allocations: 392.4 kB / 335.8 MB, free: 9.188 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006192/0.2321, allocations: 266.1 kB / 336.1 MB, free: 8.926 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.2322, allocations: 8.422 kB / 336.1 MB, free: 8.918 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.2322, allocations: 39 kB / 336.2 MB, free: 8.871 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.544e-06/0.2322, allocations: 4 kB / 336.2 MB, free: 8.867 MB / 270.1 MB Notification: Performance of matching and sorting (n=56): time 0.005146/0.2374, allocations: 2.342 MB / 338.5 MB, free: 6.395 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.2374, allocations: 55.97 kB / 338.6 MB, free: 6.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.2378, allocations: 287.3 kB / 338.8 MB, free: 6.043 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.2378, allocations: 41.7 kB / 338.9 MB, free: 5.996 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.238, allocations: 181.3 kB / 339.1 MB, free: 5.816 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.2381, allocations: 197.3 kB / 339.2 MB, free: 5.621 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.2383, allocations: 114.2 kB / 339.4 MB, free: 5.5 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2385, allocations: 346.8 kB / 339.7 MB, free: 5.152 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004509/0.2389, allocations: 249.1 kB / 339.9 MB, free: 4.91 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.2394, allocations: 288.8 kB / 340.2 MB, free: 4.621 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007417/0.2402, allocations: 414.3 kB / 340.6 MB, free: 4.207 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2402, allocations: 0 / 340.6 MB, free: 4.207 MB / 270.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001585/0.2418, allocations: 0.7872 MB / 341.4 MB, free: 3.406 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.2418, allocations: 4 kB / 341.4 MB, free: 3.402 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2418, allocations: 0 / 341.4 MB, free: 3.402 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009582/0.2428, allocations: 0.5129 MB / 341.9 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.2431, allocations: 87.89 kB / 342 MB, free: 2.797 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.2444, allocations: 1.401 MB / 343.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/0.2449, allocations: 76.03 kB / 343.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.245, allocations: 23.98 kB / 343.5 MB, free: 1.246 MB / 270.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.0002304/0.2452, allocations: 169.3 kB / 343.7 MB, free: 1.07 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.744e-05/0.2453, allocations: 39.53 kB / 343.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.2454, allocations: 59.73 kB / 343.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.2454, allocations: 4 kB / 343.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.2455, allocations: 4 kB / 343.8 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.2455, allocations: 3.984 kB / 343.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.2483, allocations: 1.454 MB / 345.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.2483, allocations: 3.938 kB / 345.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.2487, allocations: 87.83 kB / 345.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007613/0.2495, allocations: 485.5 kB / 345.8 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.2495, allocations: 19.92 kB / 345.8 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.2508, allocations: 1.382 MB / 347.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2508, allocations: 4.031 kB / 347.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.2529, allocations: 1.084 MB / 348.3 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.2532, allocations: 164.7 kB / 348.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.153e-05/0.2533, allocations: 27.88 kB / 348.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.2537, allocations: 59.92 kB / 348.5 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.2539, allocations: 92.3 kB / 348.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.254, allocations: 27.97 kB / 348.7 MB, free: 11.89 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.2541, allocations: 198 kB / 348.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2542, allocations: 0 / 348.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000538/0.2547, allocations: 140 kB / 349 MB, free: 11.55 MB / 286.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.0002649/0.255, allocations: 143.1 kB / 349.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.2564, allocations: 0.6044 MB / 349.7 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2564, allocations: 0 / 349.7 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/0.2571, allocations: 346.6 kB / 350.1 MB, free: 10.47 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.2578, allocations: 80.91 kB / 350.1 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.2615, allocations: 1.449 MB / 351.6 MB, free: 8.906 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.2619, allocations: 0.8241 MB / 352.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.2621, allocations: 39.22 kB / 352.5 MB, free: 8.016 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.2622, allocations: 39.42 kB / 352.5 MB, free: 7.977 MB / 286.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2622, allocations: 0 / 352.5 MB, free: 7.977 MB / 286.1 MB Notification: Performance of Templates: time 0.01452/0.2767, allocations: 9.927 MB / 362.4 MB, free: 14.04 MB / 302.1 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)