Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_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.001387/0.001395, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001483/0.001483, allocations: 190 kB / 18.07 MB, free: 5.414 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.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001186/0.001186, allocations: 47.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.09988, allocations: 46.62 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004483/0.1044, allocations: 3.054 MB / 329.7 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1062, allocations: 0.9823 MB / 330.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.1064, allocations: 4 kB / 330.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.1067, allocations: 47.62 kB / 330.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.1069, allocations: 123.1 kB / 330.8 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.1074, allocations: 179.8 kB / 331 MB, free: 472 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.1079, allocations: 0.6044 MB / 331.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1082, allocations: 107.9 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.1085, allocations: 255 kB / 331.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003359/0.1089, allocations: 290.9 kB / 332.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.1089, allocations: 28 kB / 332.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1091, allocations: 75.95 kB / 332.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.1093, allocations: 111.5 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.1095, allocations: 234.8 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.1101, allocations: 0.5492 MB / 333.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1101, allocations: 4 kB / 333.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1101, allocations: 0 / 333.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1101, allocations: 0 / 333.2 MB, free: 14.21 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.001452/0.1116, allocations: 0.7835 MB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1116, allocations: 8.031 kB / 334 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.1117, allocations: 52.38 kB / 334.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.1122, allocations: 331.2 kB / 334.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.1122, allocations: 33.38 kB / 334.4 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.354e-05/0.1123, allocations: 40.38 kB / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008768/0.1132, allocations: 478.6 kB / 334.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1132, allocations: 11.84 kB / 334.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/0.1133, allocations: 19.98 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1133, allocations: 8 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.1142, allocations: 483.7 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.1163, allocations: 1.106 MB / 336.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008112/0.1171, allocations: 400.3 kB / 336.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005322/0.1176, allocations: 270 kB / 337.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-05/0.1177, allocations: 4.438 kB / 337.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.1177, allocations: 43 kB / 337.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.355e-06/0.1178, allocations: 0 / 337.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005104/0.1229, allocations: 2.346 MB / 339.6 MB, free: 7.539 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.1229, allocations: 55.97 kB / 339.6 MB, free: 7.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003467/0.1233, allocations: 279.4 kB / 339.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.1234, allocations: 49.69 kB / 340 MB, free: 7.141 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.1235, allocations: 185.3 kB / 340.1 MB, free: 6.957 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.1237, allocations: 197.2 kB / 340.3 MB, free: 6.762 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.1239, allocations: 110.2 kB / 340.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1241, allocations: 346.8 kB / 340.8 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/0.1245, allocations: 245.2 kB / 341 MB, free: 6.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/0.1251, allocations: 288.8 kB / 341.3 MB, free: 5.773 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008342/0.1259, allocations: 418.3 kB / 341.7 MB, free: 5.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1259, allocations: 4 kB / 341.7 MB, free: 5.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001629/0.1276, allocations: 0.7833 MB / 342.5 MB, free: 4.559 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.1276, allocations: 4 kB / 342.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1276, allocations: 0 / 342.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009831/0.1286, allocations: 0.4935 MB / 343 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003356/0.1289, allocations: 91.83 kB / 343.1 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.1304, allocations: 1.409 MB / 344.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/0.1309, allocations: 71.94 kB / 344.6 MB, free: 2.434 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.1309, allocations: 16 kB / 344.6 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.0002515/0.1312, allocations: 181.4 kB / 344.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.1313, allocations: 43.47 kB / 344.8 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001451/0.1314, allocations: 59.73 kB / 344.9 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1315, allocations: 8 kB / 344.9 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1315, allocations: 0 / 344.9 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1315, allocations: 3.984 kB / 344.9 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002843/0.1343, allocations: 1.45 MB / 346.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.1343, allocations: 7.938 kB / 346.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.1347, allocations: 88.05 kB / 346.4 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007564/0.1355, allocations: 481.3 kB / 346.9 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/0.1356, allocations: 28 kB / 346.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.1368, allocations: 1.37 MB / 348.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.1368, allocations: 7.922 kB / 348.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.1389, allocations: 1.092 MB / 349.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.1391, allocations: 164.6 kB / 349.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.436e-05/0.1392, allocations: 27.94 kB / 349.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/0.1396, allocations: 51.92 kB / 349.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.1398, allocations: 96.22 kB / 349.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.411e-05/0.1399, allocations: 27.97 kB / 349.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.1401, allocations: 198 kB / 349.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1401, allocations: 4 kB / 349.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.1406, allocations: 140 kB / 350.1 MB, free: 12.71 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.0002608/0.1408, allocations: 135.2 kB / 350.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1421, allocations: 0.5889 MB / 350.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1421, allocations: 0 / 350.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007122/0.1428, allocations: 338.2 kB / 351.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.1434, allocations: 72.94 kB / 351.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.1471, allocations: 1.607 MB / 352.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.1475, allocations: 0.8244 MB / 353.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.1477, allocations: 35.28 kB / 353.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.784e-05/0.1478, allocations: 31.42 kB / 353.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1479, allocations: 0 / 353.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01445/0.1623, allocations: 9.332 MB / 363 MB, free: 15.68 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches