Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002237/0.002242, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 85.73 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3086/0.3086, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.784e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4013, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.5949, allocations: 104.7 MB / 0.5681 GB, free: 10.58 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.5952, allocations: 75.97 kB / 0.5682 GB, free: 10.5 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8713/1.467, allocations: 126.7 MB / 0.692 GB, free: 107.8 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.265e-06/1.467, allocations: 3.906 kB / 0.692 GB, free: 107.8 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003906/1.467, allocations: 120.5 kB / 0.6921 GB, free: 107.8 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.02683/1.494, allocations: 6.244 MB / 0.6982 GB, free: 104.5 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/1.494, allocations: 10.72 kB / 0.6982 GB, free: 104.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04921/1.543, allocations: 6.46 MB / 0.7045 GB, free: 101.4 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04295/1.586, allocations: 8.566 MB / 0.7129 GB, free: 95.77 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007084/1.587, allocations: 188 kB / 0.7131 GB, free: 95.58 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008408/1.595, allocations: 343.9 kB / 0.7134 GB, free: 95.25 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03739/1.633, allocations: 10.55 MB / 0.7237 GB, free: 84.7 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05196/1.685, allocations: 13.73 MB / 0.7371 GB, free: 70.26 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006823/1.686, allocations: 59.5 kB / 0.7371 GB, free: 70.2 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004471/1.69, allocations: 23.95 kB / 0.7372 GB, free: 70.18 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006342/1.697, allocations: 1.698 MB / 0.7388 GB, free: 68.49 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1601/1.857, allocations: 53.37 MB / 0.7909 GB, free: 14.49 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01875/1.876, allocations: 6.621 MB / 0.7974 GB, free: 7.645 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00885/1.885, allocations: 4.605 MB / 0.8019 GB, free: 3.035 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002796/1.887, allocations: 2.21 MB / 0.8041 GB, free: 468 kB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.901e-05/1.888, allocations: 72.72 kB / 0.8041 GB, free: 388 kB / 475.1 MB Notification: Performance of pre-optimization done (n=369): time 8.686e-06/1.888, allocations: 0 / 0.8041 GB, free: 388 kB / 475.1 MB Notification: Performance of matching and sorting (n=431): time 0.5003/2.388, allocations: 35.81 MB / 0.8391 GB, free: 125.1 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/2.388, allocations: 115.6 kB / 0.8392 GB, free: 125 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009849/2.398, allocations: 3.536 MB / 0.8427 GB, free: 124.7 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.00119/2.399, allocations: 26.86 kB / 0.8427 GB, free: 124.7 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.003769/2.403, allocations: 3.91 MB / 0.8465 GB, free: 123.3 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002827/2.406, allocations: 1.491 MB / 0.848 GB, free: 122.3 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/2.407, allocations: 1.156 kB / 0.848 GB, free: 122.3 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0008833/2.408, allocations: 0.6591 MB / 0.8486 GB, free: 122 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01038/2.418, allocations: 3.83 MB / 0.8524 GB, free: 122 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01362/2.432, allocations: 7.858 MB / 0.86 GB, free: 116.9 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/2.445, allocations: 5.485 MB / 0.8654 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002376/2.445, allocations: 42.25 kB / 0.8654 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1077) (initialization): time 0.04213/2.488, allocations: 13.34 MB / 0.8784 GB, free: 113 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/2.488, allocations: 63.38 kB / 0.8785 GB, free: 113 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/2.488, allocations: 143.2 kB / 0.8786 GB, free: 113 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/2.501, allocations: 2.613 MB / 0.8812 GB, free: 112.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01467/2.516, allocations: 2.059 MB / 0.8832 GB, free: 112.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02839/2.544, allocations: 12.9 MB / 0.8958 GB, free: 106.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/2.554, allocations: 345.1 kB / 0.8961 GB, free: 106.4 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0024/2.557, allocations: 460 kB / 0.8966 GB, free: 106.3 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 48 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (980): * Single equations (assignments): 972 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003924/2.561, allocations: 485.4 kB / 0.897 GB, free: 105.9 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001977/2.563, allocations: 459.6 kB / 0.8975 GB, free: 105.7 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03293/2.596, allocations: 10.26 MB / 0.9075 GB, free: 102.5 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001501/2.596, allocations: 68.55 kB / 0.9076 GB, free: 102.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/2.596, allocations: 6.219 kB / 0.9076 GB, free: 102.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/2.596, allocations: 22.56 kB / 0.9076 GB, free: 102.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06073/2.657, allocations: 19.72 MB / 0.9268 GB, free: 90.77 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.057e-05/2.657, allocations: 12 kB / 0.9269 GB, free: 90.75 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007571/2.665, allocations: 0.8179 MB / 0.9277 GB, free: 90.14 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01271/2.677, allocations: 2.384 MB / 0.93 GB, free: 88.59 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00121/2.679, allocations: 19.23 kB / 0.93 GB, free: 88.58 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.025/2.704, allocations: 11.7 MB / 0.9414 GB, free: 78.47 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.592e-05/2.704, allocations: 15.94 kB / 0.9414 GB, free: 78.45 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03929/2.743, allocations: 16.15 MB / 0.9572 GB, free: 62.13 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005098/2.748, allocations: 1.147 MB / 0.9583 GB, free: 60.96 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002137/2.75, allocations: 23.98 kB / 0.9584 GB, free: 60.93 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006234/2.757, allocations: 243.6 kB / 0.9586 GB, free: 60.7 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001691/2.758, allocations: 266.1 kB / 0.9588 GB, free: 60.43 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009155/2.759, allocations: 116.8 kB / 0.959 GB, free: 60.32 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006081/2.766, allocations: 2.38 MB / 0.9613 GB, free: 57.94 MB / 0.4952 GB Notification: Performance of sort global known variables: time 8.31e-07/2.766, allocations: 4 kB / 0.9613 GB, free: 57.93 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01153/2.777, allocations: 1.465 MB / 0.9627 GB, free: 56.47 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00164/2.779, allocations: 181.5 kB / 0.9629 GB, free: 56.29 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02147/2.8, allocations: 9.493 MB / 0.9722 GB, free: 46.8 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/2.8, allocations: 4 kB / 0.9722 GB, free: 46.8 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.009857/2.81, allocations: 4.176 MB / 0.9762 GB, free: 42.61 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005363/2.816, allocations: 496.5 kB / 0.9767 GB, free: 42.12 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03884/2.855, allocations: 13.98 MB / 0.9904 GB, free: 27.96 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01155/2.866, allocations: 4.778 MB / 0.995 GB, free: 23.16 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003711/2.87, allocations: 411.3 kB / 0.9954 GB, free: 22.76 MB / 0.4952 GB Notification: Performance of SimCode: time 1.412e-06/2.87, allocations: 0 / 0.9954 GB, free: 22.76 MB / 0.4952 GB Notification: Performance of Templates: time 0.6354/3.505, allocations: 135.7 MB / 1.128 GB, free: 74.01 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches