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.001549/0.001548, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.001629/0.001629, allocations: 201.9 kB / 18.77 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.084/2.084, allocations: 222.9 MB / 242.4 MB, free: 15.42 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.3179/0.3179, allocations: 44.17 MB / 336.8 MB, free: 3.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 73.38 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.198, allocations: 60.82 MB / 469.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.00716/0.2052, allocations: 3.938 MB / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003242/0.2085, allocations: 1.231 MB / 474.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003633/0.2089, allocations: 15.94 kB / 474.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.2093, allocations: 75.41 kB / 474.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005404/0.2099, allocations: 186.6 kB / 474.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008739/0.2108, allocations: 295.6 kB / 474.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.212, allocations: 0.9795 MB / 475.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.2124, allocations: 157.9 kB / 476 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007122/0.2132, allocations: 406.5 kB / 476.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007048/0.2139, allocations: 458.2 kB / 476.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.214, allocations: 48 kB / 476.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.2144, allocations: 91.95 kB / 477 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.2146, allocations: 171.4 kB / 477.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004849/0.2151, allocations: 366 kB / 477.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008541/0.216, allocations: 0.6705 MB / 478.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.216, allocations: 4 kB / 478.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.216, allocations: 0 / 478.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.216, allocations: 0 / 478.2 MB, free: 5.773 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.002951/0.219, allocations: 1.079 MB / 479.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.2191, allocations: 8.031 kB / 479.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.2193, allocations: 83.98 kB / 479.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.2201, allocations: 433.7 kB / 479.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.545e-05/0.2202, allocations: 45.69 kB / 479.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.2204, allocations: 75.95 kB / 479.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.2226, allocations: 0.8218 MB / 480.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/0.2227, allocations: 7.906 kB / 480.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.2228, allocations: 24 kB / 480.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.2228, allocations: 16 kB / 480.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002451/0.2253, allocations: 0.7659 MB / 481.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006084/0.2314, allocations: 2.565 MB / 484.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.2334, allocations: 0.623 MB / 484.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/0.2345, allocations: 379.2 kB / 485.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.246e-05/0.2347, allocations: 11.98 kB / 485.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.2347, allocations: 46.56 kB / 485.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 4.228e-06/0.2347, allocations: 0 / 485.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.0109/0.2456, allocations: 3.545 MB / 488.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.2458, allocations: 140.5 kB / 488.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007047/0.2465, allocations: 421.8 kB / 489.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.2466, allocations: 57.62 kB / 489.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002767/0.2469, allocations: 280.4 kB / 489.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003139/0.2472, allocations: 264.4 kB / 489.9 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/0.2477, allocations: 170.4 kB / 490 MB, free: 9.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.2479, allocations: 378.8 kB / 490.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.2491, allocations: 385.8 kB / 490.8 MB, free: 8.582 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.2505, allocations: 0.5413 MB / 491.3 MB, free: 7.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/0.2526, allocations: 0.7312 MB / 492 MB, free: 7.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.2526, allocations: 0 / 492 MB, free: 7.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004755/0.2573, allocations: 1.284 MB / 493.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.2574, allocations: 8.031 kB / 493.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/0.2574, allocations: 7.938 kB / 493.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/0.2596, allocations: 0.7568 MB / 494.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008703/0.2605, allocations: 155.7 kB / 494.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.264, allocations: 2.694 MB / 496.9 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.2655, allocations: 139.7 kB / 497.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.2656, allocations: 39.98 kB / 497.1 MB, free: 1.988 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.0005392/0.2661, allocations: 212.7 kB / 497.3 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002979/0.2664, allocations: 59.34 kB / 497.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002506/0.2667, allocations: 87.84 kB / 497.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.2667, allocations: 12 kB / 497.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/0.2668, allocations: 8 kB / 497.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.2668, allocations: 7.969 kB / 497.5 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006067/0.2729, allocations: 2.17 MB / 499.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.2729, allocations: 0 / 499.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008466/0.2738, allocations: 115.8 kB / 499.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.2757, allocations: 0.7216 MB / 0.4888 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.2758, allocations: 27.97 kB / 0.4888 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0035/0.2793, allocations: 2.655 MB / 0.4914 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2794, allocations: 80 / 0.4914 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.2846, allocations: 1.767 MB / 0.4931 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005763/0.2852, allocations: 224.2 kB / 0.4933 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.2855, allocations: 27.94 kB / 0.4934 GB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.287, allocations: 127.8 kB / 0.4935 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/0.2875, allocations: 135.8 kB / 0.4936 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.2877, allocations: 39.95 kB / 0.4936 GB, free: 9.371 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005702/0.2883, allocations: 291.1 kB / 0.4939 GB, free: 9.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2883, allocations: 0 / 0.4939 GB, free: 9.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00146/0.2897, allocations: 200 kB / 0.4941 GB, free: 8.887 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.0004302/0.2902, allocations: 147.2 kB / 0.4943 GB, free: 8.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003405/0.2936, allocations: 0.9427 MB / 0.4952 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2936, allocations: 0 / 0.4952 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.2955, allocations: 0.5018 MB / 0.4957 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/0.2973, allocations: 116.6 kB / 0.4958 GB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007849/0.3052, allocations: 2.383 MB / 0.4981 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008015/0.306, allocations: 0.9066 MB / 0.499 GB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.3064, allocations: 55.41 kB / 0.499 GB, free: 3.766 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3064, allocations: 0 / 0.499 GB, free: 3.766 MB / 382.1 MB Notification: Performance of Templates: time 0.3116/0.618, allocations: 17.16 MB / 0.5158 GB, free: 45.12 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