Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000936/0.0009361, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 221.3 MB / 236 MB, free: 2.965 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.0008117/0.0008116, allocations: 92.03 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1763/0.1763, allocations: 44.14 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.335e-05, allocations: 4.219 kB / 451.8 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1181, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4776, allocations: 89.36 MB / 0.589 GB, free: 15.97 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.4778, allocations: 67.97 kB / 0.589 GB, free: 15.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01257/0.4904, allocations: 4.634 MB / 0.5936 GB, free: 11.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4904, allocations: 0 / 0.5936 GB, free: 11.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.4904, allocations: 4 kB / 0.5936 GB, free: 11.26 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000743/0.4912, allocations: 0.506 MB / 0.5941 GB, free: 10.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4912, allocations: 15.97 kB / 0.5941 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.704e-05/0.4913, allocations: 27.72 kB / 0.5941 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.4916, allocations: 238.6 kB / 0.5943 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.4916, allocations: 20.44 kB / 0.5943 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.4917, allocations: 20 kB / 0.5944 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.4921, allocations: 239.2 kB / 0.5946 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.4922, allocations: 11.91 kB / 0.5946 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.4922, allocations: 8 kB / 0.5946 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.4922, allocations: 11.98 kB / 0.5946 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003586/0.4926, allocations: 197.6 kB / 0.5948 GB, free: 9.895 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.4938, allocations: 0.7015 MB / 0.5955 GB, free: 9.137 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.4941, allocations: 207.2 kB / 0.5957 GB, free: 8.926 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.4943, allocations: 133.3 kB / 0.5958 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.4944, allocations: 8.219 kB / 0.5958 GB, free: 8.785 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.4944, allocations: 34.8 kB / 0.5959 GB, free: 8.742 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.513e-06/0.4944, allocations: 7.938 kB / 0.5959 GB, free: 8.734 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.001926/0.4964, allocations: 1.155 MB / 0.597 GB, free: 7.484 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.4964, allocations: 59.39 kB / 0.597 GB, free: 7.414 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.4966, allocations: 169.8 kB / 0.5972 GB, free: 7.242 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.4966, allocations: 37.64 kB / 0.5972 GB, free: 7.199 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.69e-05/0.4967, allocations: 124.6 kB / 0.5974 GB, free: 7.074 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/0.4968, allocations: 118.3 kB / 0.5975 GB, free: 6.957 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.885e-05/0.4968, allocations: 8 kB / 0.5975 GB, free: 6.949 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4969, allocations: 330.8 kB / 0.5978 GB, free: 6.617 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.4971, allocations: 108 kB / 0.5979 GB, free: 6.512 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.4973, allocations: 147.2 kB / 0.598 GB, free: 6.355 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.4974, allocations: 100.9 kB / 0.5981 GB, free: 6.258 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4975, allocations: 0 / 0.5981 GB, free: 6.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005973/0.4981, allocations: 393.8 kB / 0.5985 GB, free: 5.863 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4981, allocations: 11.98 kB / 0.5985 GB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4981, allocations: 0 / 0.5985 GB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003817/0.4985, allocations: 184.8 kB / 0.5987 GB, free: 5.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.4987, allocations: 51.91 kB / 0.5988 GB, free: 5.617 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006265/0.4993, allocations: 0.7176 MB / 0.5995 GB, free: 4.875 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.4996, allocations: 51.94 kB / 0.5995 GB, free: 4.824 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.4996, allocations: 16.06 kB / 0.5995 GB, free: 4.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 9.402e-05/0.4997, allocations: 120.9 kB / 0.5996 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.4998, allocations: 23.72 kB / 0.5997 GB, free: 4.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007634/0.5006, allocations: 433.2 kB / 0.6001 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-06/0.5006, allocations: 7.984 kB / 0.6001 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5006, allocations: 3.953 kB / 0.6001 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5006, allocations: 3.984 kB / 0.6001 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.5019, allocations: 0.9249 MB / 0.601 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5019, allocations: 4 kB / 0.601 GB, free: 3.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.5021, allocations: 47.97 kB / 0.601 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.5025, allocations: 168.7 kB / 0.6012 GB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.5025, allocations: 19.92 kB / 0.6012 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005176/0.503, allocations: 0.6733 MB / 0.6019 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.503, allocations: 4.062 kB / 0.6019 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.5041, allocations: 0.618 MB / 0.6025 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.5043, allocations: 128.8 kB / 0.6026 GB, free: 1.473 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.5044, allocations: 8 kB / 0.6026 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.5046, allocations: 52.02 kB / 0.6027 GB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.5047, allocations: 63.83 kB / 0.6027 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.5048, allocations: 12 kB / 0.6027 GB, free: 1.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.5049, allocations: 143.3 kB / 0.6029 GB, free: 1.199 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5049, allocations: 0 / 0.6029 GB, free: 1.199 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.5052, allocations: 76 kB / 0.6029 GB, free: 1.125 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001867/0.5054, allocations: 134.9 kB / 0.6031 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005598/0.506, allocations: 313.6 kB / 0.6034 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.506, allocations: 0 / 0.6034 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.5063, allocations: 151.8 kB / 0.6035 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.5065, allocations: 28.17 kB / 0.6035 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.508, allocations: 0.6633 MB / 0.6042 GB, free: 15.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.5083, allocations: 0.7643 MB / 0.6049 GB, free: 15.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.777e-05/0.5084, allocations: 18.02 kB / 0.605 GB, free: 15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.5085, allocations: 23.44 kB / 0.605 GB, free: 14.97 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5085, allocations: 0 / 0.605 GB, free: 14.97 MB / 426.7 MB Notification: Performance of Templates: time 0.007046/0.5155, allocations: 4.355 MB / 0.6092 GB, free: 10.64 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches