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.009039/0.009039, allocations: 101 kB / 15.73 MB, free: 6.047 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.00163/0.001631, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.589/1.589, allocations: 205.1 MB / 222.5 MB, free: 4.398 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.001307/0.001307, allocations: 58.64 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1142, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004288/0.1186, allocations: 3.012 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.1203, allocations: 0.9785 MB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1205, allocations: 4 kB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.1208, allocations: 71.31 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000237/0.1211, allocations: 134.8 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005235/0.1216, allocations: 211.6 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005952/0.1222, allocations: 0.6434 MB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.1225, allocations: 140.1 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.1228, allocations: 271.1 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.1232, allocations: 298.9 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.928e-05/0.1232, allocations: 48 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1234, allocations: 111.8 kB / 379.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1236, allocations: 123.6 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002238/0.1238, allocations: 246.8 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006036/0.1244, allocations: 0.5957 MB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1245, allocations: 0 / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1245, allocations: 0 / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1245, allocations: 4 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.001536/0.126, allocations: 0.7835 MB / 380.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1261, allocations: 12.03 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.1262, allocations: 48.38 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005143/0.1267, allocations: 327.2 kB / 381.2 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.1268, allocations: 37.38 kB / 381.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.066e-05/0.1269, allocations: 40.28 kB / 381.3 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008574/0.1277, allocations: 474.6 kB / 381.7 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.1277, allocations: 7.938 kB / 381.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.075e-05/0.1278, allocations: 24 kB / 381.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1278, allocations: 8 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009168/0.1287, allocations: 475.7 kB / 382.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.1308, allocations: 1.117 MB / 383.4 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/0.1316, allocations: 384.4 kB / 383.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004929/0.1321, allocations: 270 kB / 384 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.013e-05/0.1321, allocations: 4.438 kB / 384 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.1321, allocations: 39 kB / 384 MB, free: 6.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.1322, allocations: 0 / 384 MB, free: 6.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005017/0.1372, allocations: 2.339 MB / 386.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.1372, allocations: 55.97 kB / 386.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.1375, allocations: 283.3 kB / 386.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.719e-05/0.1376, allocations: 49.69 kB / 386.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1377, allocations: 181.3 kB / 386.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1379, allocations: 193.3 kB / 387.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.1381, allocations: 110.3 kB / 387.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1382, allocations: 350.8 kB / 387.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.1387, allocations: 241.2 kB / 387.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.1392, allocations: 288.8 kB / 388.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007749/0.14, allocations: 422.3 kB / 388.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.14, allocations: 0 / 388.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001649/0.1416, allocations: 0.7794 MB / 389.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1417, allocations: 4 kB / 389.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1417, allocations: 0 / 389.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008834/0.1426, allocations: 0.509 MB / 389.8 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.1429, allocations: 83.89 kB / 389.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.1442, allocations: 1.413 MB / 391.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005142/0.1447, allocations: 84 kB / 391.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.1448, allocations: 16 kB / 391.4 MB, free: 14.61 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.0002416/0.145, allocations: 177.5 kB / 391.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.1451, allocations: 39.53 kB / 391.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.1453, allocations: 59.73 kB / 391.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1453, allocations: 8 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.1453, allocations: 4 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.1453, allocations: 3.984 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.1481, allocations: 1.444 MB / 393.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.1481, allocations: 7.938 kB / 393.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.1485, allocations: 91.98 kB / 393.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007807/0.1493, allocations: 481.3 kB / 393.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.1494, allocations: 19.97 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.1506, allocations: 1.378 MB / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1506, allocations: 4.031 kB / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.1527, allocations: 1.085 MB / 396.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.1529, allocations: 164.6 kB / 396.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.548e-05/0.153, allocations: 23.94 kB / 396.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.1535, allocations: 63.92 kB / 396.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.1537, allocations: 92.28 kB / 396.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.1538, allocations: 19.98 kB / 396.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.154, allocations: 205.9 kB / 396.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.154, allocations: 4 kB / 396.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005635/0.1546, allocations: 136 kB / 396.9 MB, free: 8.93 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.0002563/0.1549, allocations: 135.2 kB / 397 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.1561, allocations: 0.5966 MB / 397.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1562, allocations: 7.938 kB / 397.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007388/0.1569, allocations: 342.3 kB / 397.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.1575, allocations: 77.16 kB / 398 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.1613, allocations: 1.424 MB / 399.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.1617, allocations: 0.8202 MB / 400.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.1619, allocations: 43.27 kB / 400.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.706e-05/0.162, allocations: 39.42 kB / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of SimCode: time 2.986e-06/0.162, allocations: 4 kB / 400.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of Templates: time 0.01647/0.1785, allocations: 10.03 MB / 410.4 MB, free: 11.33 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)