Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001106, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001195/0.001195, allocations: 193.3 kB / 18.9 MB, free: 4.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 242.6 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.195/0.195, allocations: 44.18 MB / 336.9 MB, free: 2.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.007109/0.1307, allocations: 3.948 MB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003454/0.1343, allocations: 1.223 MB / 474.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007764/0.1351, allocations: 11.94 kB / 474.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005536/0.1357, allocations: 83.33 kB / 474.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008741/0.1366, allocations: 178.7 kB / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009961/0.1376, allocations: 307.6 kB / 475.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.1391, allocations: 1.026 MB / 476.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003812/0.1395, allocations: 182.3 kB / 476.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007989/0.1403, allocations: 446.5 kB / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008043/0.1411, allocations: 494.2 kB / 477.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002403/0.1414, allocations: 76 kB / 477.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003711/0.1418, allocations: 127.9 kB / 477.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.142, allocations: 203.4 kB / 477.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006562/0.1427, allocations: 402.1 kB / 478 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008772/0.1436, allocations: 0.6783 MB / 478.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1436, allocations: 0 / 478.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1436, allocations: 0 / 478.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.841e-05/0.1437, allocations: 0 / 478.7 MB, free: 5.352 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002688/0.1464, allocations: 1.083 MB / 479.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.1464, allocations: 16.03 kB / 479.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.1466, allocations: 80 kB / 479.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.1472, allocations: 433.6 kB / 480.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.377e-05/0.1473, allocations: 49.69 kB / 480.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.1475, allocations: 75.95 kB / 480.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.149, allocations: 0.8179 MB / 481.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.149, allocations: 7.906 kB / 481.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.1491, allocations: 24 kB / 481.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.1491, allocations: 16 kB / 481.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.1506, allocations: 0.7621 MB / 482 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.1546, allocations: 2.554 MB / 484.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.156, allocations: 0.6385 MB / 485.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000709/0.1567, allocations: 379.4 kB / 485.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.839e-05/0.1568, allocations: 11.98 kB / 485.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.1568, allocations: 46.5 kB / 485.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.796e-06/0.1568, allocations: 0 / 485.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007455/0.1643, allocations: 3.54 MB / 489.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.1644, allocations: 140.5 kB / 489.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004932/0.1649, allocations: 421.8 kB / 489.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.976e-05/0.165, allocations: 53.69 kB / 489.8 MB, free: 9.629 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.1652, allocations: 280.4 kB / 490.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.1654, allocations: 268.4 kB / 490.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.1657, allocations: 174.4 kB / 490.5 MB, free: 8.906 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1659, allocations: 370.8 kB / 490.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007522/0.1667, allocations: 389.8 kB / 491.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008658/0.1675, allocations: 0.5452 MB / 491.8 MB, free: 7.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1688, allocations: 0.7255 MB / 492.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1688, allocations: 4 kB / 492.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00262/0.1715, allocations: 1.286 MB / 493.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1715, allocations: 8 kB / 493.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1715, allocations: 7.938 kB / 493.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.1729, allocations: 0.7608 MB / 494.6 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.1735, allocations: 147.8 kB / 494.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.1757, allocations: 2.686 MB / 497.4 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/0.1766, allocations: 147.6 kB / 497.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.09e-05/0.1767, allocations: 35.98 kB / 497.6 MB, free: 1.566 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003584/0.1771, allocations: 224.7 kB / 497.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.1773, allocations: 59.34 kB / 497.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.1774, allocations: 87.92 kB / 498 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.1774, allocations: 11.98 kB / 498 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.1774, allocations: 0 / 498 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1775, allocations: 3.984 kB / 498 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003881/0.1814, allocations: 2.181 MB / 0.4884 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.1814, allocations: 0 / 0.4884 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/0.1819, allocations: 111.9 kB / 0.4885 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.1831, allocations: 0.7292 MB / 0.4893 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.087e-05/0.1832, allocations: 27.97 kB / 0.4893 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.1854, allocations: 2.643 MB / 0.4919 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.1854, allocations: 3.938 kB / 0.4919 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.1885, allocations: 1.768 MB / 0.4936 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.1889, allocations: 216.2 kB / 0.4938 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.189, allocations: 35.94 kB / 0.4938 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008096/0.1898, allocations: 115.8 kB / 0.4939 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.1902, allocations: 151.7 kB / 0.4941 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.841e-05/0.1903, allocations: 31.97 kB / 0.4941 GB, free: 8.945 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003186/0.1906, allocations: 291.1 kB / 0.4944 GB, free: 8.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1906, allocations: 0 / 0.4944 GB, free: 8.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008294/0.1914, allocations: 204 kB / 0.4946 GB, free: 8.457 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002827/0.1917, allocations: 147.2 kB / 0.4947 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.1938, allocations: 0.9837 MB / 0.4957 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1939, allocations: 0 / 0.4957 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.195, allocations: 0.4916 MB / 0.4962 GB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009688/0.196, allocations: 123.2 kB / 0.4963 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.2006, allocations: 2.4 MB / 0.4986 GB, free: 4.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.2011, allocations: 0.9066 MB / 0.4995 GB, free: 3.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.2013, allocations: 63.41 kB / 0.4996 GB, free: 3.277 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.2013, allocations: 0 / 0.4996 GB, free: 3.277 MB / 382.1 MB Notification: Performance of Templates: time 0.2229/0.4242, allocations: 17.15 MB / 0.5163 GB, free: 45.17 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches