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.001843/0.001843, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002126/0.002126, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.261/2.261, allocations: 227.4 MB / 247.1 MB, free: 10.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 75.16 kB / 417.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1364, allocations: 62.45 MB / 480.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.007886/0.1443, allocations: 4.126 MB / 484.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003991/0.1483, allocations: 1.461 MB / 485.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007895/0.1492, allocations: 15.94 kB / 485.7 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.15, allocations: 107.2 kB / 485.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.1513, allocations: 234.5 kB / 486.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1525, allocations: 319.5 kB / 486.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.1545, allocations: 1.085 MB / 487.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000516/0.155, allocations: 190.4 kB / 487.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.1562, allocations: 490.4 kB / 488.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009217/0.1571, allocations: 0.5098 MB / 488.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001901/0.1573, allocations: 84 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005397/0.1579, allocations: 144 kB / 488.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003111/0.1582, allocations: 227.3 kB / 489.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005429/0.1587, allocations: 429.9 kB / 489.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.16, allocations: 0.7524 MB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.16, allocations: 0 / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.873e-06/0.1601, allocations: 4 kB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.1601, allocations: 0 / 490.3 MB, free: 11.46 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.003132/0.1632, allocations: 1.163 MB / 491.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.1633, allocations: 12.03 kB / 491.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006743/0.164, allocations: 119.9 kB / 491.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008664/0.1649, allocations: 473.4 kB / 492 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.1649, allocations: 49.69 kB / 492.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.1651, allocations: 80.05 kB / 492.2 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.1673, allocations: 0.8068 MB / 493 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.843e-05/0.1674, allocations: 15.84 kB / 493 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.1675, allocations: 24 kB / 493 MB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.1676, allocations: 16 kB / 493 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.17, allocations: 0.7336 MB / 493.7 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006423/0.1764, allocations: 2.593 MB / 496.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.1786, allocations: 0.6624 MB / 497 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.1798, allocations: 383.2 kB / 497.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.1799, allocations: 11.98 kB / 497.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/0.18, allocations: 46.81 kB / 497.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 6.462e-06/0.18, allocations: 0 / 497.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.01144/0.1915, allocations: 3.528 MB / 0.4892 GB, free: 208 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1916, allocations: 140.5 kB / 0.4894 GB, free: 36 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009077/0.1925, allocations: 477.9 kB / 0.4898 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.1927, allocations: 49.7 kB / 0.4899 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.193, allocations: 284.5 kB / 0.4901 GB, free: 15.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/0.1934, allocations: 296 kB / 0.4904 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004555/0.1939, allocations: 170.5 kB / 0.4906 GB, free: 14.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002917/0.1942, allocations: 374.8 kB / 0.4909 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.1953, allocations: 365.7 kB / 0.4913 GB, free: 14.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.1966, allocations: 0.5138 MB / 0.4918 GB, free: 13.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.1987, allocations: 0.7116 MB / 0.4925 GB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.1987, allocations: 0 / 0.4925 GB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003901/0.2026, allocations: 1.195 MB / 0.4936 GB, free: 11.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.2027, allocations: 14.67 kB / 0.4937 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.2027, allocations: 8 kB / 0.4937 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002928/0.2057, allocations: 0.5772 MB / 0.4942 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.2069, allocations: 139.8 kB / 0.4944 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006962/0.2139, allocations: 3.865 MB / 0.4981 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.2158, allocations: 139.6 kB / 0.4983 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.2161, allocations: 44.05 kB / 0.4983 GB, free: 6.465 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.0007319/0.2168, allocations: 220.2 kB / 0.4985 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000476/0.2173, allocations: 75.16 kB / 0.4986 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.2177, allocations: 88.83 kB / 0.4987 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.2177, allocations: 12 kB / 0.4987 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.2177, allocations: 3.938 kB / 0.4987 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/0.2177, allocations: 7.984 kB / 0.4987 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007652/0.2254, allocations: 2.159 MB / 0.5008 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-05/0.2255, allocations: 0 / 0.5008 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.2266, allocations: 123.8 kB / 0.5009 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/0.2287, allocations: 0.5303 MB / 0.5014 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/0.2289, allocations: 27.97 kB / 0.5015 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2757/0.5047, allocations: 3.642 MB / 0.505 GB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.443e-06/0.5047, allocations: 2.641 kB / 0.505 GB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/0.5096, allocations: 1.73 MB / 0.5067 GB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/0.5102, allocations: 236.4 kB / 0.5069 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.5104, allocations: 28.86 kB / 0.507 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.5116, allocations: 123.4 kB / 0.5071 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006265/0.5123, allocations: 188.2 kB / 0.5073 GB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.5124, allocations: 35.23 kB / 0.5073 GB, free: 39.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005792/0.513, allocations: 329.7 kB / 0.5076 GB, free: 39.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.513, allocations: 0 / 0.5076 GB, free: 39.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001288/0.5143, allocations: 211.1 kB / 0.5078 GB, free: 39.63 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.001211/0.5155, allocations: 394 kB / 0.5082 GB, free: 39.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003329/0.5189, allocations: 1.068 MB / 0.5092 GB, free: 39.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.5189, allocations: 0 / 0.5092 GB, free: 39.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.5207, allocations: 0.6214 MB / 0.5098 GB, free: 38.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.5223, allocations: 143.8 kB / 0.51 GB, free: 38.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007026/0.5294, allocations: 2.49 MB / 0.5124 GB, free: 37.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.53, allocations: 0.9242 MB / 0.5133 GB, free: 36.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003553/0.5304, allocations: 70.22 kB / 0.5134 GB, free: 36.64 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5304, allocations: 0 / 0.5134 GB, free: 36.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03031/0.5607, allocations: 18.57 MB / 0.5315 GB, free: 28.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/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