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.001456/0.001455, allocations: 110 kB / 18.3 MB, free: 4.84 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.001457, allocations: 199.4 kB / 19.23 MB, free: 3.914 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.408/1.408, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2092/0.2092, allocations: 44.17 MB / 337.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 56.47 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1088, allocations: 60.83 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.00507/0.1139, allocations: 3.922 MB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.1164, allocations: 1.227 MB / 475.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003195/0.1167, allocations: 11.94 kB / 475.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.1171, allocations: 118.9 kB / 475.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004108/0.1176, allocations: 198.2 kB / 475.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007545/0.1183, allocations: 355.4 kB / 475.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009701/0.1193, allocations: 1.015 MB / 476.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.1196, allocations: 178.3 kB / 476.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006463/0.1203, allocations: 446.6 kB / 477.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005925/0.1209, allocations: 494.2 kB / 477.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.121, allocations: 76 kB / 477.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002508/0.1213, allocations: 124 kB / 478 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.1215, allocations: 203.4 kB / 478.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005331/0.1221, allocations: 406 kB / 478.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1231, allocations: 0.923 MB / 479.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1232, allocations: 0 / 479.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1232, allocations: 0 / 479.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1232, allocations: 0 / 479.6 MB, free: 4.684 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.00228/0.1255, allocations: 1.087 MB / 480.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1255, allocations: 8.031 kB / 480.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.1257, allocations: 80 kB / 480.7 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.1263, allocations: 433.7 kB / 481.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.1264, allocations: 49.62 kB / 481.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.1265, allocations: 71.97 kB / 481.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.128, allocations: 0.8179 MB / 482.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.128, allocations: 15.83 kB / 482.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.076e-05/0.1281, allocations: 27.98 kB / 482.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.1282, allocations: 16 kB / 482.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.1298, allocations: 0.7592 MB / 482.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004483/0.1343, allocations: 2.562 MB / 485.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.1357, allocations: 0.623 MB / 486.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007378/0.1365, allocations: 383.4 kB / 486.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.83e-05/0.1365, allocations: 8 kB / 486.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.1366, allocations: 42.56 kB / 486.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.517e-06/0.1366, allocations: 0 / 486.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008261/0.1448, allocations: 3.544 MB / 490.1 MB, free: 9.617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/0.145, allocations: 144.5 kB / 490.2 MB, free: 9.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005151/0.1455, allocations: 425.8 kB / 490.6 MB, free: 9.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.234e-05/0.1456, allocations: 49.7 kB / 490.7 MB, free: 8.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.1458, allocations: 276.4 kB / 490.9 MB, free: 8.688 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.1461, allocations: 272.3 kB / 491.2 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000368/0.1465, allocations: 170.5 kB / 491.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1466, allocations: 370.8 kB / 491.7 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008049/0.1475, allocations: 393.8 kB / 492.1 MB, free: 7.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009456/0.1484, allocations: 0.5451 MB / 492.7 MB, free: 6.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1498, allocations: 0.7351 MB / 493.4 MB, free: 6.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1499, allocations: 0 / 493.4 MB, free: 6.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002866/0.1527, allocations: 1.28 MB / 494.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.1528, allocations: 5.562 kB / 494.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1528, allocations: 11.94 kB / 494.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.1543, allocations: 0.7687 MB / 495.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/0.1549, allocations: 151.7 kB / 495.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.1573, allocations: 2.69 MB / 498.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009514/0.1583, allocations: 143.6 kB / 498.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.21e-05/0.1584, allocations: 39.98 kB / 498.5 MB, free: 0.8867 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.0003623/0.1588, allocations: 212.2 kB / 498.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.159, allocations: 63.33 kB / 498.7 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.1592, allocations: 83.91 kB / 498.8 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.1592, allocations: 12 kB / 498.8 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.1592, allocations: 4 kB / 498.8 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1592, allocations: 3.984 kB / 498.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003967/0.1632, allocations: 2.177 MB / 0.4893 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.1632, allocations: 4 kB / 0.4893 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005486/0.1638, allocations: 111.9 kB / 0.4894 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.165, allocations: 0.7254 MB / 0.4901 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-05/0.1651, allocations: 31.95 kB / 0.4901 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/0.1673, allocations: 2.643 MB / 0.4927 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1673, allocations: 0 / 0.4927 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003326/0.1706, allocations: 1.764 MB / 0.4944 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.171, allocations: 224.2 kB / 0.4946 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.1711, allocations: 23.98 kB / 0.4947 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000897/0.172, allocations: 127.8 kB / 0.4948 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.1724, allocations: 147.8 kB / 0.4949 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.1725, allocations: 39.95 kB / 0.495 GB, free: 8.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003276/0.1728, allocations: 287.1 kB / 0.4952 GB, free: 7.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1728, allocations: 0 / 0.4952 GB, free: 7.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007885/0.1736, allocations: 204 kB / 0.4954 GB, free: 7.789 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.0002554/0.1739, allocations: 151.7 kB / 0.4956 GB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.1761, allocations: 0.9771 MB / 0.4965 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1761, allocations: 0 / 0.4965 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.1773, allocations: 0.5059 MB / 0.497 GB, free: 6.152 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.1783, allocations: 114.9 kB / 0.4971 GB, free: 6.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/0.1831, allocations: 2.135 MB / 0.4992 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.1836, allocations: 0.9027 MB / 0.5001 GB, free: 2.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.1838, allocations: 59.41 kB / 0.5002 GB, free: 2.879 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1838, allocations: 4 kB / 0.5002 GB, free: 2.875 MB / 382.1 MB Notification: Performance of Templates: time 0.1867/0.3705, allocations: 17.15 MB / 0.5169 GB, free: 44.91 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