Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008733/0.0008736, allocations: 87.36 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2188/0.2188, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.917e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.123, allocations: 58.87 MB / 477.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5454, allocations: 90.77 MB / 0.5546 GB, free: 4.727 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.5456, allocations: 72.31 kB / 0.5546 GB, free: 4.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03204/0.5777, allocations: 11.85 MB / 0.5662 GB, free: 10.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5777, allocations: 0 / 0.5662 GB, free: 10.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.103e-05/0.5778, allocations: 12 kB / 0.5662 GB, free: 10.63 MB / 378.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.001897/0.5797, allocations: 0.9397 MB / 0.5671 GB, free: 9.688 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.5797, allocations: 8.031 kB / 0.5672 GB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.5799, allocations: 79.06 kB / 0.5672 GB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.5804, allocations: 400.8 kB / 0.5676 GB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.5805, allocations: 27.5 kB / 0.5676 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.5806, allocations: 35.91 kB / 0.5677 GB, free: 9.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009533/0.5816, allocations: 0.5791 MB / 0.5682 GB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.5826, allocations: 0.6533 MB / 0.5689 GB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.5826, allocations: 11.84 kB / 0.5689 GB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.5827, allocations: 7.953 kB / 0.5689 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.5827, allocations: 12 kB / 0.5689 GB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.5866, allocations: 2.484 MB / 0.5713 GB, free: 5.992 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008494/0.5875, allocations: 0.5388 MB / 0.5719 GB, free: 5.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004117/0.5879, allocations: 310 kB / 0.5722 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.585e-05/0.588, allocations: 19.23 kB / 0.5722 GB, free: 5.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.5881, allocations: 41.56 kB / 0.5722 GB, free: 5.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.464e-06/0.5881, allocations: 0 / 0.5722 GB, free: 5.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004106/0.5922, allocations: 2.317 MB / 0.5745 GB, free: 3.156 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.5923, allocations: 144.5 kB / 0.5746 GB, free: 2.984 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.5926, allocations: 305.6 kB / 0.5749 GB, free: 2.738 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.871e-05/0.5927, allocations: 37.56 kB / 0.5749 GB, free: 2.699 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.5929, allocations: 261.1 kB / 0.5752 GB, free: 2.496 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.5931, allocations: 274.5 kB / 0.5754 GB, free: 2.266 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-05/0.5932, allocations: 4 kB / 0.5755 GB, free: 2.262 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.5934, allocations: 376.9 kB / 0.5758 GB, free: 1.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004257/0.5938, allocations: 291.7 kB / 0.5761 GB, free: 1.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005286/0.5943, allocations: 452.4 kB / 0.5765 GB, free: 1.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/0.5949, allocations: 268.1 kB / 0.5768 GB, free: 1.203 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5949, allocations: 0 / 0.5768 GB, free: 1.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002136/0.5971, allocations: 1.052 MB / 0.5778 GB, free: 404 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.5971, allocations: 4 kB / 0.5778 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.5971, allocations: 11.98 kB / 0.5778 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.5982, allocations: 0.5848 MB / 0.5784 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.5987, allocations: 139.5 kB / 0.5785 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/0.601, allocations: 2.657 MB / 0.5811 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009313/0.6019, allocations: 175.7 kB / 0.5813 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.134e-05/0.602, allocations: 42.98 kB / 0.5813 GB, free: 13.06 MB / 394.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.0002825/0.6023, allocations: 156 kB / 0.5815 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.6025, allocations: 63.25 kB / 0.5815 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.6046, allocations: 0.9735 MB / 0.5825 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.6046, allocations: 8 kB / 0.5825 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.6047, allocations: 8 kB / 0.5825 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.6047, allocations: 3.984 kB / 0.5825 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.6079, allocations: 1.899 MB / 0.5844 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.6079, allocations: 4.062 kB / 0.5844 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005593/0.6085, allocations: 119.8 kB / 0.5845 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000978/0.6095, allocations: 0.55 MB / 0.585 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.951e-05/0.6096, allocations: 26.2 kB / 0.585 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/0.6118, allocations: 2.587 MB / 0.5876 GB, free: 7.457 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.6118, allocations: 3.953 kB / 0.5876 GB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.6142, allocations: 1.599 MB / 0.5891 GB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.6145, allocations: 213 kB / 0.5893 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.6146, allocations: 11.69 kB / 0.5893 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008746/0.6155, allocations: 159.8 kB / 0.5895 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.6159, allocations: 180.8 kB / 0.5897 GB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.616, allocations: 43.95 kB / 0.5897 GB, free: 5.605 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003234/0.6163, allocations: 245.6 kB / 0.5899 GB, free: 5.414 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6163, allocations: 0 / 0.5899 GB, free: 5.414 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009695/0.6173, allocations: 163.9 kB / 0.5901 GB, free: 5.254 MB / 394.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.0003687/0.6177, allocations: 139.4 kB / 0.5902 GB, free: 5.113 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.6194, allocations: 0.8689 MB / 0.5911 GB, free: 4.469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6195, allocations: 3.938 kB / 0.5911 GB, free: 4.465 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.6205, allocations: 455.3 kB / 0.5915 GB, free: 4.156 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000807/0.6213, allocations: 88.66 kB / 0.5916 GB, free: 4.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.6256, allocations: 1.973 MB / 0.5935 GB, free: 2.195 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.6261, allocations: 0.9186 MB / 0.5944 GB, free: 1.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.6264, allocations: 56.83 kB / 0.5945 GB, free: 1.195 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.6265, allocations: 43.11 kB / 0.5945 GB, free: 1.156 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6265, allocations: 0 / 0.5945 GB, free: 1.156 MB / 394.7 MB Notification: Performance of Templates: time 0.01835/0.6449, allocations: 12.78 MB / 0.607 GB, free: 4.41 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches