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.001685/0.001685, allocations: 117.5 kB / 16.63 MB, free: 6.812 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.001831/0.001832, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.379/1.379, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001284/0.001284, allocations: 48.14 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.131, allocations: 46.64 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00745/0.1385, allocations: 3.054 MB / 329.2 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003058/0.1416, allocations: 0.9669 MB / 330.2 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.142, allocations: 7.938 kB / 330.2 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003975/0.1424, allocations: 47.62 kB / 330.2 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005237/0.143, allocations: 111.2 kB / 330.3 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008807/0.1439, allocations: 199.7 kB / 330.5 MB, free: 396 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.145, allocations: 0.6278 MB / 331.1 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.1454, allocations: 136 kB / 331.3 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006472/0.1461, allocations: 283 kB / 331.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006152/0.1467, allocations: 295 kB / 331.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.1469, allocations: 48 kB / 331.9 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002824/0.1472, allocations: 99.89 kB / 332 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002677/0.1475, allocations: 131.5 kB / 332.1 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000464/0.1479, allocations: 242.8 kB / 332.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.149, allocations: 0.5959 MB / 332.9 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.149, allocations: 0 / 332.9 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.149, allocations: 0 / 332.9 MB, free: 13.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.169e-05/0.149, allocations: 0 / 332.9 MB, free: 13.95 MB / 286.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.002596/0.1516, allocations: 0.7757 MB / 333.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.1517, allocations: 8.031 kB / 333.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.1519, allocations: 48.38 kB / 333.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007429/0.1527, allocations: 327.2 kB / 334.1 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.825e-05/0.1528, allocations: 33.31 kB / 334.1 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.153, allocations: 48.38 kB / 334.2 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.1546, allocations: 474.6 kB / 334.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.924e-05/0.1547, allocations: 7.906 kB / 334.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.1548, allocations: 12 kB / 334.7 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.1548, allocations: 12 kB / 334.7 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.1564, allocations: 483.7 kB / 335.1 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.1596, allocations: 1.129 MB / 336.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.161, allocations: 392.4 kB / 336.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008849/0.1619, allocations: 274 kB / 336.9 MB, free: 9.805 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.191e-05/0.162, allocations: 12.42 kB / 336.9 MB, free: 9.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.162, allocations: 35 kB / 337 MB, free: 9.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.777e-06/0.162, allocations: 0 / 337 MB, free: 9.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.008295/0.1704, allocations: 2.346 MB / 339.3 MB, free: 7.273 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.1705, allocations: 59.97 kB / 339.4 MB, free: 7.203 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.171, allocations: 287.3 kB / 339.7 MB, free: 6.918 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.168e-05/0.1711, allocations: 37.7 kB / 339.7 MB, free: 6.875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.1713, allocations: 181.3 kB / 339.9 MB, free: 6.695 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002767/0.1716, allocations: 201.3 kB / 340.1 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/0.1719, allocations: 106.2 kB / 340.2 MB, free: 6.383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.1722, allocations: 350.8 kB / 340.5 MB, free: 6.031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008419/0.173, allocations: 245.2 kB / 340.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009059/0.174, allocations: 284.8 kB / 341 MB, free: 5.508 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.1753, allocations: 418.3 kB / 341.4 MB, free: 5.094 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1754, allocations: 0 / 341.4 MB, free: 5.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002821/0.1782, allocations: 0.7872 MB / 342.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.1782, allocations: 8 kB / 342.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1783, allocations: 0 / 342.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.18, allocations: 0.4973 MB / 342.7 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006425/0.1806, allocations: 83.89 kB / 342.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/0.1829, allocations: 1.417 MB / 344.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008463/0.1838, allocations: 76.06 kB / 344.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/0.1839, allocations: 19.98 kB / 344.3 MB, free: 2.137 MB / 286.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.0004271/0.1843, allocations: 173.6 kB / 344.5 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.1845, allocations: 39.53 kB / 344.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002094/0.1848, allocations: 55.73 kB / 344.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.1848, allocations: 4 kB / 344.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.1848, allocations: 0 / 344.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.1848, allocations: 7.984 kB / 344.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0048/0.1897, allocations: 1.458 MB / 346.1 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.1897, allocations: 3.938 kB / 346.1 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000659/0.1904, allocations: 83.83 kB / 346.1 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.1918, allocations: 477.5 kB / 346.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.081e-05/0.1919, allocations: 27.95 kB / 346.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.194, allocations: 1.37 MB / 348 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/0.194, allocations: 4.031 kB / 348 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003529/0.1976, allocations: 1.096 MB / 349.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003797/0.198, allocations: 168.6 kB / 349.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.1981, allocations: 19.94 kB / 349.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007829/0.1989, allocations: 59.92 kB / 349.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/0.1993, allocations: 96.3 kB / 349.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.615e-05/0.1994, allocations: 23.97 kB / 349.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003529/0.1998, allocations: 202 kB / 349.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1998, allocations: 0 / 349.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008784/0.2007, allocations: 136 kB / 349.8 MB, free: 12.45 MB / 302.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.0003669/0.2011, allocations: 135.2 kB / 349.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.2035, allocations: 0.6238 MB / 350.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2035, allocations: 0 / 350.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.2048, allocations: 330.3 kB / 350.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.2058, allocations: 89.17 kB / 351 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006094/0.2119, allocations: 1.608 MB / 352.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/0.2125, allocations: 0.8163 MB / 353.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003762/0.2129, allocations: 39.28 kB / 353.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.2131, allocations: 39.42 kB / 353.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of SimCode: time 1.774e-06/0.2132, allocations: 3.938 kB / 353.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of Templates: time 0.02789/0.2411, allocations: 9.851 MB / 363.3 MB, free: 14.85 MB / 318.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)