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.008693/0.008692, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001812/0.001812, allocations: 194.4 kB / 16.68 MB, free: 5.98 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.546/1.546, allocations: 205.1 MB / 222.5 MB, free: 4.402 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.001469/0.001469, allocations: 50.69 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, 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.0051/0.118, allocations: 3.024 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.1198, allocations: 0.9707 MB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.12, allocations: 11.94 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.1203, allocations: 63.38 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.1205, allocations: 130.8 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.121, allocations: 223.6 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006229/0.1217, allocations: 0.6355 MB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.1219, allocations: 144.2 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.1223, allocations: 275.1 kB / 378.6 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.1227, allocations: 291 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.487e-05/0.1228, allocations: 48 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.123, allocations: 111.8 kB / 379.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.1231, allocations: 123.6 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002535/0.1234, allocations: 254.8 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.124, allocations: 0.5918 MB / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.124, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.124, allocations: 0 / 380 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1241, allocations: 0 / 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.001503/0.1256, allocations: 0.7836 MB / 380.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1256, allocations: 8.031 kB / 380.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.1257, allocations: 48.38 kB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005582/0.1263, allocations: 339.1 kB / 381.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.1263, allocations: 29.38 kB / 381.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.143e-05/0.1264, allocations: 44.28 kB / 381.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008494/0.1273, allocations: 474.6 kB / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.1273, allocations: 11.92 kB / 381.7 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.069e-05/0.1274, allocations: 16 kB / 381.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1274, allocations: 8 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008934/0.1283, allocations: 475.7 kB / 382.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1303, allocations: 1.114 MB / 383.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007801/0.1311, allocations: 392.4 kB / 383.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004996/0.1316, allocations: 270 kB / 384 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.1317, allocations: 8.438 kB / 384 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1317, allocations: 38.98 kB / 384 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.255e-06/0.1317, allocations: 3.938 kB / 384 MB, free: 6.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005205/0.1369, allocations: 2.327 MB / 386.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.137, allocations: 59.97 kB / 386.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.1373, allocations: 291.2 kB / 386.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.1374, allocations: 41.7 kB / 386.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1375, allocations: 189.3 kB / 386.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.1377, allocations: 197.3 kB / 387.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1379, allocations: 106.3 kB / 387.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1381, allocations: 346.8 kB / 387.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.1386, allocations: 241.2 kB / 387.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.1391, allocations: 292.8 kB / 388.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.14, allocations: 414.3 kB / 388.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.14, allocations: 0 / 388.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001614/0.1416, allocations: 0.7833 MB / 389.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1417, allocations: 8 kB / 389.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1417, allocations: 0 / 389.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008909/0.1426, allocations: 0.5013 MB / 389.8 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/0.1429, allocations: 87.89 kB / 389.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.1445, allocations: 1.409 MB / 391.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005266/0.145, allocations: 84.05 kB / 391.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.1451, 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.0003359/0.1454, allocations: 177.5 kB / 391.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1455, allocations: 43.52 kB / 391.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.1457, allocations: 55.75 kB / 391.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.1457, allocations: 7.984 kB / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.1457, allocations: 0 / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1458, allocations: 0 / 391.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.1488, allocations: 1.452 MB / 393.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.1488, allocations: 11.94 kB / 393.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/0.1493, allocations: 83.89 kB / 393.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000864/0.1501, allocations: 477.5 kB / 393.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.018e-05/0.1502, allocations: 19.98 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1515, allocations: 1.382 MB / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1515, allocations: 0 / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.1535, allocations: 1.097 MB / 396.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.1538, allocations: 164.6 kB / 396.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.662e-05/0.1538, allocations: 23.94 kB / 396.4 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.1543, allocations: 55.92 kB / 396.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.1545, allocations: 92.3 kB / 396.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.567e-05/0.1546, allocations: 31.97 kB / 396.5 MB, free: 9.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.1548, allocations: 198 kB / 396.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1548, allocations: 0 / 396.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.1554, allocations: 140 kB / 396.9 MB, free: 8.926 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.0002641/0.1556, allocations: 143 kB / 397 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.1569, allocations: 0.5965 MB / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1569, allocations: 0 / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006944/0.1576, allocations: 342.3 kB / 397.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.1582, allocations: 85.17 kB / 398 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.162, allocations: 1.416 MB / 399.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.1624, allocations: 0.8202 MB / 400.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.1626, allocations: 39.27 kB / 400.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1627, allocations: 39.42 kB / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of SimCode: time 1.994e-06/0.1627, allocations: 0 / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of Templates: time 0.01568/0.1784, allocations: 10.04 MB / 410.4 MB, free: 11.33 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)