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.001564/0.001564, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001831/0.001831, allocations: 194 kB / 18.12 MB, free: 5.383 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.387/1.387, allocations: 222.9 MB / 241.8 MB, free: 15.44 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.2641/0.2641, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 67.33 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1262, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005303/0.1315, allocations: 3.93 MB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.1337, allocations: 1.227 MB / 473.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.134, allocations: 11.94 kB / 473.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.1343, allocations: 83.33 kB / 473.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.1346, allocations: 178.7 kB / 473.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005728/0.1352, allocations: 303.6 kB / 474.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007772/0.136, allocations: 0.9716 MB / 475.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.1363, allocations: 157.9 kB / 475.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004327/0.1367, allocations: 406.5 kB / 475.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.1372, allocations: 470.1 kB / 476.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.1373, allocations: 44 kB / 476.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.1375, allocations: 91.95 kB / 476.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.1377, allocations: 171.4 kB / 476.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003286/0.138, allocations: 374 kB / 476.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007698/0.1388, allocations: 0.8723 MB / 477.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1388, allocations: 0 / 477.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1388, allocations: 0 / 477.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1388, allocations: 0 / 477.8 MB, free: 5.559 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.0021/0.1409, allocations: 1.095 MB / 478.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.141, allocations: 12.03 kB / 478.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1411, allocations: 80 kB / 478.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005482/0.1417, allocations: 433.6 kB / 479.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.403e-05/0.1418, allocations: 45.69 kB / 479.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1419, allocations: 71.97 kB / 479.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.1434, allocations: 0.8218 MB / 480.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.1435, allocations: 7.906 kB / 480.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-05/0.1436, allocations: 24 kB / 480.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1436, allocations: 16 kB / 480.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.1452, allocations: 0.7659 MB / 481.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0041/0.1493, allocations: 2.562 MB / 483.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.1506, allocations: 0.6269 MB / 484.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007319/0.1514, allocations: 379.2 kB / 484.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.297e-05/0.1515, allocations: 12 kB / 484.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.1515, allocations: 46.5 kB / 484.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.144e-06/0.1515, allocations: 0 / 484.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.007891/0.1594, allocations: 3.552 MB / 488.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1595, allocations: 140.5 kB / 488.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005216/0.1601, allocations: 421.8 kB / 488.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.496e-05/0.1602, allocations: 49.7 kB / 488.9 MB, free: 9.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.1604, allocations: 276.4 kB / 489.2 MB, free: 9.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.1607, allocations: 268.4 kB / 489.4 MB, free: 9.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.161, allocations: 170.5 kB / 489.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1612, allocations: 374.8 kB / 490 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007778/0.162, allocations: 389.8 kB / 490.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009096/0.1629, allocations: 0.5413 MB / 490.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.1643, allocations: 0.7368 MB / 491.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1643, allocations: 0 / 491.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002798/0.1671, allocations: 1.286 MB / 492.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.1671, allocations: 4 kB / 492.9 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.1672, allocations: 7.938 kB / 492.9 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.1687, allocations: 0.7607 MB / 493.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.1692, allocations: 151.7 kB / 493.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.1717, allocations: 2.69 MB / 496.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/0.1725, allocations: 143.7 kB / 496.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.659e-05/0.1726, allocations: 36 kB / 496.7 MB, free: 1.762 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.000352/0.1729, allocations: 216.7 kB / 496.9 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.1731, allocations: 63.34 kB / 497 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.1733, allocations: 91.84 kB / 497 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1733, allocations: 8 kB / 497.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.1733, allocations: 4 kB / 497.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.1734, allocations: 7.969 kB / 497.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003903/0.1773, allocations: 2.171 MB / 499.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1773, allocations: 0 / 499.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.1778, allocations: 111.9 kB / 499.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.1791, allocations: 0.7218 MB / 0.4883 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/0.1792, allocations: 31.95 kB / 0.4884 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.1815, allocations: 2.654 MB / 0.491 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1816, allocations: 384 / 0.491 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.1849, allocations: 1.766 MB / 0.4927 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.1852, allocations: 224.2 kB / 0.4929 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.1854, allocations: 23.94 kB / 0.4929 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007789/0.1861, allocations: 127.8 kB / 0.4931 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.1865, allocations: 147.7 kB / 0.4932 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.471e-05/0.1866, allocations: 35.97 kB / 0.4932 GB, free: 9.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.1869, allocations: 291.1 kB / 0.4935 GB, free: 8.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1869, allocations: 0 / 0.4935 GB, free: 8.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000895/0.1878, allocations: 200 kB / 0.4937 GB, free: 8.652 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.0003211/0.1881, allocations: 152.7 kB / 0.4938 GB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002141/0.1903, allocations: 0.9414 MB / 0.4948 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1903, allocations: 0 / 0.4948 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.1915, allocations: 0.5038 MB / 0.4953 GB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.1925, allocations: 113.9 kB / 0.4954 GB, free: 6.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004811/0.1974, allocations: 2.353 MB / 0.4977 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.1979, allocations: 0.9105 MB / 0.4985 GB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002922/0.1982, allocations: 60.83 kB / 0.4986 GB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.1983, allocations: 43.41 kB / 0.4986 GB, free: 3.512 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1983, allocations: 0 / 0.4986 GB, free: 3.512 MB / 382.1 MB Notification: Performance of Templates: time 0.2457/0.444, allocations: 14.58 MB / 0.5129 GB, free: 46.97 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