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.001426/0.001426, allocations: 179 kB / 18.09 MB, free: 3.754 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.321/1.321, allocations: 223.3 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008053/0.0008053, allocations: 92.45 kB / 293.3 MB, free: 10.79 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.3411/0.3411, allocations: 44.15 MB / 388.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003927, allocations: 12 kB / 461.1 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3697, allocations: 61.88 MB / 0.5107 GB, free: 37.99 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.4847, allocations: 89.46 MB / 0.5981 GB, free: 5.629 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.485, allocations: 75.94 kB / 0.5982 GB, free: 5.559 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01304/0.498, allocations: 4.634 MB / 0.6027 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4981, allocations: 0 / 0.6027 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.4981, allocations: 4 kB / 0.6027 GB, free: 0.9062 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.0009628/0.4991, allocations: 0.5291 MB / 0.6032 GB, free: 336 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.4992, allocations: 8.031 kB / 0.6032 GB, free: 328 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.243e-05/0.4993, allocations: 28.66 kB / 0.6032 GB, free: 300 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.4996, allocations: 241 kB / 0.6035 GB, free: 20 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.4997, allocations: 20.81 kB / 0.6035 GB, free: 16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.4997, allocations: 28.3 kB / 0.6035 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.5003, allocations: 255.7 kB / 0.6038 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.5003, allocations: 8.094 kB / 0.6038 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.5003, allocations: 11.94 kB / 0.6038 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.5004, allocations: 8 kB / 0.6038 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.5008, allocations: 213.6 kB / 0.604 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.5022, allocations: 0.7131 MB / 0.6047 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.5027, allocations: 219.2 kB / 0.6049 GB, free: 14.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.5029, allocations: 142.2 kB / 0.605 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.503, allocations: 8.234 kB / 0.605 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.503, allocations: 30.8 kB / 0.6051 GB, free: 14.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 2.144e-06/0.503, allocations: 0 / 0.6051 GB, free: 14.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=35): time 0.00315/0.5062, allocations: 1.494 MB / 0.6065 GB, free: 12.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.5063, allocations: 55.41 kB / 0.6066 GB, free: 12.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.5065, allocations: 191.6 kB / 0.6068 GB, free: 12.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.5065, allocations: 37.7 kB / 0.6068 GB, free: 12.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/0.5066, allocations: 125 kB / 0.6069 GB, free: 12.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.5067, allocations: 126.2 kB / 0.607 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.5067, allocations: 8 kB / 0.607 GB, free: 12.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5069, allocations: 334.8 kB / 0.6074 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.5071, allocations: 110.7 kB / 0.6075 GB, free: 11.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.5074, allocations: 164.5 kB / 0.6076 GB, free: 11.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.5079, allocations: 236.4 kB / 0.6078 GB, free: 11.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5079, allocations: 0 / 0.6078 GB, free: 11.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007743/0.5087, allocations: 425.7 kB / 0.6083 GB, free: 10.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.5087, allocations: 4 kB / 0.6083 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.5087, allocations: 0 / 0.6083 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004551/0.5092, allocations: 200.7 kB / 0.6084 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.5094, allocations: 51.97 kB / 0.6085 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000728/0.5101, allocations: 0.7108 MB / 0.6092 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.5104, allocations: 56.05 kB / 0.6092 GB, free: 9.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.162e-05/0.5104, allocations: 16.05 kB / 0.6093 GB, free: 9.801 MB / 426.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 () * Number of clocked 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.0001705/0.5106, allocations: 148 kB / 0.6094 GB, free: 9.648 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.5107, allocations: 23.72 kB / 0.6094 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009158/0.5116, allocations: 452.8 kB / 0.6099 GB, free: 9.172 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.5116, allocations: 4 kB / 0.6099 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5116, allocations: 4 kB / 0.6099 GB, free: 9.164 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5116, allocations: 3.984 kB / 0.6099 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.5132, allocations: 0.9366 MB / 0.6108 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5132, allocations: 0 / 0.6108 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.5134, allocations: 55.91 kB / 0.6108 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003682/0.5138, allocations: 172.8 kB / 0.611 GB, free: 7.926 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.5138, allocations: 11.98 kB / 0.611 GB, free: 7.914 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005847/0.5144, allocations: 0.6771 MB / 0.6117 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5145, allocations: 64 / 0.6117 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.5155, allocations: 0.6301 MB / 0.6123 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.5157, allocations: 124.9 kB / 0.6124 GB, free: 6.414 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.5157, allocations: 15.88 kB / 0.6124 GB, free: 6.398 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.516, allocations: 56.02 kB / 0.6125 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.5161, allocations: 63.8 kB / 0.6125 GB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.083e-05/0.5162, allocations: 15.98 kB / 0.6126 GB, free: 6.266 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001185/0.5163, allocations: 139.4 kB / 0.6127 GB, free: 6.129 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5163, allocations: 0 / 0.6127 GB, free: 6.129 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000389/0.5167, allocations: 76 kB / 0.6128 GB, free: 6.055 MB / 426.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) * Number of clocked states: 0 () * 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.0002233/0.5169, allocations: 131.2 kB / 0.6129 GB, free: 5.918 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007716/0.5177, allocations: 329.5 kB / 0.6132 GB, free: 5.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.5177, allocations: 0 / 0.6132 GB, free: 5.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.518, allocations: 163.8 kB / 0.6134 GB, free: 5.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.5185, allocations: 31.92 kB / 0.6134 GB, free: 5.398 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.5204, allocations: 0.9558 MB / 0.6143 GB, free: 4.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.5208, allocations: 0.7561 MB / 0.6151 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.86e-05/0.5209, allocations: 18.3 kB / 0.6151 GB, free: 3.613 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.186e-05/0.5209, allocations: 19.42 kB / 0.6151 GB, free: 3.594 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/0.521, allocations: 0 / 0.6151 GB, free: 3.594 MB / 426.7 MB Notification: Performance of Templates: time 0.008496/0.5295, allocations: 4.373 MB / 0.6194 GB, free: 15.24 MB / 442.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/jenkins1/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