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.001395/0.001395, allocations: 113.2 kB / 17.09 MB, free: 5.965 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.001457/0.001458, allocations: 194.9 kB / 18.02 MB, free: 5.047 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.38/1.38, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.209/0.209, allocations: 43.52 MB / 314.8 MB, free: 456 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.001544/0.001544, allocations: 73.45 kB / 442.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1145, allocations: 57.78 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005483/0.12, allocations: 3.919 MB / 0.4924 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.1226, allocations: 1.286 MB / 0.4936 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.1232, allocations: 11.94 kB / 0.4936 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.1236, allocations: 110.9 kB / 0.4937 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006779/0.1244, allocations: 210.2 kB / 0.4939 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000889/0.1253, allocations: 339.4 kB / 0.4943 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.1266, allocations: 1.034 MB / 0.4953 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.127, allocations: 186.3 kB / 0.4954 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007432/0.1277, allocations: 442.6 kB / 0.4959 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00077/0.1285, allocations: 494.2 kB / 0.4963 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.1288, allocations: 80 kB / 0.4964 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003825/0.1292, allocations: 127.9 kB / 0.4965 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.1294, allocations: 203.4 kB / 0.4967 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.13, allocations: 398 kB / 0.4971 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.1314, allocations: 0.9344 MB / 0.498 GB, free: 2.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.1315, allocations: 4 kB / 0.498 GB, free: 2.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1315, allocations: 0 / 0.498 GB, free: 2.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.567e-05/0.1315, allocations: 0 / 0.498 GB, free: 2.023 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.002534/0.1341, allocations: 1.079 MB / 0.4991 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.1341, allocations: 11.89 kB / 0.4991 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.1343, allocations: 83.94 kB / 0.4992 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006873/0.135, allocations: 445.5 kB / 0.4996 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.073e-05/0.1351, allocations: 49.69 kB / 0.4996 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1352, allocations: 75.78 kB / 0.4997 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.1368, allocations: 0.8218 MB / 0.5005 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.511e-05/0.1368, allocations: 7.984 kB / 0.5005 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.988e-05/0.1369, allocations: 24 kB / 0.5005 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.137, allocations: 16 kB / 0.5006 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.1387, allocations: 0.762 MB / 0.5013 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.1432, allocations: 2.554 MB / 0.5038 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.1446, allocations: 0.6344 MB / 0.5044 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007429/0.1454, allocations: 379.2 kB / 0.5048 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.463e-05/0.1455, allocations: 11.98 kB / 0.5048 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.1455, allocations: 42.56 kB / 0.5048 GB, free: 10.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.747e-06/0.1456, allocations: 0 / 0.5048 GB, free: 10.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.007268/0.1528, allocations: 3.546 MB / 0.5083 GB, free: 6.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.1529, allocations: 136.5 kB / 0.5084 GB, free: 6.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.1534, allocations: 429.8 kB / 0.5088 GB, free: 6.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.502e-05/0.1535, allocations: 49.7 kB / 0.5089 GB, free: 6.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.1537, allocations: 284.3 kB / 0.5092 GB, free: 6.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.1539, allocations: 268.4 kB / 0.5094 GB, free: 5.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.1542, allocations: 162.5 kB / 0.5096 GB, free: 5.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1544, allocations: 374.8 kB / 0.5099 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007641/0.1552, allocations: 393.7 kB / 0.5103 GB, free: 4.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008452/0.156, allocations: 0.5413 MB / 0.5108 GB, free: 4.219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.1573, allocations: 0.7424 MB / 0.5116 GB, free: 3.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.1573, allocations: 4 kB / 0.5116 GB, free: 3.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002597/0.16, allocations: 1.267 MB / 0.5128 GB, free: 2.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.16, allocations: 8.031 kB / 0.5128 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.16, allocations: 7.938 kB / 0.5128 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.1613, allocations: 0.7645 MB / 0.5136 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005581/0.1619, allocations: 147.8 kB / 0.5137 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.1642, allocations: 2.698 MB / 0.5163 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009136/0.1651, allocations: 143.7 kB / 0.5165 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.23e-05/0.1652, allocations: 39.98 kB / 0.5165 GB, free: 14.21 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.0003593/0.1655, allocations: 204.3 kB / 0.5167 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.1658, allocations: 71.17 kB / 0.5168 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.166, allocations: 87.84 kB / 0.5169 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.166, allocations: 15.98 kB / 0.5169 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.166, allocations: 0 / 0.5169 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.1663, allocations: 216.2 kB / 0.5171 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.1665, allocations: 31.94 kB / 0.5171 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008164/0.1673, allocations: 127.8 kB / 0.5172 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.1676, allocations: 143.7 kB / 0.5174 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00312/0.1708, allocations: 1.379 MB / 0.5187 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002509/0.1733, allocations: 1.556 MB / 0.5202 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008255/0.1741, allocations: 395.8 kB / 0.5206 GB, free: 9.934 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003292/0.1745, allocations: 291.1 kB / 0.5209 GB, free: 9.652 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.1745, allocations: 0 / 0.5209 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.1767, allocations: 0.756 MB / 0.5216 GB, free: 8.895 MB / 414.1 MB Notification: Performance of SimCode: time 0.002882/0.1796, allocations: 2.231 MB / 0.5238 GB, free: 6.613 MB / 414.1 MB Notification: Performance of Templates: time 0.2437/0.4233, allocations: 15.74 MB / 0.5392 GB, free: 39.96 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