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.001539/0.001539, allocations: 103.1 kB / 18.4 MB, free: 4.676 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.001677/0.001677, allocations: 188 kB / 19.34 MB, free: 3.742 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.467/1.467, allocations: 222.9 MB / 243 MB, free: 15.07 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.2125/0.2125, allocations: 44.17 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001298, allocations: 58.88 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1367, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005308/0.1421, allocations: 3.922 MB / 474.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.1446, allocations: 1.227 MB / 475.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003043/0.145, allocations: 11.94 kB / 475.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1453, allocations: 114.9 kB / 476 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005139/0.1459, allocations: 210.2 kB / 476.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008591/0.1468, allocations: 343.4 kB / 476.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009965/0.1478, allocations: 1.03 MB / 477.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.1481, allocations: 178.3 kB / 477.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000513/0.1486, allocations: 450.6 kB / 478.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006232/0.1492, allocations: 486.2 kB / 478.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.1494, allocations: 80 kB / 478.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.1496, allocations: 128 kB / 478.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.1498, allocations: 199.4 kB / 479 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003435/0.1502, allocations: 398 kB / 479.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008828/0.1511, allocations: 0.9343 MB / 480.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1511, allocations: 4 kB / 480.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1511, allocations: 0 / 480.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1511, allocations: 4 kB / 480.4 MB, free: 3.953 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.002127/0.1533, allocations: 1.087 MB / 481.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.1533, allocations: 12.03 kB / 481.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.1535, allocations: 80 kB / 481.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008173/0.1544, allocations: 441.7 kB / 482 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.1544, allocations: 53.62 kB / 482 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.1546, allocations: 72.03 kB / 482.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.1561, allocations: 0.8179 MB / 482.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.1561, allocations: 11.89 kB / 482.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.056e-05/0.1562, allocations: 24 kB / 482.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.1562, allocations: 16 kB / 483 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.158, allocations: 0.7592 MB / 483.7 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.1621, allocations: 2.55 MB / 486.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.1634, allocations: 0.623 MB / 486.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006778/0.1641, allocations: 379.3 kB / 487.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.592e-05/0.1641, allocations: 8 kB / 487.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.1642, allocations: 42.56 kB / 487.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.837e-06/0.1642, allocations: 3.984 kB / 487.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007296/0.1715, allocations: 3.547 MB / 490.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.1716, allocations: 144.5 kB / 491 MB, free: 8.715 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.1721, allocations: 425.8 kB / 491.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.069e-05/0.1722, allocations: 49.7 kB / 491.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.1724, allocations: 276.4 kB / 491.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.1726, allocations: 264.4 kB / 492 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.1729, allocations: 170.5 kB / 492.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1731, allocations: 370.8 kB / 492.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007326/0.1738, allocations: 393.8 kB / 492.9 MB, free: 6.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00086/0.1747, allocations: 0.5452 MB / 493.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.176, allocations: 0.7322 MB / 494.2 MB, free: 5.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.176, allocations: 4 kB / 494.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002609/0.1786, allocations: 1.283 MB / 495.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.1787, allocations: 4.281 kB / 495.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.1787, allocations: 11.94 kB / 495.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.1801, allocations: 0.7607 MB / 496.3 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005367/0.1806, allocations: 155.7 kB / 496.4 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.183, allocations: 2.694 MB / 499.1 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008058/0.1838, allocations: 147.6 kB / 499.2 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.827e-05/0.1839, allocations: 39.98 kB / 499.3 MB, free: 160 kB / 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.0003588/0.1842, allocations: 216.2 kB / 499.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.1844, allocations: 59.34 kB / 499.6 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.1846, allocations: 83.86 kB / 499.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.1846, allocations: 8 kB / 499.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.1846, allocations: 8 kB / 499.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.1846, allocations: 3.984 kB / 499.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.1885, allocations: 2.176 MB / 0.4901 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1885, allocations: 3.984 kB / 0.4901 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.1891, allocations: 107.9 kB / 0.4902 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.1903, allocations: 0.7215 MB / 0.4909 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.177e-05/0.1904, allocations: 35.95 kB / 0.4909 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/0.1925, allocations: 2.639 MB / 0.4935 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1926, allocations: 4.031 kB / 0.4935 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.1956, allocations: 1.768 MB / 0.4952 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003375/0.1959, allocations: 216.2 kB / 0.4954 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.1961, allocations: 35.92 kB / 0.4955 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007721/0.1968, allocations: 124 kB / 0.4956 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/0.1972, allocations: 139.8 kB / 0.4957 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.1972, allocations: 39.95 kB / 0.4957 GB, free: 7.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.1976, allocations: 295.1 kB / 0.496 GB, free: 7.258 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1976, allocations: 0 / 0.496 GB, free: 7.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007817/0.1984, allocations: 196 kB / 0.4962 GB, free: 7.066 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.0002712/0.1987, allocations: 151.1 kB / 0.4964 GB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.2006, allocations: 0.957 MB / 0.4973 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2006, allocations: 128 / 0.4973 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.2017, allocations: 0.5058 MB / 0.4978 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000906/0.2027, allocations: 126 kB / 0.4979 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.207, allocations: 2.072 MB / 0.4999 GB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.2075, allocations: 0.9105 MB / 0.5008 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.2078, allocations: 60.83 kB / 0.5009 GB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.2079, allocations: 51.42 kB / 0.5009 GB, free: 2.176 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2079, allocations: 0 / 0.5009 GB, free: 2.176 MB / 382.1 MB Notification: Performance of Templates: time 0.2574/0.4654, allocations: 15.68 MB / 0.5162 GB, free: 45.67 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 -s cvode -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