Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 97.44 kB / 17.35 MB, free: 6.371 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.001394/0.001394, allocations: 171.8 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.3 MB / 242.3 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.204/0.204, allocations: 44.24 MB / 337.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003625, allocations: 4 kB / 410.3 MB, free: 27.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1385, allocations: 61.93 MB / 472.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004121/0.1427, allocations: 3.54 MB / 475.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002578/0.1453, allocations: 1.216 MB / 477 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.1456, allocations: 11.94 kB / 477 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.1459, allocations: 83.39 kB / 477.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004197/0.1463, allocations: 182.6 kB / 477.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007689/0.1471, allocations: 291.6 kB / 477.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1482, allocations: 0.9795 MB / 478.5 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.1486, allocations: 161.9 kB / 478.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005771/0.1491, allocations: 394.5 kB / 479.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005946/0.1498, allocations: 450.2 kB / 479.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.773e-05/0.1499, allocations: 40 kB / 479.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.1501, allocations: 83.95 kB / 479.6 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002658/0.1503, allocations: 163.4 kB / 479.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.1507, allocations: 387.8 kB / 480.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000831/0.1516, allocations: 0.8642 MB / 481 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1516, allocations: 0 / 481 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1516, allocations: 0 / 481 MB, free: 4.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1516, allocations: 3.938 kB / 481.1 MB, free: 4.527 MB / 350.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.002417/0.154, allocations: 1.002 MB / 482.1 MB, free: 3.477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/0.1541, allocations: 8.031 kB / 482.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.1543, allocations: 80 kB / 482.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006215/0.1549, allocations: 429.7 kB / 482.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.483e-05/0.155, allocations: 45.69 kB / 482.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.1551, allocations: 68.03 kB / 482.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.1567, allocations: 0.8335 MB / 483.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.1568, allocations: 19.83 kB / 483.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.1569, allocations: 24 kB / 483.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.174e-05/0.1569, allocations: 16 kB / 483.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1585, allocations: 0.7856 MB / 484.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.1632, allocations: 2.636 MB / 487 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.1647, allocations: 0.6464 MB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008002/0.1655, allocations: 395.2 kB / 488 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.853e-05/0.1656, allocations: 15.92 kB / 488 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.1657, allocations: 46.56 kB / 488.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.987e-06/0.1657, allocations: 0 / 488.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008199/0.1739, allocations: 3.753 MB / 491.8 MB, free: 9.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.174, allocations: 148.4 kB / 492 MB, free: 9.008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005388/0.1745, allocations: 421.8 kB / 492.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-05/0.1746, allocations: 49.7 kB / 492.4 MB, free: 8.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.1748, allocations: 280.4 kB / 492.7 MB, free: 8.246 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.1751, allocations: 268.4 kB / 493 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1752, allocations: 81.67 kB / 493.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1754, allocations: 370.8 kB / 493.4 MB, free: 7.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000801/0.1762, allocations: 401.8 kB / 493.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008834/0.1771, allocations: 0.5552 MB / 494.4 MB, free: 6.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1785, allocations: 0.7561 MB / 495.1 MB, free: 5.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1785, allocations: 4 kB / 495.1 MB, free: 5.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002789/0.1813, allocations: 1.309 MB / 496.4 MB, free: 4.383 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1813, allocations: 8 kB / 496.4 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.1814, allocations: 12.12 kB / 496.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.1828, allocations: 0.7606 MB / 497.2 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/0.1834, allocations: 163.7 kB / 497.4 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.1859, allocations: 2.701 MB / 0.4884 GB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.1869, allocations: 187.8 kB / 0.4885 GB, free: 452 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.187, allocations: 35.98 kB / 0.4886 GB, free: 416 kB / 366.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.0003995/0.1874, allocations: 224.7 kB / 0.4888 GB, free: 180 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.1876, allocations: 67.19 kB / 0.4888 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.1879, allocations: 83.91 kB / 0.4889 GB, free: 32 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.1879, allocations: 8 kB / 0.4889 GB, free: 24 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.1879, allocations: 0 / 0.4889 GB, free: 24 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.1879, allocations: 7.984 kB / 0.4889 GB, free: 16 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004528/0.1924, allocations: 2.198 MB / 0.4911 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.1925, allocations: 7.938 kB / 0.4911 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005801/0.193, allocations: 119.9 kB / 0.4912 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/0.1944, allocations: 0.7216 MB / 0.4919 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/0.1945, allocations: 27.97 kB / 0.4919 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.1969, allocations: 2.639 MB / 0.4945 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.197, allocations: 8.016 kB / 0.4945 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003583/0.2006, allocations: 1.81 MB / 0.4963 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.201, allocations: 216.2 kB / 0.4965 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.2012, allocations: 35.88 kB / 0.4965 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.2023, allocations: 175.9 kB / 0.4967 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003525/0.2026, allocations: 147.7 kB / 0.4968 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.387e-05/0.2027, allocations: 40.08 kB / 0.4969 GB, free: 7.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004147/0.2031, allocations: 291.1 kB / 0.4972 GB, free: 7.363 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2032, allocations: 0 / 0.4972 GB, free: 7.363 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009651/0.2041, allocations: 200 kB / 0.4973 GB, free: 7.168 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 (53): * Single equations (assignments): 49 * 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003549/0.2045, allocations: 148.6 kB / 0.4975 GB, free: 7.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.2069, allocations: 0.9731 MB / 0.4984 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.2069, allocations: 8.062 kB / 0.4984 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.2082, allocations: 0.5209 MB / 0.499 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2093, allocations: 104.5 kB / 0.4991 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/0.2149, allocations: 2.64 MB / 0.5016 GB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.2155, allocations: 0.9104 MB / 0.5025 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003516/0.2159, allocations: 64.83 kB / 0.5026 GB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.216, allocations: 43.42 kB / 0.5026 GB, free: 1.688 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.216, allocations: 3.938 kB / 0.5026 GB, free: 1.684 MB / 382.1 MB Notification: Performance of Templates: time 0.2747/0.4907, allocations: 14.46 MB / 0.5167 GB, free: 45.03 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches