Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.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.006231/0.006231, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.0012/0.0012, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.439/1.439, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001217/0.001217, allocations: 46.38 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.09991, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00421/0.1042, allocations: 3.024 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1064, allocations: 0.9785 MB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.1066, allocations: 4 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.107, allocations: 63.31 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002985/0.1073, allocations: 134.9 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006218/0.1079, allocations: 227.5 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006109/0.1085, allocations: 0.6395 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.1088, allocations: 136.2 kB / 378.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.1091, allocations: 283 kB / 378.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.1094, allocations: 295 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-05/0.1095, allocations: 48 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1097, allocations: 99.94 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.1099, allocations: 127.5 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1101, allocations: 258.8 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005753/0.1107, allocations: 0.584 MB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1107, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1107, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.1107, allocations: 4 kB / 380 MB, free: 10.39 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.001492/0.1122, allocations: 0.7835 MB / 380.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1123, allocations: 8.031 kB / 380.8 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.1124, allocations: 52.38 kB / 380.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.1129, allocations: 327.3 kB / 381.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1129, allocations: 37.34 kB / 381.2 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.485e-05/0.113, allocations: 48.22 kB / 381.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008689/0.1139, allocations: 474.6 kB / 381.7 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.1139, allocations: 11.98 kB / 381.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-05/0.114, allocations: 12 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.114, allocations: 15.94 kB / 381.8 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009113/0.1149, allocations: 475.7 kB / 382.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1169, allocations: 1.11 MB / 383.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/0.1177, allocations: 396.3 kB / 383.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.1183, allocations: 270 kB / 384 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.1183, allocations: 4.438 kB / 384 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1184, allocations: 35 kB / 384 MB, free: 6.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.195e-06/0.1184, allocations: 4 kB / 384 MB, free: 6.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005198/0.1236, allocations: 2.331 MB / 386.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1236, allocations: 59.97 kB / 386.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.1239, allocations: 287.2 kB / 386.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.639e-05/0.124, allocations: 45.7 kB / 386.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.1241, allocations: 189.3 kB / 386.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.1243, allocations: 193.3 kB / 387.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.1245, allocations: 106.3 kB / 387.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1246, allocations: 346.8 kB / 387.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.1251, allocations: 249.1 kB / 387.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005116/0.1256, allocations: 292.8 kB / 388.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007985/0.1264, allocations: 410.3 kB / 388.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1264, allocations: 3.938 kB / 388.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001725/0.1281, allocations: 0.7872 MB / 389.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.1282, allocations: 4 kB / 389.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1282, allocations: 0 / 389.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009549/0.1292, allocations: 0.5052 MB / 389.8 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.1295, allocations: 91.83 kB / 389.9 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.1309, allocations: 1.397 MB / 391.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005379/0.1314, allocations: 84.05 kB / 391.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.1315, allocations: 20 kB / 391.4 MB, free: 14.59 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.0002594/0.1318, allocations: 173.5 kB / 391.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.1319, allocations: 43.53 kB / 391.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.132, allocations: 59.73 kB / 391.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.132, allocations: 4 kB / 391.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.132, allocations: 3.984 kB / 391.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.132, allocations: 0 / 391.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.1349, allocations: 1.452 MB / 393.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-06/0.1349, allocations: 3.938 kB / 393.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.1353, allocations: 87.89 kB / 393.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007601/0.1361, allocations: 485.4 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.1361, allocations: 15.98 kB / 393.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.1373, allocations: 1.382 MB / 395.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1374, allocations: 0 / 395.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.1394, allocations: 1.089 MB / 396.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.1396, allocations: 164.6 kB / 396.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.237e-05/0.1397, allocations: 27.88 kB / 396.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/0.1401, allocations: 59.92 kB / 396.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.1403, allocations: 96.38 kB / 396.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.1404, allocations: 31.91 kB / 396.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.1406, allocations: 198 kB / 396.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1406, allocations: 0 / 396.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004794/0.1411, allocations: 136 kB / 396.9 MB, free: 8.91 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.0002459/0.1413, allocations: 139.2 kB / 397 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1426, allocations: 0.5965 MB / 397.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.1427, allocations: 3.938 kB / 397.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007315/0.1434, allocations: 338.3 kB / 397.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.144, allocations: 81.14 kB / 398 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.1477, allocations: 1.416 MB / 399.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.1481, allocations: 0.8202 MB / 400.3 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.1482, allocations: 39.27 kB / 400.3 MB, free: 5.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1484, allocations: 39.42 kB / 400.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1484, allocations: 0 / 400.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of Templates: time 0.01496/0.1633, allocations: 10.03 MB / 410.4 MB, free: 11.32 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)