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.001486/0.001486, allocations: 173.2 kB / 8.742 MB, free: 344 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.604/1.604, allocations: 221.5 MB / 230.7 MB, free: 7.559 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.000902/0.0009022, allocations: 93.95 kB / 281.6 MB, free: 5.316 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.187/0.187, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.51e-05/1.512e-05, allocations: 4.219 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 61.91 MB / 0.4947 GB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3808/0.5073, allocations: 88.7 MB / 0.5813 GB, free: 7.789 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000179/0.5075, allocations: 71.95 kB / 0.5814 GB, free: 7.719 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01152/0.5191, allocations: 4.599 MB / 0.5858 GB, free: 3.113 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.5191, allocations: 0 / 0.5858 GB, free: 3.113 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.5191, allocations: 7.938 kB / 0.5859 GB, free: 3.105 MB / 394.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.0006438/0.5198, allocations: 0.5021 MB / 0.5863 GB, free: 2.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.5198, allocations: 8.031 kB / 0.5864 GB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.5198, allocations: 27.72 kB / 0.5864 GB, free: 2.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.5201, allocations: 250.5 kB / 0.5866 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.5201, allocations: 12 kB / 0.5866 GB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.5202, allocations: 15.98 kB / 0.5866 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003139/0.5205, allocations: 184.8 kB / 0.5868 GB, free: 2.035 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.5208, allocations: 214.4 kB / 0.587 GB, free: 1.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.5208, allocations: 3.906 kB / 0.587 GB, free: 1.812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/0.5209, allocations: 0 / 0.587 GB, free: 1.812 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.5209, allocations: 8 kB / 0.587 GB, free: 1.805 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.5219, allocations: 0.6505 MB / 0.5877 GB, free: 1.113 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002758/0.5222, allocations: 197.4 kB / 0.5879 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.5224, allocations: 121.3 kB / 0.588 GB, free: 0.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.5224, allocations: 4.234 kB / 0.588 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.5224, allocations: 38.8 kB / 0.588 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 2.465e-06/0.5225, allocations: 7.984 kB / 0.588 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.001968/0.5244, allocations: 1.094 MB / 0.5891 GB, free: 15.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.5245, allocations: 55.41 kB / 0.5891 GB, free: 15.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.916e-05/0.5246, allocations: 138.3 kB / 0.5893 GB, free: 15.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.5246, allocations: 33.64 kB / 0.5893 GB, free: 15.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.5247, allocations: 129 kB / 0.5894 GB, free: 15.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.5248, allocations: 114.3 kB / 0.5895 GB, free: 15.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.756e-05/0.5248, allocations: 0 / 0.5895 GB, free: 15.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.5249, allocations: 342.8 kB / 0.5899 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.5251, allocations: 92 kB / 0.59 GB, free: 14.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.5252, allocations: 135.4 kB / 0.5901 GB, free: 14.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.5254, allocations: 99.75 kB / 0.5902 GB, free: 14.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.5254, allocations: 0 / 0.5902 GB, free: 14.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005998/0.5261, allocations: 370.1 kB / 0.5905 GB, free: 14.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.5261, allocations: 9.406 kB / 0.5905 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.5261, allocations: 0 / 0.5905 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/0.5265, allocations: 191 kB / 0.5907 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.5267, allocations: 51.91 kB / 0.5908 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006611/0.5273, allocations: 0.7293 MB / 0.5915 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.5276, allocations: 40.03 kB / 0.5915 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.5276, allocations: 19.98 kB / 0.5915 GB, free: 12.95 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.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: 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 0.0001239/0.5277, allocations: 122.2 kB / 0.5917 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.5278, allocations: 15.81 kB / 0.5917 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007643/0.5286, allocations: 405.4 kB / 0.5921 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.5286, allocations: 0 / 0.5921 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5286, allocations: 11.92 kB / 0.5921 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.5286, allocations: 0 / 0.5921 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.5298, allocations: 0.8515 MB / 0.5929 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5298, allocations: 4 kB / 0.5929 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.53, allocations: 59.97 kB / 0.593 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002998/0.5304, allocations: 160.7 kB / 0.5931 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.5304, allocations: 11.88 kB / 0.5931 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005666/0.531, allocations: 0.689 MB / 0.5938 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.531, allocations: 0 / 0.5938 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008879/0.5319, allocations: 0.6026 MB / 0.5944 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.532, allocations: 124.8 kB / 0.5945 GB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.532, allocations: 3.984 kB / 0.5945 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.5323, allocations: 48.03 kB / 0.5946 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/0.5324, allocations: 55.88 kB / 0.5946 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.5324, allocations: 15.98 kB / 0.5946 GB, free: 9.625 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.85e-05/0.5325, allocations: 115.3 kB / 0.5947 GB, free: 9.512 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5325, allocations: 0 / 0.5947 GB, free: 9.512 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003187/0.5328, allocations: 68 kB / 0.5948 GB, free: 9.445 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.0001759/0.533, allocations: 135.8 kB / 0.5949 GB, free: 9.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004889/0.5335, allocations: 293.4 kB / 0.5952 GB, free: 9.012 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.5335, allocations: 0 / 0.5952 GB, free: 9.012 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.5338, allocations: 148.3 kB / 0.5954 GB, free: 8.867 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.534, allocations: 19.94 kB / 0.5954 GB, free: 8.848 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.5355, allocations: 0.6596 MB / 0.596 GB, free: 8.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.5358, allocations: 0.7641 MB / 0.5968 GB, free: 7.367 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.309e-05/0.5359, allocations: 26.06 kB / 0.5968 GB, free: 7.344 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.5359, allocations: 19.53 kB / 0.5968 GB, free: 7.324 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5359, allocations: 3.938 kB / 0.5968 GB, free: 7.32 MB / 410.7 MB Notification: Performance of Templates: time 0.006535/0.5425, allocations: 4.115 MB / 0.6008 GB, free: 3.219 MB / 410.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