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.001091/0.001091, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001165/0.001165, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.407/1.407, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001179/0.001179, allocations: 51.94 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08854, allocations: 46.62 MB / 325.9 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004274/0.09286, allocations: 3.065 MB / 329 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.09466, allocations: 0.9863 MB / 330 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.09484, allocations: 4 kB / 330 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.09511, allocations: 51.62 kB / 330.1 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.09533, allocations: 119.1 kB / 330.2 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004526/0.09579, allocations: 179.8 kB / 330.3 MB, free: 468 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005797/0.09638, allocations: 0.6084 MB / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.09661, allocations: 111.8 kB / 331.1 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003134/0.09693, allocations: 251 kB / 331.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.09726, allocations: 286.9 kB / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.344e-05/0.09734, allocations: 28 kB / 331.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.09753, allocations: 75.95 kB / 331.7 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.09767, allocations: 107.6 kB / 331.8 MB, free: 15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002238/0.0979, allocations: 230.8 kB / 332 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005702/0.09848, allocations: 0.557 MB / 332.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.09849, allocations: 0 / 332.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.0985, allocations: 4 kB / 332.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.09852, allocations: 4 kB / 332.6 MB, free: 14.2 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.001442/0.09996, allocations: 0.7874 MB / 333.4 MB, free: 13.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1, allocations: 8.031 kB / 333.4 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1001, allocations: 52.38 kB / 333.4 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.1006, allocations: 323.3 kB / 333.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.874e-05/0.1006, allocations: 29.38 kB / 333.8 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.851e-05/0.1007, allocations: 40.38 kB / 333.8 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008665/0.1016, allocations: 478.6 kB / 334.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.1016, allocations: 7.844 kB / 334.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.606e-05/0.1017, allocations: 16 kB / 334.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1017, allocations: 12 kB / 334.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009317/0.1026, allocations: 479.7 kB / 334.8 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1047, allocations: 1.118 MB / 335.9 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.1055, allocations: 392.3 kB / 336.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005245/0.106, allocations: 270 kB / 336.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.1061, allocations: 16.36 kB / 336.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.1061, allocations: 39 kB / 336.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.914e-06/0.1061, allocations: 0 / 336.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005103/0.1112, allocations: 2.335 MB / 338.9 MB, free: 7.547 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.1113, allocations: 55.97 kB / 339 MB, free: 7.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.1116, allocations: 283.3 kB / 339.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.1116, allocations: 45.7 kB / 339.3 MB, free: 7.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1118, allocations: 189.3 kB / 339.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.1119, allocations: 193.3 kB / 339.7 MB, free: 6.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.1121, allocations: 114.2 kB / 339.8 MB, free: 6.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1123, allocations: 346.8 kB / 340.1 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.1127, allocations: 241.2 kB / 340.4 MB, free: 6.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005008/0.1132, allocations: 288.8 kB / 340.7 MB, free: 5.781 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007572/0.114, allocations: 422.3 kB / 341.1 MB, free: 5.363 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.114, allocations: 0 / 341.1 MB, free: 5.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001662/0.1157, allocations: 0.7872 MB / 341.9 MB, free: 4.562 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1157, allocations: 4 kB / 341.9 MB, free: 4.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1157, allocations: 0 / 341.9 MB, free: 4.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009589/0.1167, allocations: 0.4935 MB / 342.4 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.117, allocations: 95.81 kB / 342.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.1184, allocations: 1.405 MB / 343.9 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.1189, allocations: 76.06 kB / 343.9 MB, free: 2.434 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.1189, allocations: 16 kB / 343.9 MB, free: 2.418 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.0002266/0.1191, allocations: 177.3 kB / 344.1 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.529e-05/0.1192, allocations: 43.47 kB / 344.2 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.1194, allocations: 59.73 kB / 344.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1194, allocations: 8 kB / 344.2 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1194, allocations: 4 kB / 344.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1194, allocations: 4.094 kB / 344.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.1222, allocations: 1.454 MB / 345.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.1222, allocations: 11.92 kB / 345.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.1226, allocations: 83.89 kB / 345.8 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000756/0.1233, allocations: 477.5 kB / 346.2 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.938e-05/0.1234, allocations: 20.06 kB / 346.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.1246, allocations: 1.374 MB / 347.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1246, allocations: 0 / 347.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.1266, allocations: 1.092 MB / 348.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.1268, allocations: 164.6 kB / 348.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.815e-05/0.1269, allocations: 23.94 kB / 348.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003989/0.1273, allocations: 51.92 kB / 349 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.1276, allocations: 96.22 kB / 349.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/0.1276, allocations: 35.91 kB / 349.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.1279, allocations: 198 kB / 349.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1279, allocations: 0 / 349.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005956/0.1285, allocations: 140 kB / 349.4 MB, free: 12.72 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.0003376/0.1288, allocations: 127.2 kB / 349.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.1304, allocations: 0.5928 MB / 350.1 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.1304, allocations: 0 / 350.1 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008403/0.1312, allocations: 338.2 kB / 350.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007991/0.1321, allocations: 81.14 kB / 350.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00415/0.1362, allocations: 1.61 MB / 352.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.1367, allocations: 0.8205 MB / 353 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.1369, allocations: 39.27 kB / 353 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.244e-05/0.137, allocations: 35.36 kB / 353.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.137, allocations: 0 / 353.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01491/0.1519, allocations: 9.328 MB / 362.4 MB, free: 15.68 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)