Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 110.7 kB / 17.09 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 199.4 kB / 18.02 MB, free: 5.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2089/0.2089, allocations: 43.52 MB / 314.8 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 74.02 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1137, allocations: 57.78 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005472/0.1192, allocations: 3.919 MB / 0.4924 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.1218, allocations: 1.274 MB / 0.4936 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005077/0.1223, allocations: 11.94 kB / 0.4936 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004044/0.1228, allocations: 114.9 kB / 0.4937 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007269/0.1235, allocations: 222.2 kB / 0.4939 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009874/0.1245, allocations: 339.4 kB / 0.4943 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.1259, allocations: 1.03 MB / 0.4953 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003643/0.1263, allocations: 182.3 kB / 0.4954 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008273/0.1272, allocations: 446.6 kB / 0.4959 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00074/0.1279, allocations: 498.2 kB / 0.4963 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.1281, allocations: 76 kB / 0.4964 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.1285, allocations: 131.9 kB / 0.4965 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.1288, allocations: 203.4 kB / 0.4967 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008267/0.1297, allocations: 390.1 kB / 0.4971 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.1315, allocations: 0.9383 MB / 0.498 GB, free: 2.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.1315, allocations: 3.938 kB / 0.498 GB, free: 2.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1315, allocations: 0 / 0.498 GB, free: 2.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.386e-05/0.1316, allocations: 0 / 0.498 GB, free: 2.027 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003039/0.1346, allocations: 1.087 MB / 0.4991 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.1347, allocations: 11.89 kB / 0.4991 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.135, allocations: 80 kB / 0.4992 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009854/0.136, allocations: 441.5 kB / 0.4996 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.136, allocations: 53.62 kB / 0.4996 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.1362, allocations: 71.84 kB / 0.4997 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.1378, allocations: 0.8179 MB / 0.5005 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.1378, allocations: 11.94 kB / 0.5005 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-05/0.1379, allocations: 28 kB / 0.5006 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.1379, allocations: 12 kB / 0.5006 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.1395, allocations: 0.762 MB / 0.5013 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00437/0.1439, allocations: 2.55 MB / 0.5038 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.1454, allocations: 0.6461 MB / 0.5044 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007205/0.1461, allocations: 371.3 kB / 0.5048 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.836e-05/0.1462, allocations: 12 kB / 0.5048 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.1462, allocations: 38.56 kB / 0.5048 GB, free: 10.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.564e-06/0.1463, allocations: 0 / 0.5048 GB, free: 10.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.007745/0.154, allocations: 3.534 MB / 0.5083 GB, free: 6.957 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.291e-05/0.1541, allocations: 148.4 kB / 0.5084 GB, free: 6.781 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.1546, allocations: 425.8 kB / 0.5088 GB, free: 6.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-05/0.1547, allocations: 49.69 kB / 0.5089 GB, free: 6.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.1549, allocations: 288.3 kB / 0.5092 GB, free: 6.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.1552, allocations: 268.4 kB / 0.5094 GB, free: 5.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/0.1555, allocations: 170.5 kB / 0.5096 GB, free: 5.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1556, allocations: 366.8 kB / 0.5099 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007949/0.1564, allocations: 393.8 kB / 0.5103 GB, free: 4.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008849/0.1573, allocations: 0.5413 MB / 0.5108 GB, free: 4.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.1587, allocations: 0.754 MB / 0.5116 GB, free: 3.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1587, allocations: 0 / 0.5116 GB, free: 3.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002768/0.1615, allocations: 1.271 MB / 0.5128 GB, free: 2.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.1615, allocations: 8 kB / 0.5128 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.1615, allocations: 7.938 kB / 0.5128 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.1629, allocations: 0.7609 MB / 0.5136 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005876/0.1635, allocations: 155.7 kB / 0.5137 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002367/0.1659, allocations: 2.69 MB / 0.5163 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000966/0.1669, allocations: 139.9 kB / 0.5165 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/0.167, allocations: 35.98 kB / 0.5165 GB, free: 14.22 MB / 414.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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,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 (91): * Single equations (assignments): 87 * 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,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003897/0.1673, allocations: 216.2 kB / 0.5167 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.1676, allocations: 67.25 kB / 0.5168 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.1678, allocations: 87.91 kB / 0.5169 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.1678, allocations: 7.922 kB / 0.5169 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1678, allocations: 0 / 0.5169 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003516/0.1682, allocations: 220.2 kB / 0.5171 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.1684, allocations: 27.94 kB / 0.5171 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009761/0.1693, allocations: 119.8 kB / 0.5172 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/0.1697, allocations: 143.8 kB / 0.5174 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003384/0.1731, allocations: 1.395 MB / 0.5187 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002595/0.1757, allocations: 1.556 MB / 0.5202 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000853/0.1766, allocations: 399.8 kB / 0.5206 GB, free: 9.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003429/0.1769, allocations: 291.1 kB / 0.5209 GB, free: 9.648 MB / 414.1 MB Notification: Performance of Backend: time 3.8e-07/0.1769, allocations: 0 / 0.5209 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.1792, allocations: 0.7495 MB / 0.5216 GB, free: 8.895 MB / 414.1 MB Notification: Performance of SimCode: time 0.00302/0.1823, allocations: 2.235 MB / 0.5238 GB, free: 6.609 MB / 414.1 MB Notification: Performance of Templates: time 0.2505/0.4328, allocations: 15.13 MB / 0.5386 GB, free: 40.07 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches