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.001577/0.001577, allocations: 104 kB / 17.63 MB, free: 5.543 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.002318/0.002318, allocations: 192.1 kB / 18.56 MB, free: 4.621 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.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.1971/0.1971, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 64.39 kB / 408.4 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1258, allocations: 60.83 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005445/0.1313, allocations: 3.911 MB / 473.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.1338, allocations: 1.239 MB / 474.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.1342, allocations: 11.94 kB / 474.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003687/0.1346, allocations: 114.9 kB / 474.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000442/0.1351, allocations: 206.2 kB / 474.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007389/0.1358, allocations: 347.4 kB / 475.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009481/0.1368, allocations: 1.019 MB / 476.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003248/0.1371, allocations: 178.3 kB / 476.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004655/0.1376, allocations: 438.6 kB / 476.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005298/0.1381, allocations: 490.2 kB / 477.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.1383, allocations: 80 kB / 477.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.1385, allocations: 123.9 kB / 477.4 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.1387, allocations: 203.4 kB / 477.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003539/0.1391, allocations: 402 kB / 478 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00083/0.1399, allocations: 0.9308 MB / 478.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.14, allocations: 0 / 478.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.14, allocations: 0 / 478.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.14, allocations: 0 / 478.9 MB, free: 4.703 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.002103/0.1421, allocations: 1.083 MB / 480 MB, free: 3.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1421, allocations: 8.031 kB / 480 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.1423, allocations: 80 kB / 480.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.1429, allocations: 437.6 kB / 480.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.1429, allocations: 45.69 kB / 480.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.143, allocations: 71.97 kB / 480.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1444, allocations: 0.8179 MB / 481.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/0.1445, allocations: 19.83 kB / 481.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.999e-05/0.1446, allocations: 20 kB / 481.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.1446, allocations: 20 kB / 481.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.1461, allocations: 0.7553 MB / 482.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00388/0.15, allocations: 2.565 MB / 484.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.1513, allocations: 0.6375 MB / 485.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.152, allocations: 375.3 kB / 485.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.638e-05/0.1521, allocations: 8 kB / 485.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.1521, allocations: 46.56 kB / 485.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.545e-06/0.1521, allocations: 0 / 485.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007625/0.1598, allocations: 3.546 MB / 489.4 MB, free: 9.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.1599, allocations: 140.5 kB / 489.5 MB, free: 9.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005052/0.1604, allocations: 429.7 kB / 490 MB, free: 9.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.849e-05/0.1605, allocations: 49.7 kB / 490 MB, free: 8.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.1607, allocations: 276.4 kB / 490.3 MB, free: 8.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.1609, allocations: 268.4 kB / 490.5 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/0.1612, allocations: 178.5 kB / 490.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1614, allocations: 366.8 kB / 491.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007467/0.1621, allocations: 389.8 kB / 491.4 MB, free: 7.512 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008526/0.163, allocations: 0.5374 MB / 492 MB, free: 6.914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.1642, allocations: 0.7441 MB / 492.7 MB, free: 6.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1643, allocations: 0 / 492.7 MB, free: 6.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002659/0.1669, allocations: 1.282 MB / 494 MB, free: 4.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.167, allocations: 4 kB / 494 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.167, allocations: 11.94 kB / 494 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.1684, allocations: 0.7646 MB / 494.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005476/0.1689, allocations: 143.7 kB / 494.9 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/0.1712, allocations: 2.694 MB / 497.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009412/0.1722, allocations: 143.8 kB / 497.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-05/0.1723, allocations: 39.98 kB / 497.8 MB, free: 0.9102 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.0004079/0.1727, allocations: 217.1 kB / 498 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.1729, allocations: 59.34 kB / 498.1 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.173, allocations: 87.91 kB / 498.2 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.173, allocations: 12 kB / 498.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.173, allocations: 3.938 kB / 498.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1731, allocations: 3.984 kB / 498.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.1768, allocations: 2.173 MB / 0.4886 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.1769, allocations: 4 kB / 0.4886 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005272/0.1774, allocations: 115.9 kB / 0.4887 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.1786, allocations: 0.7254 MB / 0.4894 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.116e-05/0.1787, allocations: 31.95 kB / 0.4895 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/0.1813, allocations: 2.639 MB / 0.4921 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1813, allocations: 0 / 0.4921 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00328/0.1846, allocations: 1.769 MB / 0.4938 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.185, allocations: 220.2 kB / 0.494 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.1852, allocations: 31.92 kB / 0.494 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008875/0.1861, allocations: 119.8 kB / 0.4941 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003397/0.1864, allocations: 143.8 kB / 0.4943 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.229e-05/0.1865, allocations: 39.95 kB / 0.4943 GB, free: 8.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003607/0.1869, allocations: 287.1 kB / 0.4946 GB, free: 8.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-07/0.1869, allocations: 3.938 kB / 0.4946 GB, free: 8.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008652/0.1877, allocations: 204 kB / 0.4948 GB, free: 7.812 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.0002735/0.188, allocations: 148.4 kB / 0.4949 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.1902, allocations: 0.9768 MB / 0.4959 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1903, allocations: 128 / 0.4959 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.1915, allocations: 0.5111 MB / 0.4964 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.1925, allocations: 115.2 kB / 0.4965 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/0.1973, allocations: 2.09 MB / 0.4985 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.1978, allocations: 0.9066 MB / 0.4994 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003137/0.1982, allocations: 68.81 kB / 0.4995 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.1983, allocations: 51.36 kB / 0.4995 GB, free: 2.879 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1983, allocations: 0 / 0.4995 GB, free: 2.879 MB / 382.1 MB Notification: Performance of Templates: time 0.256/0.4543, allocations: 15.65 MB / 0.5148 GB, free: 46.04 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches