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.001153/0.001153, allocations: 117 kB / 18.41 MB, free: 4.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 200.5 kB / 19.36 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 75.89 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 62.44 MB / 481.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005301/0.1216, allocations: 4.099 MB / 485.6 MB, free: 428 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.1247, allocations: 1.485 MB / 487 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000335/0.125, allocations: 11.94 kB / 487.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004445/0.1255, allocations: 134.7 kB / 487.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000593/0.1261, allocations: 281.9 kB / 487.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007421/0.1269, allocations: 351.4 kB / 487.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009775/0.1279, allocations: 1.097 MB / 488.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.1282, allocations: 190.5 kB / 489.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005784/0.1288, allocations: 474.5 kB / 489.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005435/0.1293, allocations: 0.5098 MB / 490.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1294, allocations: 84 kB / 490.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.1297, allocations: 136 kB / 490.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.1299, allocations: 231.3 kB / 490.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004031/0.1304, allocations: 429.9 kB / 490.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.1315, allocations: 1.02 MB / 491.9 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1315, allocations: 0 / 491.9 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1315, allocations: 0 / 491.9 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1316, allocations: 0 / 491.9 MB, free: 10 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.002277/0.1338, allocations: 1.157 MB / 493.1 MB, free: 8.797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/0.1339, allocations: 8.031 kB / 493.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000512/0.1344, allocations: 123.9 kB / 493.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008049/0.1353, allocations: 485.4 kB / 493.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.1353, allocations: 49.69 kB / 493.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1355, allocations: 72.12 kB / 493.8 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1369, allocations: 0.8145 MB / 494.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.137, allocations: 15.84 kB / 494.6 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-05/0.137, allocations: 28 kB / 494.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.137, allocations: 12 kB / 494.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.1386, allocations: 0.7413 MB / 495.4 MB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.1428, allocations: 2.574 MB / 498 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.1442, allocations: 0.6736 MB / 498.7 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006915/0.1449, allocations: 379.2 kB / 499 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.145, allocations: 15.92 kB / 499.1 MB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.1451, allocations: 46.5 kB / 499.1 MB, free: 2.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.645e-06/0.1451, allocations: 0 / 499.1 MB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.007734/0.1528, allocations: 3.537 MB / 0.4909 GB, free: 14.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.1529, allocations: 140.5 kB / 0.491 GB, free: 14.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005218/0.1534, allocations: 477.9 kB / 0.4915 GB, free: 14.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.584e-05/0.1535, allocations: 53.69 kB / 0.4915 GB, free: 14.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.1537, allocations: 284.6 kB / 0.4918 GB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.1539, allocations: 288.1 kB / 0.492 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.1542, allocations: 166.5 kB / 0.4922 GB, free: 13.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1544, allocations: 374.8 kB / 0.4926 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007859/0.1552, allocations: 361.8 kB / 0.4929 GB, free: 12.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008706/0.1561, allocations: 0.5177 MB / 0.4934 GB, free: 12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.1573, allocations: 0.6971 MB / 0.4941 GB, free: 11.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1574, allocations: 4 kB / 0.4941 GB, free: 11.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002584/0.1599, allocations: 1.204 MB / 0.4953 GB, free: 10.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.16, allocations: 4 kB / 0.4953 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.16, allocations: 11.92 kB / 0.4953 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.1612, allocations: 0.5734 MB / 0.4959 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005231/0.1618, allocations: 143.8 kB / 0.496 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.1654, allocations: 3.86 MB / 0.4998 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008648/0.1663, allocations: 147.8 kB / 0.4999 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.1664, allocations: 39.98 kB / 0.4999 GB, free: 5.016 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.0003596/0.1667, allocations: 220.2 kB / 0.5001 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001909/0.1669, allocations: 67.16 kB / 0.5002 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.1671, allocations: 96.83 kB / 0.5003 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1671, allocations: 8 kB / 0.5003 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.1671, allocations: 7.938 kB / 0.5003 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1672, allocations: 4.078 kB / 0.5003 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003793/0.171, allocations: 2.165 MB / 0.5024 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.171, allocations: 0 / 0.5024 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.1715, allocations: 119.8 kB / 0.5026 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.1726, allocations: 0.5264 MB / 0.5031 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.06e-05/0.1727, allocations: 31.97 kB / 0.5031 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2422/0.4149, allocations: 3.647 MB / 0.5067 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4149, allocations: 1.406 kB / 0.5067 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003588/0.4185, allocations: 1.725 MB / 0.5083 GB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.419, allocations: 226.9 kB / 0.5086 GB, free: 39.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.4191, allocations: 30.86 kB / 0.5086 GB, free: 39.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000867/0.42, allocations: 122.8 kB / 0.5087 GB, free: 39.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000499/0.4205, allocations: 193.1 kB / 0.5089 GB, free: 39.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.17e-05/0.4206, allocations: 34.98 kB / 0.5089 GB, free: 39.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004252/0.421, allocations: 328 kB / 0.5092 GB, free: 38.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4211, allocations: 1.094 kB / 0.5092 GB, free: 38.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001007/0.4221, allocations: 205 kB / 0.5094 GB, free: 38.88 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.0009938/0.4231, allocations: 416 kB / 0.5098 GB, free: 38.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.4259, allocations: 1.039 MB / 0.5108 GB, free: 38.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.426, allocations: 0 / 0.5108 GB, free: 38.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.4275, allocations: 0.6274 MB / 0.5115 GB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.4287, allocations: 139.2 kB / 0.5116 GB, free: 37.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.4333, allocations: 2.146 MB / 0.5137 GB, free: 36.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.4339, allocations: 0.9297 MB / 0.5146 GB, free: 36.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003865/0.4343, allocations: 74.2 kB / 0.5147 GB, free: 36.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.4345, allocations: 63.88 kB / 0.5147 GB, free: 36.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.894e-06/0.4345, allocations: 3.938 kB / 0.5147 GB, free: 36.12 MB / 382.1 MB Notification: Performance of Templates: time 0.02842/0.4629, allocations: 16.01 MB / 0.5304 GB, free: 29.98 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 -s cvode -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