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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001737/0.001737, allocations: 117 kB / 19.13 MB, free: 3.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002274/0.002274, allocations: 214.5 kB / 22.08 MB, free: 0.9727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 252.3 MB, free: 68 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2302/0.2302, allocations: 46.16 MB / 351.8 MB, free: 14.37 MB / 286.1 MB " [Timeout remaining time 180] 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=5020,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=5020,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 81.69 kB / 490.8 MB, free: 27.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1398, allocations: 62.44 MB / 0.5403 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005721/0.1456, allocations: 4.114 MB / 0.5443 GB, free: 136 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.1485, allocations: 1.488 MB / 0.5458 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.1488, allocations: 11.94 kB / 0.5458 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.1493, allocations: 130.8 kB / 0.5459 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000582/0.1499, allocations: 281.9 kB / 0.5462 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006707/0.1506, allocations: 351.4 kB / 0.5465 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.1517, allocations: 1.093 MB / 0.5476 GB, free: 12.78 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.152, allocations: 190.4 kB / 0.5478 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005994/0.1526, allocations: 482.5 kB / 0.5482 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006344/0.1532, allocations: 0.506 MB / 0.5487 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.1534, allocations: 84 kB / 0.5488 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002874/0.1537, allocations: 139.9 kB / 0.549 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/0.154, allocations: 235.3 kB / 0.5492 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004132/0.1544, allocations: 421.9 kB / 0.5496 GB, free: 10.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1555, allocations: 1.039 MB / 0.5506 GB, free: 9.695 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1556, allocations: 0 / 0.5506 GB, free: 9.695 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1556, allocations: 0 / 0.5506 GB, free: 9.695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1556, allocations: 4 kB / 0.5506 GB, free: 9.691 MB / 414.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.002366/0.1579, allocations: 1.168 MB / 0.5517 GB, free: 8.473 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.158, allocations: 12.03 kB / 0.5517 GB, free: 8.461 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005092/0.1585, allocations: 132.3 kB / 0.5519 GB, free: 8.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007795/0.1593, allocations: 485.8 kB / 0.5523 GB, free: 7.816 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.929e-05/0.1594, allocations: 53.69 kB / 0.5524 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.1595, allocations: 71.83 kB / 0.5525 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.1611, allocations: 0.8107 MB / 0.5532 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.1611, allocations: 15.92 kB / 0.5533 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.019e-05/0.1612, allocations: 28 kB / 0.5533 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.1612, allocations: 16 kB / 0.5533 GB, free: 6.789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.1629, allocations: 0.7288 MB / 0.554 GB, free: 6.062 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004385/0.1673, allocations: 2.575 MB / 0.5565 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.1689, allocations: 0.6679 MB / 0.5572 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007748/0.1697, allocations: 375.3 kB / 0.5575 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.713e-05/0.1697, allocations: 23.91 kB / 0.5576 GB, free: 2.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.1698, allocations: 38.81 kB / 0.5576 GB, free: 2.219 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 4.278e-06/0.1698, allocations: 0 / 0.5576 GB, free: 2.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008466/0.1783, allocations: 3.564 MB / 0.5611 GB, free: 14.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.1784, allocations: 140.5 kB / 0.5612 GB, free: 14.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006325/0.179, allocations: 477.9 kB / 0.5617 GB, free: 13.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.1792, allocations: 61.69 kB / 0.5617 GB, free: 13.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.1794, allocations: 285 kB / 0.562 GB, free: 13.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/0.1797, allocations: 301.6 kB / 0.5623 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.18, allocations: 166.5 kB / 0.5624 GB, free: 12.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.1802, allocations: 370.8 kB / 0.5628 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008198/0.181, allocations: 373.8 kB / 0.5632 GB, free: 12.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009622/0.182, allocations: 0.5138 MB / 0.5637 GB, free: 11.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.1835, allocations: 0.6964 MB / 0.5643 GB, free: 10.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1835, allocations: 4 kB / 0.5643 GB, free: 10.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002851/0.1863, allocations: 1.207 MB / 0.5655 GB, free: 9.641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.1864, allocations: 8 kB / 0.5655 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.1864, allocations: 4 kB / 0.5655 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.1878, allocations: 0.5813 MB / 0.5661 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000526/0.1883, allocations: 147.7 kB / 0.5662 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004086/0.1924, allocations: 3.852 MB / 0.57 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009634/0.1934, allocations: 139.7 kB / 0.5701 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.1935, allocations: 44.05 kB / 0.5702 GB, free: 4.641 MB / 430.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.0003868/0.1939, allocations: 224.2 kB / 0.5704 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.1941, allocations: 75.53 kB / 0.5705 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.1943, allocations: 88.83 kB / 0.5706 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.1943, allocations: 12.03 kB / 0.5706 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.1943, allocations: 12 kB / 0.5706 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.996e-06/0.1943, allocations: 7.984 kB / 0.5706 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004045/0.1984, allocations: 2.152 MB / 0.5727 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.1984, allocations: 4 kB / 0.5727 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.199, allocations: 115.8 kB / 0.5728 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.2002, allocations: 0.5344 MB / 0.5733 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.636e-05/0.2003, allocations: 39.89 kB / 0.5734 GB, free: 1.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003709/0.204, allocations: 3.639 MB / 0.5769 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.204, allocations: 0 / 0.5769 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003391/0.2074, allocations: 1.75 MB / 0.5786 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003821/0.2078, allocations: 232.4 kB / 0.5788 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.2079, allocations: 28 kB / 0.5789 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008987/0.2088, allocations: 123.8 kB / 0.579 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004638/0.2093, allocations: 183.7 kB / 0.5792 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-05/0.2094, allocations: 39.95 kB / 0.5792 GB, free: 11.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004064/0.2098, allocations: 326.9 kB / 0.5795 GB, free: 10.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2098, allocations: 0 / 0.5795 GB, free: 10.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008755/0.2107, allocations: 204 kB / 0.5797 GB, free: 10.54 MB / 446.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.001413/0.2121, allocations: 398.6 kB / 0.5801 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.2146, allocations: 1.049 MB / 0.5811 GB, free: 9.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2146, allocations: 8.062 kB / 0.5811 GB, free: 9.195 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.2159, allocations: 0.6187 MB / 0.5817 GB, free: 8.566 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.2171, allocations: 152.5 kB / 0.5819 GB, free: 8.422 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004839/0.2219, allocations: 2.193 MB / 0.584 GB, free: 6.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.2225, allocations: 0.9263 MB / 0.5849 GB, free: 5.227 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.2228, allocations: 71.39 kB / 0.585 GB, free: 5.156 MB / 446.1 MB Notification: Performance of SimCode: time 2.464e-06/0.2228, allocations: 0 / 0.585 GB, free: 5.156 MB / 446.1 MB Notification: Performance of Templates: time 0.02356/0.2464, allocations: 18.62 MB / 0.6032 GB, free: 2.547 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.37507139495574]