Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001465, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.001529/0.001529, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.509/1.509, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2197/0.2197, allocations: 43.51 MB / 314.6 MB, free: 0.5391 MB / 254.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.00155/0.00155, allocations: 67.95 kB / 383.4 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1049, allocations: 57.8 MB / 441.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004072/0.109, allocations: 3.913 MB / 445.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1113, allocations: 1.279 MB / 446.4 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000345/0.1116, allocations: 11.94 kB / 446.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.1119, allocations: 110.8 kB / 446.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003829/0.1124, allocations: 210.2 kB / 446.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006945/0.1131, allocations: 339.5 kB / 447 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006343/0.1137, allocations: 1.026 MB / 448.1 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.1141, allocations: 182.6 kB / 448.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005343/0.1146, allocations: 438.6 kB / 448.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.1151, allocations: 490.2 kB / 449.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.1153, allocations: 76 kB / 449.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.1155, allocations: 128 kB / 449.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.1158, allocations: 203.4 kB / 449.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003487/0.1161, allocations: 402 kB / 449.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009097/0.117, allocations: 0.9266 MB / 450.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.1171, allocations: 3.938 kB / 450.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1171, allocations: 3.938 kB / 450.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1171, allocations: 0 / 450.9 MB, free: 13.18 MB / 334.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.002117/0.1192, allocations: 1.075 MB / 451.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1193, allocations: 11.89 kB / 452 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1194, allocations: 91.92 kB / 452 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005532/0.12, allocations: 429.6 kB / 452.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.1201, allocations: 45.69 kB / 452.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1202, allocations: 76.02 kB / 452.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.1216, allocations: 0.8218 MB / 453.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.1217, allocations: 4 kB / 453.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.297e-05/0.1218, allocations: 24 kB / 453.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1218, allocations: 16 kB / 453.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.1234, allocations: 0.7657 MB / 454.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/0.1276, allocations: 2.569 MB / 456.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.129, allocations: 0.6269 MB / 457.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007292/0.1297, allocations: 379.2 kB / 457.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.207e-05/0.1298, allocations: 11.98 kB / 457.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.1298, allocations: 46.56 kB / 457.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 3.426e-06/0.1299, allocations: 0 / 457.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=76): time 0.007848/0.1377, allocations: 3.538 MB / 461.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.1378, allocations: 136.5 kB / 461.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005403/0.1384, allocations: 429.8 kB / 461.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.408e-05/0.1385, allocations: 53.69 kB / 462 MB, free: 1.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.1387, allocations: 292.2 kB / 462.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.139, allocations: 260.4 kB / 462.5 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.1393, allocations: 174.5 kB / 462.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1395, allocations: 366.8 kB / 463.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008033/0.1403, allocations: 389.8 kB / 463.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008957/0.1412, allocations: 0.5413 MB / 464 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.1426, allocations: 0.7335 MB / 464.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1426, allocations: 0 / 464.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002812/0.1454, allocations: 1.29 MB / 466 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.1455, allocations: 4 kB / 466 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/0.1455, allocations: 19.88 kB / 466 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.147, allocations: 0.7568 MB / 466.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005769/0.1476, allocations: 155.7 kB / 466.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.15, allocations: 2.694 MB / 469.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009463/0.151, allocations: 139.9 kB / 469.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.943e-05/0.1511, allocations: 39.98 kB / 469.8 MB, free: 9.367 MB / 350.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.0003775/0.1515, allocations: 212.3 kB / 470 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002213/0.1517, allocations: 63.25 kB / 470.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.1519, allocations: 83.91 kB / 470.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.1519, allocations: 12 kB / 470.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.1519, allocations: 0 / 470.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.1519, allocations: 3.984 kB / 470.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004196/0.1561, allocations: 2.168 MB / 472.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.1561, allocations: 8 kB / 472.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/0.1567, allocations: 115.8 kB / 472.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.158, allocations: 0.7177 MB / 473.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.1581, allocations: 31.97 kB / 473.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/0.1605, allocations: 2.643 MB / 475.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.1605, allocations: 0 / 475.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003441/0.164, allocations: 1.776 MB / 477.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.1644, allocations: 216.2 kB / 477.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.1645, allocations: 28.17 kB / 477.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000903/0.1655, allocations: 135.8 kB / 478 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003121/0.1658, allocations: 147.8 kB / 478.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.932e-05/0.1659, allocations: 31.95 kB / 478.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003442/0.1662, allocations: 287.1 kB / 478.4 MB, free: 480 kB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1662, allocations: 0 / 478.4 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000867/0.1671, allocations: 196 kB / 478.6 MB, free: 284 kB / 350.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.0003167/0.1674, allocations: 163.1 kB / 478.8 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.1698, allocations: 0.9805 MB / 479.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1698, allocations: 0 / 479.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.171, allocations: 0.4956 MB / 480.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.1721, allocations: 118.9 kB / 480.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005107/0.1772, allocations: 2.124 MB / 482.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.1778, allocations: 0.9182 MB / 483.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.1781, allocations: 63.41 kB / 483.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1781, allocations: 0 / 483.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of Templates: time 0.02545/0.2035, allocations: 17.17 MB / 0.4889 GB, free: 10.18 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches