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.001488/0.001488, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002102/0.002102, allocations: 211.9 kB / 19.25 MB, free: 3.895 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.4 MB / 247.4 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.11 MB / 344.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.00151, allocations: 79.03 kB / 418.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1053, allocations: 62.44 MB / 480.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.00586/0.1112, allocations: 4.106 MB / 484.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1141, allocations: 1.489 MB / 486.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005336/0.1146, allocations: 11.94 kB / 486.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005172/0.1152, allocations: 130.8 kB / 486.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008732/0.1161, allocations: 281.9 kB / 486.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008663/0.117, allocations: 351.4 kB / 487 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.1184, allocations: 1.081 MB / 488.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.1187, allocations: 190.5 kB / 488.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008093/0.1196, allocations: 482.5 kB / 488.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000848/0.1204, allocations: 0.5137 MB / 489.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.1207, allocations: 84 kB / 489.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004026/0.1211, allocations: 140 kB / 489.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003014/0.1214, allocations: 223.3 kB / 489.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005277/0.1219, allocations: 433.9 kB / 490.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.1231, allocations: 1.001 MB / 491.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1231, allocations: 3.938 kB / 491.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1231, allocations: 0 / 491.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.654e-05/0.1231, allocations: 4 kB / 491.2 MB, free: 10.76 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.002621/0.1258, allocations: 1.157 MB / 492.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1258, allocations: 8.031 kB / 492.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005818/0.1264, allocations: 119.9 kB / 492.4 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006919/0.1271, allocations: 473.4 kB / 492.9 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.1272, allocations: 53.69 kB / 493 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.1273, allocations: 64.12 kB / 493 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.1289, allocations: 0.8223 MB / 493.8 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/0.1289, allocations: 7.906 kB / 493.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-05/0.129, allocations: 24 kB / 493.9 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1291, allocations: 19.94 kB / 493.9 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.1307, allocations: 0.7336 MB / 494.6 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004514/0.1352, allocations: 2.613 MB / 497.2 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.1367, allocations: 0.6623 MB / 497.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007583/0.1375, allocations: 374.8 kB / 498.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-05/0.1376, allocations: 15.98 kB / 498.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.1376, allocations: 42.56 kB / 498.3 MB, free: 3.293 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.537e-06/0.1377, allocations: 0 / 498.3 MB, free: 3.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008118/0.1458, allocations: 3.534 MB / 0.4901 GB, free: 15.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.1459, allocations: 136.5 kB / 0.4902 GB, free: 15.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005913/0.1465, allocations: 477.9 kB / 0.4907 GB, free: 14.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.711e-05/0.1466, allocations: 53.69 kB / 0.4907 GB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1468, allocations: 280.6 kB / 0.491 GB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002977/0.1471, allocations: 296 kB / 0.4913 GB, free: 14.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.1474, allocations: 174.5 kB / 0.4914 GB, free: 14.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1476, allocations: 366.8 kB / 0.4918 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007879/0.1484, allocations: 361.8 kB / 0.4921 GB, free: 13.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009107/0.1493, allocations: 0.5215 MB / 0.4927 GB, free: 12.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.1507, allocations: 0.7079 MB / 0.4933 GB, free: 11.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.1507, allocations: 0 / 0.4933 GB, free: 11.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002727/0.1534, allocations: 1.192 MB / 0.4945 GB, free: 10.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1535, allocations: 12.03 kB / 0.4945 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1535, allocations: 4 kB / 0.4945 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.1548, allocations: 0.5734 MB / 0.4951 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005398/0.1554, allocations: 143.7 kB / 0.4952 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/0.1592, allocations: 3.858 MB / 0.499 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.1602, allocations: 143.6 kB / 0.4991 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.1604, allocations: 39.98 kB / 0.4992 GB, free: 5.777 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.0004528/0.1608, allocations: 220.2 kB / 0.4994 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.1611, allocations: 71.16 kB / 0.4994 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002193/0.1613, allocations: 88.92 kB / 0.4995 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.1613, allocations: 11.94 kB / 0.4995 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.1613, allocations: 11.94 kB / 0.4995 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.1614, allocations: 3.984 kB / 0.4996 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004164/0.1655, allocations: 2.168 MB / 0.5017 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.1656, allocations: 3.984 kB / 0.5017 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.1661, allocations: 111.9 kB / 0.5018 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.1674, allocations: 0.5341 MB / 0.5023 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.118e-05/0.1675, allocations: 31.95 kB / 0.5023 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2299/0.3974, allocations: 3.645 MB / 0.5059 GB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.3974, allocations: 1.453 kB / 0.5059 GB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005049/0.4025, allocations: 1.73 MB / 0.5076 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005256/0.403, allocations: 229.7 kB / 0.5078 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.4033, allocations: 28.64 kB / 0.5078 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.4046, allocations: 124.9 kB / 0.5079 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006558/0.4052, allocations: 185.6 kB / 0.5081 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.4054, allocations: 34.77 kB / 0.5082 GB, free: 39.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005671/0.406, allocations: 328.2 kB / 0.5085 GB, free: 39.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.406, allocations: 3.828 kB / 0.5085 GB, free: 39.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001327/0.4073, allocations: 217.1 kB / 0.5087 GB, free: 39.5 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.001237/0.4086, allocations: 410.9 kB / 0.5091 GB, free: 39.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003348/0.4119, allocations: 1.066 MB / 0.5101 GB, free: 38.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.412, allocations: 1.125 kB / 0.5101 GB, free: 38.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.4138, allocations: 0.618 MB / 0.5107 GB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.4156, allocations: 130.9 kB / 0.5108 GB, free: 38.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006533/0.4221, allocations: 2.21 MB / 0.513 GB, free: 37.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.4228, allocations: 0.9345 MB / 0.5139 GB, free: 36.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.4231, allocations: 71.67 kB / 0.514 GB, free: 36.68 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4232, allocations: 0 / 0.514 GB, free: 36.68 MB / 382.1 MB Notification: Performance of Templates: time 0.03179/0.455, allocations: 18.56 MB / 0.5321 GB, free: 28.05 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