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.0009838/0.0009836, allocations: 97.23 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009585/0.0009585, allocations: 197.2 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2275/0.2275, allocations: 46.19 MB / 344.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002477, allocations: 4 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 63.57 MB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005534/0.1478, allocations: 3.536 MB / 485.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.1513, allocations: 1.411 MB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006729/0.152, allocations: 15.94 kB / 487.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006014/0.1526, allocations: 95.27 kB / 487.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.1538, allocations: 238.5 kB / 487.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009435/0.1547, allocations: 275.5 kB / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.1561, allocations: 0.9522 MB / 488.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004138/0.1565, allocations: 153 kB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008838/0.1574, allocations: 430.5 kB / 489.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000869/0.1583, allocations: 470.2 kB / 489.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002276/0.1585, allocations: 44 kB / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003827/0.1589, allocations: 91.98 kB / 490.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002686/0.1592, allocations: 187.3 kB / 490.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.1595, allocations: 149.3 kB / 490.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008748/0.1604, allocations: 0.7249 MB / 491.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1604, allocations: 0 / 491.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1604, allocations: 0 / 491.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.1604, allocations: 0 / 491.1 MB, free: 11.73 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.002412/0.1629, allocations: 1.054 MB / 492.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.1629, allocations: 8.031 kB / 492.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006815/0.1636, allocations: 134.9 kB / 492.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007453/0.1644, allocations: 468.3 kB / 492.8 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.1644, allocations: 49.31 kB / 492.8 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1646, allocations: 63.98 kB / 492.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.1662, allocations: 0.8262 MB / 493.7 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.1663, allocations: 15.84 kB / 493.7 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.1664, allocations: 24 kB / 493.7 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.1664, allocations: 16 kB / 493.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.168, allocations: 0.7609 MB / 494.5 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004051/0.1721, allocations: 2.68 MB / 497.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.1734, allocations: 0.6777 MB / 497.9 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.1741, allocations: 383.7 kB / 498.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.735e-05/0.1742, allocations: 16.17 kB / 498.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1742, allocations: 42.73 kB / 498.3 MB, free: 4.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.384e-06/0.1742, allocations: 4 kB / 498.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.007594/0.1818, allocations: 3.73 MB / 0.4903 GB, free: 252 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.1819, allocations: 140.5 kB / 0.4904 GB, free: 80 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006001/0.1825, allocations: 470 kB / 0.4909 GB, free: 15.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.65e-05/0.1826, allocations: 53.7 kB / 0.4909 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.1828, allocations: 288.4 kB / 0.4912 GB, free: 15.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/0.1831, allocations: 284.2 kB / 0.4915 GB, free: 14.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.043e-05/0.1831, allocations: 19.98 kB / 0.4915 GB, free: 14.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1833, allocations: 374.8 kB / 0.4918 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007479/0.1841, allocations: 373.8 kB / 0.4922 GB, free: 14.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000854/0.1849, allocations: 0.5332 MB / 0.4927 GB, free: 13.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006908/0.1856, allocations: 320.2 kB / 0.493 GB, free: 13.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1856, allocations: 3.938 kB / 0.493 GB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002667/0.1883, allocations: 1.234 MB / 0.4942 GB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.1884, allocations: 10.66 kB / 0.4942 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1884, allocations: 4.094 kB / 0.4942 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.1897, allocations: 0.5853 MB / 0.4948 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005297/0.1902, allocations: 151.8 kB / 0.495 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.1939, allocations: 3.681 MB / 0.4986 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009854/0.1949, allocations: 195.9 kB / 0.4987 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.928e-05/0.195, allocations: 35.94 kB / 0.4988 GB, free: 7.184 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.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003619/0.1954, allocations: 228.2 kB / 0.499 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.1956, allocations: 67.16 kB / 0.4991 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.1958, allocations: 100.8 kB / 0.4992 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.505e-06/0.1958, allocations: 8 kB / 0.4992 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1958, allocations: 0 / 0.4992 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.1958, allocations: 7.984 kB / 0.4992 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.1996, allocations: 2.196 MB / 0.5013 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1996, allocations: 0 / 0.5013 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.2001, allocations: 123.8 kB / 0.5014 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.2012, allocations: 0.5343 MB / 0.502 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.794e-05/0.2013, allocations: 31.97 kB / 0.502 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00345/0.2048, allocations: 3.543 MB / 0.5054 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.2048, allocations: 3.953 kB / 0.5054 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3037/0.5085, allocations: 1.756 MB / 0.5072 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004368/0.509, allocations: 230.1 kB / 0.5074 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.5092, allocations: 27.31 kB / 0.5074 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009417/0.5101, allocations: 183.5 kB / 0.5076 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006331/0.5108, allocations: 214.1 kB / 0.5078 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.744e-05/0.5109, allocations: 39.19 kB / 0.5078 GB, free: 39.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005609/0.5114, allocations: 321.3 kB / 0.5081 GB, free: 39.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5114, allocations: 0 / 0.5081 GB, free: 39.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001281/0.5127, allocations: 212.7 kB / 0.5083 GB, free: 39.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009891/0.5137, allocations: 385.9 kB / 0.5087 GB, free: 39.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002345/0.5161, allocations: 1.066 MB / 0.5097 GB, free: 39.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5161, allocations: 0.875 kB / 0.5097 GB, free: 39.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.5174, allocations: 0.642 MB / 0.5104 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.0009841/0.5184, allocations: 126.4 kB / 0.5105 GB, free: 38.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004821/0.5232, allocations: 2.66 MB / 0.5131 GB, free: 37.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.5238, allocations: 0.9227 MB / 0.514 GB, free: 36.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.5242, allocations: 71.48 kB / 0.5141 GB, free: 36.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.5243, allocations: 58.05 kB / 0.5141 GB, free: 36.66 MB / 382.1 MB Notification: Performance of SimCode: time 4.7e-07/0.5243, allocations: 0 / 0.5141 GB, free: 36.66 MB / 382.1 MB Notification: Performance of Templates: time 0.02937/0.5537, allocations: 14.35 MB / 0.5281 GB, free: 31.48 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