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.00105/0.00105, allocations: 92.52 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001357, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.7 MB / 246.8 MB, free: 9.586 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2234/0.2234, allocations: 46.19 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003391, allocations: 8 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1311, allocations: 63.57 MB / 483.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004051/0.1352, allocations: 3.721 MB / 486.8 MB, free: 420 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1375, allocations: 1.454 MB / 488.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002232/0.1378, allocations: 11.94 kB / 488.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.1381, allocations: 99.27 kB / 488.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.1386, allocations: 250.5 kB / 488.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000537/0.1392, allocations: 311.6 kB / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008527/0.14, allocations: 1.034 MB / 489.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1403, allocations: 166 kB / 490.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005396/0.1409, allocations: 426.4 kB / 490.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006014/0.1415, allocations: 494 kB / 491 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1416, allocations: 40 kB / 491 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002663/0.1419, allocations: 95.98 kB / 491.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.1421, allocations: 195.2 kB / 491.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.1426, allocations: 407.6 kB / 491.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009831/0.1435, allocations: 0.9343 MB / 492.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.567e-06/0.1436, allocations: 8 kB / 492.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.468e-06/0.1436, allocations: 4 kB / 492.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1436, allocations: 3.938 kB / 492.7 MB, free: 10.5 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.002276/0.1459, allocations: 1.056 MB / 493.7 MB, free: 9.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1459, allocations: 8.875 kB / 493.7 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004833/0.1464, allocations: 135.9 kB / 493.9 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006145/0.147, allocations: 469.4 kB / 494.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.545e-05/0.1471, allocations: 53.69 kB / 494.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.1473, allocations: 68.03 kB / 494.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1487, allocations: 0.8301 MB / 495.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.1487, allocations: 7.906 kB / 495.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.1488, allocations: 31.94 kB / 495.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.1488, allocations: 20 kB / 495.3 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.1504, allocations: 0.7639 MB / 496.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.1549, allocations: 2.672 MB / 498.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1564, allocations: 0.6852 MB / 499.4 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/0.1571, allocations: 391.2 kB / 499.8 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.689e-05/0.1572, allocations: 8 kB / 499.8 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.1572, allocations: 50.5 kB / 499.9 MB, free: 2.973 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.885e-06/0.1572, allocations: 0 / 499.9 MB, free: 2.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.00822/0.1655, allocations: 3.743 MB / 0.4918 GB, free: 14.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.1656, allocations: 136.5 kB / 0.492 GB, free: 14.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005415/0.1661, allocations: 470 kB / 0.4924 GB, free: 14.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.26e-05/0.1662, allocations: 61.62 kB / 0.4925 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.1664, allocations: 284.6 kB / 0.4927 GB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.1667, allocations: 288.1 kB / 0.493 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1668, allocations: 81.67 kB / 0.4931 GB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1669, allocations: 370.8 kB / 0.4934 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007955/0.1677, allocations: 381.8 kB / 0.4938 GB, free: 12.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008923/0.1686, allocations: 0.5255 MB / 0.4943 GB, free: 12.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.17, allocations: 0.7392 MB / 0.495 GB, free: 11.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1701, allocations: 0 / 0.495 GB, free: 11.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002673/0.1727, allocations: 1.238 MB / 0.4962 GB, free: 10.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.1728, allocations: 4 kB / 0.4962 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1728, allocations: 4 kB / 0.4963 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.1741, allocations: 0.5775 MB / 0.4968 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.1746, allocations: 159.8 kB / 0.497 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.1781, allocations: 3.679 MB / 0.5006 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.1792, allocations: 199.8 kB / 0.5008 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.1793, allocations: 39.98 kB / 0.5008 GB, free: 5.355 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.0003756/0.1797, allocations: 224.1 kB / 0.501 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.1798, allocations: 75.16 kB / 0.5011 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.1801, allocations: 96.77 kB / 0.5012 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.1801, allocations: 8 kB / 0.5012 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1801, allocations: 4 kB / 0.5012 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.1801, allocations: 3.984 kB / 0.5012 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003975/0.1841, allocations: 2.193 MB / 0.5033 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.1841, allocations: 8 kB / 0.5033 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.1847, allocations: 123.8 kB / 0.5035 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.1859, allocations: 0.5383 MB / 0.504 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.186, allocations: 27.97 kB / 0.504 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.284/0.47, allocations: 3.531 MB / 0.5075 GB, free: 33.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4701, allocations: 0.8438 kB / 0.5075 GB, free: 33.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003616/0.4737, allocations: 1.779 MB / 0.5092 GB, free: 32.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003803/0.4741, allocations: 232.6 kB / 0.5094 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.4742, allocations: 29.55 kB / 0.5094 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009788/0.4752, allocations: 176.7 kB / 0.5096 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005047/0.4757, allocations: 185 kB / 0.5098 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.326e-05/0.4758, allocations: 32.72 kB / 0.5098 GB, free: 32.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000415/0.4762, allocations: 325.9 kB / 0.5101 GB, free: 32.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4762, allocations: 0 / 0.5101 GB, free: 32.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008858/0.4771, allocations: 211.3 kB / 0.5103 GB, free: 32.8 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.000934/0.4781, allocations: 401.4 kB / 0.5107 GB, free: 32.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.4804, allocations: 1.076 MB / 0.5118 GB, free: 32.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4804, allocations: 3.656 kB / 0.5118 GB, free: 32.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.4818, allocations: 0.6377 MB / 0.5124 GB, free: 32.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.483, allocations: 126.6 kB / 0.5125 GB, free: 32.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/0.4879, allocations: 2.736 MB / 0.5152 GB, free: 31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.4884, allocations: 0.9254 MB / 0.5161 GB, free: 30.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003561/0.4887, allocations: 76.03 kB / 0.5162 GB, free: 30.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.4889, allocations: 57.84 kB / 0.5162 GB, free: 30.25 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4889, allocations: 0.875 kB / 0.5162 GB, free: 30.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02659/0.5155, allocations: 14.78 MB / 0.5306 GB, free: 25.16 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