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.000795/0.000795, allocations: 93.25 kB / 18 MB, free: 5.602 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.0008122/0.0008125, allocations: 178.5 kB / 18.91 MB, free: 4.738 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.345/1.345, allocations: 223.3 MB / 243 MB, free: 28 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.2022/0.2022, allocations: 44.25 MB / 338.3 MB, free: 2.629 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 61.93 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004776/0.1233, allocations: 3.532 MB / 476.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.1259, allocations: 1.219 MB / 477.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005496/0.1265, allocations: 15.94 kB / 477.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004137/0.1269, allocations: 87.33 kB / 477.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006942/0.1277, allocations: 182.6 kB / 477.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.1286, allocations: 291.6 kB / 478.2 MB, free: 8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.1298, allocations: 0.9795 MB / 479.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.1302, allocations: 157.9 kB / 479.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007449/0.131, allocations: 394.5 kB / 479.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007791/0.1317, allocations: 450.2 kB / 480.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002234/0.132, allocations: 40 kB / 480.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.1323, allocations: 87.95 kB / 480.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000244/0.1326, allocations: 163.4 kB / 480.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005315/0.1331, allocations: 383.8 kB / 480.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007146/0.1338, allocations: 0.6469 MB / 481.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1339, allocations: 4 kB / 481.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1339, allocations: 0 / 481.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.182e-05/0.1339, allocations: 0 / 481.5 MB, free: 4.707 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.00235/0.1363, allocations: 0.9976 MB / 482.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1363, allocations: 12.03 kB / 482.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002198/0.1365, allocations: 80 kB / 482.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006425/0.1372, allocations: 429.6 kB / 483 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.1373, allocations: 49.69 kB / 483 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1374, allocations: 68.03 kB / 483.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.139, allocations: 0.8296 MB / 483.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.1391, allocations: 15.89 kB / 484 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.207e-05/0.1392, allocations: 28 kB / 484 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1392, allocations: 12 kB / 484 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.1408, allocations: 0.7894 MB / 484.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004595/0.1454, allocations: 2.636 MB / 487.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.1468, allocations: 0.6542 MB / 488.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007683/0.1476, allocations: 395.2 kB / 488.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.993e-05/0.1477, allocations: 11.98 kB / 488.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.1477, allocations: 46.56 kB / 488.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.835e-06/0.1477, allocations: 0 / 488.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008323/0.156, allocations: 3.745 MB / 492.3 MB, free: 9.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.433e-05/0.1562, allocations: 144.4 kB / 492.4 MB, free: 9.195 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.1567, allocations: 421.8 kB / 492.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.551e-05/0.1568, allocations: 49.7 kB / 492.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.1571, allocations: 288.3 kB / 493.1 MB, free: 8.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.1574, allocations: 268.3 kB / 493.4 MB, free: 8.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1575, allocations: 81.67 kB / 493.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1577, allocations: 374.8 kB / 493.9 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008442/0.1585, allocations: 401.8 kB / 494.2 MB, free: 7.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009495/0.1595, allocations: 0.553 MB / 494.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.161, allocations: 0.7631 MB / 495.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.161, allocations: 0 / 495.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002943/0.1639, allocations: 1.308 MB / 496.9 MB, free: 4.559 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.164, allocations: 8 kB / 496.9 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.164, allocations: 11.88 kB / 496.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.1655, allocations: 0.757 MB / 497.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000575/0.166, allocations: 159.7 kB / 497.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.1685, allocations: 2.698 MB / 0.4888 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.1695, allocations: 191.8 kB / 0.489 GB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.154e-05/0.1696, allocations: 39.98 kB / 0.489 GB, free: 0.5859 MB / 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.0004004/0.17, allocations: 220.7 kB / 0.4892 GB, free: 368 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.1703, allocations: 63.25 kB / 0.4893 GB, free: 304 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002135/0.1705, allocations: 87.91 kB / 0.4893 GB, free: 220 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1705, allocations: 8 kB / 0.4894 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.1705, allocations: 4 kB / 0.4894 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1705, allocations: 3.984 kB / 0.4894 GB, free: 204 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004261/0.1748, allocations: 2.205 MB / 0.4915 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1748, allocations: 0 / 0.4915 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005426/0.1754, allocations: 127.8 kB / 0.4916 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/0.1767, allocations: 0.7177 MB / 0.4923 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.1768, allocations: 27.97 kB / 0.4924 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.1793, allocations: 2.647 MB / 0.4949 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1793, allocations: 0 / 0.4949 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/0.1827, allocations: 1.81 MB / 0.4967 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003546/0.1831, allocations: 220.2 kB / 0.4969 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.1833, allocations: 27.94 kB / 0.497 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009635/0.1843, allocations: 179.8 kB / 0.4971 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.1846, allocations: 135.8 kB / 0.4973 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.267e-05/0.1847, allocations: 39.95 kB / 0.4973 GB, free: 7.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003403/0.185, allocations: 295.1 kB / 0.4976 GB, free: 7.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.185, allocations: 112 / 0.4976 GB, free: 7.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008713/0.1859, allocations: 203.9 kB / 0.4978 GB, free: 7.352 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.0003081/0.1862, allocations: 149.3 kB / 0.4979 GB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002216/0.1884, allocations: 0.9765 MB / 0.4989 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1885, allocations: 448 / 0.4989 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.1897, allocations: 0.5209 MB / 0.4994 GB, free: 5.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.1908, allocations: 105.1 kB / 0.4995 GB, free: 5.602 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/0.1963, allocations: 2.68 MB / 0.5021 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.1968, allocations: 0.9104 MB / 0.503 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.197, allocations: 51.41 kB / 0.503 GB, free: 1.887 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.197, allocations: 0 / 0.503 GB, free: 1.887 MB / 382.1 MB Notification: Performance of Templates: time 0.2284/0.4254, allocations: 17.07 MB / 0.5197 GB, free: 42.65 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/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_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches