Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001611/0.001611, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001722/0.001723, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.12 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 72.72 kB / 418.3 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1312, allocations: 62.47 MB / 480.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006027/0.1373, allocations: 4.096 MB / 484.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002932/0.1403, allocations: 1.485 MB / 486.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003067/0.1406, allocations: 19.88 kB / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004012/0.141, allocations: 122.8 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006314/0.1417, allocations: 282 kB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007236/0.1424, allocations: 355.3 kB / 487.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1436, allocations: 1.077 MB / 488.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003301/0.1439, allocations: 194.5 kB / 488.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000658/0.1446, allocations: 482.4 kB / 488.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006595/0.1453, allocations: 0.506 MB / 489.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.1454, allocations: 84 kB / 489.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003193/0.1458, allocations: 148 kB / 489.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002643/0.146, allocations: 227.3 kB / 489.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004586/0.1465, allocations: 425.9 kB / 490.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.1476, allocations: 1.009 MB / 491.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1476, allocations: 3.938 kB / 491.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1476, allocations: 0 / 491.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.1477, allocations: 0 / 491.2 MB, free: 10.67 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002503/0.1502, allocations: 1.161 MB / 492.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1502, allocations: 12.03 kB / 492.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005389/0.1508, allocations: 119.9 kB / 492.5 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007307/0.1515, allocations: 469.4 kB / 493 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.864e-05/0.1516, allocations: 49.69 kB / 493 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.1517, allocations: 68.12 kB / 493.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1533, allocations: 0.8145 MB / 493.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.1534, allocations: 11.89 kB / 493.9 MB, free: 7.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.15e-05/0.1535, allocations: 28 kB / 493.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.1535, allocations: 16 kB / 494 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.1552, allocations: 0.7413 MB / 494.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004741/0.16, allocations: 2.59 MB / 497.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.1616, allocations: 0.6702 MB / 498 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008124/0.1624, allocations: 379.2 kB / 498.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.393e-05/0.1625, allocations: 11.98 kB / 498.3 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.1626, allocations: 50.5 kB / 498.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.915e-06/0.1626, allocations: 0 / 498.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008758/0.1713, allocations: 3.534 MB / 0.4902 GB, free: 15.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.852e-05/0.1715, allocations: 136.5 kB / 0.4903 GB, free: 15.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000633/0.1721, allocations: 477.8 kB / 0.4907 GB, free: 14.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.1722, allocations: 53.69 kB / 0.4908 GB, free: 14.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.1725, allocations: 284.6 kB / 0.4911 GB, free: 14.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002845/0.1728, allocations: 288 kB / 0.4913 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.1731, allocations: 170.5 kB / 0.4915 GB, free: 13.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.1733, allocations: 378.8 kB / 0.4919 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008492/0.1742, allocations: 361.8 kB / 0.4922 GB, free: 13.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009727/0.1751, allocations: 0.5099 MB / 0.4927 GB, free: 12.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.1766, allocations: 0.7009 MB / 0.4934 GB, free: 11.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1766, allocations: 0 / 0.4934 GB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002963/0.1796, allocations: 1.201 MB / 0.4946 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.1796, allocations: 8 kB / 0.4946 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1796, allocations: 4 kB / 0.4946 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.1811, allocations: 0.5853 MB / 0.4952 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005744/0.1817, allocations: 147.8 kB / 0.4953 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004285/0.186, allocations: 3.851 MB / 0.4991 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.1871, allocations: 151.8 kB / 0.4992 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.329e-05/0.1872, allocations: 35.98 kB / 0.4992 GB, free: 5.688 MB / 382.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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,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 (88): * Single equations (assignments): 84 * 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,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004345/0.1876, allocations: 224.2 kB / 0.4994 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.1879, allocations: 67.16 kB / 0.4995 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000198/0.1881, allocations: 92.84 kB / 0.4996 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.1881, allocations: 11.98 kB / 0.4996 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.1881, allocations: 3.938 kB / 0.4996 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.1881, allocations: 3.984 kB / 0.4996 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.1924, allocations: 2.168 MB / 0.5017 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/0.1924, allocations: 0 / 0.5017 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/0.193, allocations: 119.8 kB / 0.5019 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.1943, allocations: 0.5381 MB / 0.5024 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.1944, allocations: 31.95 kB / 0.5024 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2041/0.3985, allocations: 3.644 MB / 0.506 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3986, allocations: 4.625 kB / 0.506 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.4021, allocations: 1.728 MB / 0.5077 GB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.4025, allocations: 223.6 kB / 0.5079 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.4026, allocations: 32.31 kB / 0.5079 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009008/0.4036, allocations: 120.4 kB / 0.508 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004769/0.404, allocations: 190.7 kB / 0.5082 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-05/0.4041, allocations: 35.22 kB / 0.5082 GB, free: 39.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004358/0.4046, allocations: 325.3 kB / 0.5085 GB, free: 39.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4046, allocations: 3.828 kB / 0.5085 GB, free: 39.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009328/0.4055, allocations: 211.3 kB / 0.5087 GB, free: 39.19 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 (54): * Single equations (assignments): 50 * 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,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001378/0.4069, allocations: 405 kB / 0.5091 GB, free: 39.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.4094, allocations: 1.067 MB / 0.5102 GB, free: 38.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4094, allocations: 1.219 kB / 0.5102 GB, free: 38.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.4107, allocations: 0.6191 MB / 0.5108 GB, free: 38.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4119, allocations: 142.9 kB / 0.5109 GB, free: 38.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004701/0.4166, allocations: 2.201 MB / 0.5131 GB, free: 37.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.4171, allocations: 0.9281 MB / 0.514 GB, free: 36.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.4174, allocations: 67.2 kB / 0.514 GB, free: 36.37 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4174, allocations: 0 / 0.514 GB, free: 36.37 MB / 382.1 MB Notification: Performance of Templates: time 0.02296/0.4403, allocations: 18.57 MB / 0.5322 GB, free: 27.84 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches