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.001169/0.001168, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2411/0.2411, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 83.19 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1377, allocations: 62.44 MB / 480 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006352/0.1441, allocations: 4.106 MB / 484.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003211/0.1474, allocations: 1.492 MB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000605/0.148, allocations: 11.94 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005312/0.1486, allocations: 126.8 kB / 485.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001044/0.1496, allocations: 285.9 kB / 486 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009782/0.1506, allocations: 343.4 kB / 486.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.1522, allocations: 1.081 MB / 487.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.1526, allocations: 198.4 kB / 487.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009135/0.1535, allocations: 478.5 kB / 488.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000903/0.1544, allocations: 0.506 MB / 488.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.1546, allocations: 84 kB / 488.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.155, allocations: 140 kB / 488.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002707/0.1553, allocations: 235.2 kB / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004389/0.1558, allocations: 425.9 kB / 489.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1568, allocations: 1.001 MB / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1568, allocations: 0 / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1569, allocations: 4 kB / 490.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1569, allocations: 0 / 490.5 MB, free: 10.74 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.002304/0.1592, allocations: 1.161 MB / 491.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1592, allocations: 12.02 kB / 491.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005154/0.1598, allocations: 119.9 kB / 491.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006321/0.1604, allocations: 473.4 kB / 492.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/0.1605, allocations: 53.67 kB / 492.3 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.1606, allocations: 68.12 kB / 492.3 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.1621, allocations: 0.8145 MB / 493.2 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.1621, allocations: 7.906 kB / 493.2 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.018e-05/0.1622, allocations: 27.98 kB / 493.2 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1622, allocations: 16 kB / 493.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.1639, allocations: 0.7374 MB / 493.9 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00437/0.1683, allocations: 2.601 MB / 496.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.1698, allocations: 0.6624 MB / 497.2 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007496/0.1705, allocations: 376.6 kB / 497.6 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.902e-05/0.1706, allocations: 8 kB / 497.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.1706, allocations: 58.42 kB / 497.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.896e-06/0.1707, allocations: 0 / 497.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008578/0.1792, allocations: 3.528 MB / 0.4894 GB, free: 15.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.1793, allocations: 140.5 kB / 0.4896 GB, free: 15.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006785/0.18, allocations: 481.9 kB / 0.49 GB, free: 14.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-05/0.1801, allocations: 53.7 kB / 0.4901 GB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.1804, allocations: 280.6 kB / 0.4903 GB, free: 14.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.1807, allocations: 291.9 kB / 0.4906 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003225/0.181, allocations: 170.5 kB / 0.4908 GB, free: 14.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1812, allocations: 370.8 kB / 0.4911 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008199/0.182, allocations: 365.8 kB / 0.4915 GB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009659/0.183, allocations: 0.5138 MB / 0.492 GB, free: 12.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.1844, allocations: 0.7084 MB / 0.4927 GB, free: 11.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.1844, allocations: 0 / 0.4927 GB, free: 11.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002941/0.1874, allocations: 1.207 MB / 0.4939 GB, free: 10.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.1874, allocations: 8 kB / 0.4939 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.1875, allocations: 4 kB / 0.4939 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.1889, allocations: 0.5695 MB / 0.4944 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.1894, allocations: 143.8 kB / 0.4946 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003857/0.1933, allocations: 3.858 MB / 0.4983 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.1944, allocations: 147.7 kB / 0.4985 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.614e-05/0.1945, allocations: 39.98 kB / 0.4985 GB, free: 5.754 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.0004576/0.195, allocations: 208.3 kB / 0.4987 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.1952, allocations: 79.14 kB / 0.4988 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.1954, allocations: 84.84 kB / 0.4989 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1955, allocations: 16 kB / 0.4989 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.1955, allocations: 4 kB / 0.4989 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.1955, allocations: 7.984 kB / 0.4989 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00429/0.1998, allocations: 2.171 MB / 0.501 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1998, allocations: 7.938 kB / 0.501 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005561/0.2004, allocations: 111.9 kB / 0.5011 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.2015, allocations: 0.5344 MB / 0.5016 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.66e-05/0.2016, allocations: 31.95 kB / 0.5017 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.246/0.4476, allocations: 3.644 MB / 0.5052 GB, free: 39.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4477, allocations: 5.312 kB / 0.5052 GB, free: 39.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/0.4512, allocations: 1.725 MB / 0.5069 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/0.4516, allocations: 229.3 kB / 0.5071 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4518, allocations: 28.98 kB / 0.5072 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009269/0.4527, allocations: 122.7 kB / 0.5073 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004834/0.4532, allocations: 186.4 kB / 0.5075 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/0.4533, allocations: 35.44 kB / 0.5075 GB, free: 39.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004323/0.4537, allocations: 334.5 kB / 0.5078 GB, free: 39.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4537, allocations: 0 / 0.5078 GB, free: 39.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009398/0.4547, allocations: 213.9 kB / 0.508 GB, free: 39.35 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.0009064/0.4556, allocations: 394.6 kB / 0.5084 GB, free: 39.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.458, allocations: 1.069 MB / 0.5094 GB, free: 38.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.458, allocations: 0 / 0.5094 GB, free: 38.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.4593, allocations: 0.6295 MB / 0.5101 GB, free: 38.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.4604, allocations: 136.9 kB / 0.5102 GB, free: 38.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005204/0.4656, allocations: 2.17 MB / 0.5123 GB, free: 37.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006894/0.4663, allocations: 0.9387 MB / 0.5132 GB, free: 36.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.4667, allocations: 74.08 kB / 0.5133 GB, free: 36.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.4669, allocations: 60.09 kB / 0.5133 GB, free: 36.55 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4669, allocations: 0 / 0.5133 GB, free: 36.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02601/0.493, allocations: 16 MB / 0.529 GB, free: 30.52 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/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_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches