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.0008552/0.0008552, allocations: 92.44 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 201.3 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 247.5 MB, free: 11.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2033/0.2033, allocations: 46.18 MB / 345.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 8.375 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1132, allocations: 63.56 MB / 483.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004462/0.1177, allocations: 3.717 MB / 487.4 MB, free: 380 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.1207, allocations: 1.462 MB / 488.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005924/0.1213, allocations: 11.94 kB / 488.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005131/0.1219, allocations: 99.27 kB / 489 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1229, allocations: 242.5 kB / 489.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009611/0.1239, allocations: 315.6 kB / 489.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.1253, allocations: 1.038 MB / 490.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.1257, allocations: 162 kB / 490.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008936/0.1266, allocations: 430.3 kB / 491.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008954/0.1275, allocations: 490.1 kB / 491.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.1277, allocations: 40 kB / 491.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004363/0.1282, allocations: 95.97 kB / 491.8 MB, free: 12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.1285, allocations: 191.3 kB / 492 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004868/0.129, allocations: 407.5 kB / 492.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007686/0.1297, allocations: 0.721 MB / 493.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1298, allocations: 0 / 493.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1298, allocations: 0 / 493.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.061e-05/0.1298, allocations: 0 / 493.1 MB, free: 10.69 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.002315/0.1321, allocations: 1.06 MB / 494.2 MB, free: 9.578 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1322, allocations: 8.875 kB / 494.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005495/0.1327, allocations: 131.9 kB / 494.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.1335, allocations: 481.4 kB / 494.8 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.907e-05/0.1335, allocations: 45.69 kB / 494.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.1337, allocations: 76.03 kB / 494.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.1353, allocations: 0.8301 MB / 495.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.782e-05/0.1354, allocations: 7.906 kB / 495.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.1355, allocations: 24 kB / 495.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.1355, allocations: 16 kB / 495.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.1372, allocations: 0.7717 MB / 496.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004549/0.1418, allocations: 2.656 MB / 499.2 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1432, allocations: 0.6998 MB / 499.9 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007587/0.144, allocations: 387.2 kB / 0.4885 GB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.369e-05/0.1441, allocations: 15.92 kB / 0.4886 GB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.1441, allocations: 46.5 kB / 0.4886 GB, free: 3.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 4.468e-06/0.1442, allocations: 4 kB / 0.4886 GB, free: 3.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008341/0.1525, allocations: 3.742 MB / 0.4923 GB, free: 15.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/0.1526, allocations: 136.5 kB / 0.4924 GB, free: 14.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006526/0.1533, allocations: 470 kB / 0.4928 GB, free: 14.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-05/0.1534, allocations: 53.69 kB / 0.4929 GB, free: 14.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.1536, allocations: 284.5 kB / 0.4932 GB, free: 14.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002765/0.1539, allocations: 288.1 kB / 0.4934 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.1541, allocations: 85.67 kB / 0.4935 GB, free: 13.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1542, allocations: 374.8 kB / 0.4939 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008537/0.1551, allocations: 373.8 kB / 0.4942 GB, free: 13.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009463/0.156, allocations: 0.5333 MB / 0.4947 GB, free: 12.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.1575, allocations: 0.7316 MB / 0.4955 GB, free: 11.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.1575, allocations: 4 kB / 0.4955 GB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002852/0.1603, allocations: 1.238 MB / 0.4967 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.1604, allocations: 8 kB / 0.4967 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.1604, allocations: 4 kB / 0.4967 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.1617, allocations: 0.5773 MB / 0.4972 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.1623, allocations: 151.8 kB / 0.4974 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.1661, allocations: 3.679 MB / 0.501 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.1673, allocations: 207.7 kB / 0.5012 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.8e-05/0.1674, allocations: 31.98 kB / 0.5012 GB, free: 5.547 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.0004421/0.1678, allocations: 232.2 kB / 0.5014 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/0.1681, allocations: 71.09 kB / 0.5015 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002265/0.1683, allocations: 96.83 kB / 0.5016 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1683, allocations: 8 kB / 0.5016 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1683, allocations: 4 kB / 0.5016 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.1684, allocations: 7.984 kB / 0.5016 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004259/0.1726, allocations: 2.186 MB / 0.5037 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.1726, allocations: 0 / 0.5037 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005581/0.1732, allocations: 123.8 kB / 0.5039 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.1744, allocations: 0.5341 MB / 0.5044 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-05/0.1745, allocations: 35.95 kB / 0.5044 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2205/0.395, allocations: 3.535 MB / 0.5079 GB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.395, allocations: 4.031 kB / 0.5079 GB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.3988, allocations: 1.773 MB / 0.5096 GB, free: 33.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.3993, allocations: 235.5 kB / 0.5098 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.3994, allocations: 33.81 kB / 0.5099 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.4005, allocations: 171.5 kB / 0.51 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004631/0.401, allocations: 186.9 kB / 0.5102 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-05/0.4011, allocations: 38.34 kB / 0.5102 GB, free: 33.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000389/0.4014, allocations: 325.2 kB / 0.5106 GB, free: 33.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.4015, allocations: 0 / 0.5106 GB, free: 33.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.4024, allocations: 208.6 kB / 0.5108 GB, free: 33.18 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.000946/0.4033, allocations: 407.3 kB / 0.5111 GB, free: 33.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.4056, allocations: 1.073 MB / 0.5122 GB, free: 32.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4056, allocations: 1.156 kB / 0.5122 GB, free: 32.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.407, allocations: 0.6211 MB / 0.5128 GB, free: 32.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.4082, allocations: 131 kB / 0.5129 GB, free: 32.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/0.4135, allocations: 2.778 MB / 0.5156 GB, free: 31.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.414, allocations: 0.9262 MB / 0.5165 GB, free: 30.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.4142, allocations: 57.58 kB / 0.5166 GB, free: 30.61 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4142, allocations: 0 / 0.5166 GB, free: 30.61 MB / 382.1 MB Notification: Performance of Templates: time 0.02438/0.4386, allocations: 18.47 MB / 0.5346 GB, free: 22.41 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