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.008334/0.008334, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001382/0.001383, allocations: 193 kB / 16.67 MB, free: 5.969 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.512/1.512, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001185/0.001185, allocations: 53.53 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004269/0.1074, allocations: 3.024 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.1093, allocations: 0.9746 MB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.1095, allocations: 8 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003565/0.1099, allocations: 67.31 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002647/0.1102, allocations: 142.8 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.1107, allocations: 211.6 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005797/0.1113, allocations: 0.6434 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.1116, allocations: 136.2 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1119, allocations: 279.1 kB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003164/0.1122, allocations: 298.9 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/0.1123, allocations: 48 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.1125, allocations: 107.8 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1127, allocations: 123.6 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.1129, allocations: 250.8 kB / 379.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.1135, allocations: 0.5876 MB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1135, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1135, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1135, allocations: 3.938 kB / 380 MB, free: 10.4 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.001343/0.1149, allocations: 0.8025 MB / 380.8 MB, free: 9.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1149, allocations: 8.031 kB / 380.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.115, allocations: 52.66 kB / 380.9 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.1155, allocations: 335.4 kB / 381.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.1156, allocations: 33.38 kB / 381.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.581e-05/0.1157, allocations: 40.38 kB / 381.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008183/0.1165, allocations: 474.6 kB / 381.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.1165, allocations: 15.89 kB / 381.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.1166, allocations: 16 kB / 381.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1166, allocations: 12 kB / 381.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009188/0.1175, allocations: 475.7 kB / 382.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1195, allocations: 1.106 MB / 383.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007943/0.1203, allocations: 396.3 kB / 383.8 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005017/0.1208, allocations: 266 kB / 384 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.1209, allocations: 8.422 kB / 384 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1209, allocations: 35 kB / 384.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.893e-06/0.1209, allocations: 0 / 384.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00512/0.126, allocations: 2.339 MB / 386.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.1261, allocations: 67.95 kB / 386.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.1264, allocations: 283.3 kB / 386.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/0.1265, allocations: 45.69 kB / 386.8 MB, free: 3.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1266, allocations: 185.6 kB / 387 MB, free: 3.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.1268, allocations: 206.3 kB / 387.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.127, allocations: 110.2 kB / 387.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1272, allocations: 346.8 kB / 387.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.1276, allocations: 249.2 kB / 387.9 MB, free: 2.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.1281, allocations: 284.8 kB / 388.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/0.1289, allocations: 418.3 kB / 388.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1289, allocations: 0 / 388.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001555/0.1305, allocations: 0.7796 MB / 389.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.1305, allocations: 9.094 kB / 389.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1305, allocations: 4.031 kB / 389.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009006/0.1314, allocations: 0.5012 MB / 389.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.1318, allocations: 87.89 kB / 389.9 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.1331, allocations: 1.405 MB / 391.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.1335, allocations: 75.94 kB / 391.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.1336, allocations: 16 kB / 391.4 MB, free: 14.57 MB / 334.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.0002398/0.1339, allocations: 189.5 kB / 391.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.1339, allocations: 43.72 kB / 391.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.1341, allocations: 59.73 kB / 391.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1341, allocations: 4 kB / 391.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1341, allocations: 0 / 391.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1341, allocations: 0 / 391.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/0.1369, allocations: 1.468 MB / 393.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1369, allocations: 3.938 kB / 393.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.1373, allocations: 83.89 kB / 393.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007938/0.1381, allocations: 481.5 kB / 393.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.1381, allocations: 23.98 kB / 393.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.1394, allocations: 1.382 MB / 395.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1394, allocations: 0 / 395.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.1415, allocations: 1.097 MB / 396.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.1417, allocations: 164.8 kB / 396.4 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.131e-05/0.1418, allocations: 23.94 kB / 396.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.1422, allocations: 55.92 kB / 396.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.1425, allocations: 96.3 kB / 396.6 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.528e-05/0.1425, allocations: 27.97 kB / 396.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002525/0.1428, allocations: 201.9 kB / 396.8 MB, free: 9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1428, allocations: 0 / 396.8 MB, free: 9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.1433, allocations: 132 kB / 396.9 MB, free: 8.871 MB / 334.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.0003234/0.1436, allocations: 143.2 kB / 397.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.145, allocations: 0.5925 MB / 397.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.145, allocations: 0 / 397.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007088/0.1457, allocations: 342.7 kB / 398 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.1463, allocations: 80.48 kB / 398.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.1502, allocations: 1.439 MB / 399.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1507, allocations: 0.8279 MB / 400.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.1509, allocations: 39.27 kB / 400.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.151, allocations: 39.42 kB / 400.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of SimCode: time 2.004e-05/0.151, allocations: 0 / 400.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of Templates: time 0.01535/0.1664, allocations: 10.04 MB / 410.5 MB, free: 11.25 MB / 350.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)