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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.000925/0.000925, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008919/0.0008919, allocations: 96.14 kB / 281.6 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2123/0.2123, allocations: 44.15 MB / 376.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.537e-05/1.503e-05, allocations: 224 / 444.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.157, allocations: 61.91 MB / 0.4947 GB, free: 1.227 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5047/0.6618, allocations: 92.03 MB / 0.5845 GB, free: 4.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.6621, allocations: 67.97 kB / 0.5846 GB, free: 4.367 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03569/0.6978, allocations: 12.05 MB / 0.5964 GB, free: 8.289 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6978, allocations: 0 / 0.5964 GB, free: 8.289 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.472e-05/0.6979, allocations: 23.98 kB / 0.5964 GB, free: 8.266 MB / 410.7 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.002414/0.7003, allocations: 0.935 MB / 0.5973 GB, free: 7.285 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.7004, allocations: 11.98 kB / 0.5973 GB, free: 7.273 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.7007, allocations: 79.06 kB / 0.5974 GB, free: 7.195 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000798/0.7015, allocations: 403 kB / 0.5978 GB, free: 6.758 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.7016, allocations: 20 kB / 0.5978 GB, free: 6.738 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.7018, allocations: 47.89 kB / 0.5978 GB, free: 6.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001174/0.703, allocations: 0.5688 MB / 0.5984 GB, free: 6.121 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.7042, allocations: 0.6593 MB / 0.599 GB, free: 5.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/0.7043, allocations: 7.891 kB / 0.599 GB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.7043, allocations: 7.938 kB / 0.5991 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.7044, allocations: 20 kB / 0.5991 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004623/0.709, allocations: 2.465 MB / 0.6015 GB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009839/0.71, allocations: 0.5394 MB / 0.602 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005013/0.7105, allocations: 315.4 kB / 0.6023 GB, free: 1.926 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.142e-05/0.7106, allocations: 15.98 kB / 0.6023 GB, free: 1.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.7107, allocations: 42.5 kB / 0.6024 GB, free: 1.859 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 3.677e-06/0.7107, allocations: 0 / 0.6024 GB, free: 1.859 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.004645/0.7153, allocations: 2.32 MB / 0.6046 GB, free: 15.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/0.7154, allocations: 136.5 kB / 0.6048 GB, free: 15.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.7158, allocations: 313.1 kB / 0.6051 GB, free: 14.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.7159, allocations: 37.7 kB / 0.6051 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.7161, allocations: 260.6 kB / 0.6053 GB, free: 14.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/0.7164, allocations: 284.1 kB / 0.6056 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.7165, allocations: 0 / 0.6056 GB, free: 14.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.7167, allocations: 362.8 kB / 0.606 GB, free: 13.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005226/0.7172, allocations: 294.6 kB / 0.6062 GB, free: 13.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005975/0.7178, allocations: 459.6 kB / 0.6067 GB, free: 13.13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006513/0.7185, allocations: 256.3 kB / 0.6069 GB, free: 12.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.7185, allocations: 15.89 kB / 0.6069 GB, free: 12.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002313/0.7208, allocations: 1.054 MB / 0.608 GB, free: 11.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.7208, allocations: 8 kB / 0.608 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.7209, allocations: 4 kB / 0.608 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.722, allocations: 0.5815 MB / 0.6085 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005558/0.7226, allocations: 155.7 kB / 0.6087 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.7249, allocations: 2.651 MB / 0.6113 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.7259, allocations: 175.8 kB / 0.6115 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.726, allocations: 47.94 kB / 0.6115 GB, free: 8.074 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003136/0.7263, allocations: 141.2 kB / 0.6116 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.7266, allocations: 63.25 kB / 0.6117 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/0.7288, allocations: 0.9879 MB / 0.6127 GB, free: 6.855 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.7288, allocations: 8 kB / 0.6127 GB, free: 6.848 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.7288, allocations: 4 kB / 0.6127 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.7288, allocations: 3.984 kB / 0.6127 GB, free: 6.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.7327, allocations: 1.889 MB / 0.6145 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.7327, allocations: 0 / 0.6145 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006779/0.7334, allocations: 127.8 kB / 0.6146 GB, free: 4.762 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.7345, allocations: 0.5459 MB / 0.6152 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-05/0.7346, allocations: 23.95 kB / 0.6152 GB, free: 4.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/0.7369, allocations: 2.592 MB / 0.6177 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.7369, allocations: 0 / 0.6177 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002721/0.7396, allocations: 1.59 MB / 0.6193 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.7401, allocations: 216.2 kB / 0.6195 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.7403, allocations: 19.94 kB / 0.6195 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009866/0.7412, allocations: 163.8 kB / 0.6197 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.7416, allocations: 175.6 kB / 0.6198 GB, free: 15.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.422e-05/0.7417, allocations: 35.97 kB / 0.6199 GB, free: 15.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002969/0.742, allocations: 247 kB / 0.6201 GB, free: 14.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.742, allocations: 0 / 0.6201 GB, free: 14.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009116/0.7429, allocations: 167.9 kB / 0.6203 GB, free: 14.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003214/0.7433, allocations: 147.1 kB / 0.6204 GB, free: 14.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.745, allocations: 0.8708 MB / 0.6213 GB, free: 13.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.745, allocations: 4 kB / 0.6213 GB, free: 13.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009704/0.746, allocations: 458.9 kB / 0.6217 GB, free: 13.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007947/0.7468, allocations: 79.5 kB / 0.6218 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.7514, allocations: 1.973 MB / 0.6237 GB, free: 11.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.7519, allocations: 0.9185 MB / 0.6246 GB, free: 10.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.7523, allocations: 60.81 kB / 0.6246 GB, free: 10.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.7524, allocations: 43.42 kB / 0.6247 GB, free: 10.16 MB / 442.7 MB Notification: Performance of SimCode: time 2.254e-06/0.7524, allocations: 4 kB / 0.6247 GB, free: 10.16 MB / 442.7 MB Notification: Performance of Templates: time 0.02238/0.7748, allocations: 12.78 MB / 0.6372 GB, free: 13.43 MB / 458.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches