Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 185.3 kB / 8.153 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.2 MB / 213.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001334/0.001334, allocations: 90.23 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3168/0.3168, allocations: 43.48 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.117e-06/9.297e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2845, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.4695, allocations: 104.6 MB / 0.5675 GB, free: 10.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.4698, allocations: 71.97 kB / 0.5676 GB, free: 10.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.7215/1.191, allocations: 124.9 MB / 0.6895 GB, free: 63.88 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003527/1.192, allocations: 117.5 kB / 0.6897 GB, free: 63.87 MB / 474.7 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.02531/1.217, allocations: 6.135 MB / 0.6957 GB, free: 61.41 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/1.217, allocations: 7.781 kB / 0.6957 GB, free: 61.41 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04315/1.26, allocations: 5.587 MB / 0.7011 GB, free: 60.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03511/1.295, allocations: 8.681 MB / 0.7096 GB, free: 59.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004466/1.296, allocations: 190.7 kB / 0.7098 GB, free: 59.23 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02735/1.323, allocations: 353 kB / 0.7101 GB, free: 59.22 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04989/1.373, allocations: 10.94 MB / 0.7208 GB, free: 58.11 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04461/1.418, allocations: 14.1 MB / 0.7346 GB, free: 53.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003871/1.418, allocations: 70.62 kB / 0.7346 GB, free: 53.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003534/1.422, allocations: 20 kB / 0.7346 GB, free: 53.26 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004465/1.426, allocations: 1.812 MB / 0.7364 GB, free: 51.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1268/1.553, allocations: 55.01 MB / 0.7901 GB, free: 11.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/1.568, allocations: 5.791 MB / 0.7958 GB, free: 6.047 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01234/1.58, allocations: 5.142 MB / 0.8008 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05398/1.634, allocations: 18.25 MB / 0.8186 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.187e-05/1.634, allocations: 64.81 kB / 0.8187 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=336): time 7.093e-06/1.634, allocations: 0 / 0.8187 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=389): time 0.3033/1.938, allocations: 33.99 MB / 0.8519 GB, free: 193 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/1.938, allocations: 115.3 kB / 0.852 GB, free: 192.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009971/1.948, allocations: 3.795 MB / 0.8557 GB, free: 192.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.949, allocations: 25.7 kB / 0.8557 GB, free: 192.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002786/1.952, allocations: 3.647 MB / 0.8593 GB, free: 190.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002597/1.954, allocations: 1.356 MB / 0.8606 GB, free: 189.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/1.956, allocations: 2.188 kB / 0.8606 GB, free: 189.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007954/1.957, allocations: 0.6608 MB / 0.8613 GB, free: 189 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/1.967, allocations: 3.908 MB / 0.8651 GB, free: 189 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01349/1.981, allocations: 7.939 MB / 0.8728 GB, free: 182.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01351/1.994, allocations: 5.607 MB / 0.8783 GB, free: 181 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/1.994, allocations: 39.72 kB / 0.8783 GB, free: 181 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.04581/2.04, allocations: 13.22 MB / 0.8913 GB, free: 177.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/2.04, allocations: 3.5 kB / 0.8913 GB, free: 177.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/2.041, allocations: 141.2 kB / 0.8914 GB, free: 177.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01498/2.056, allocations: 2.367 MB / 0.8937 GB, free: 177.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01625/2.072, allocations: 1.922 MB / 0.8956 GB, free: 176.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03343/2.105, allocations: 13.3 MB / 0.9086 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009122/2.115, allocations: 250.1 kB / 0.9088 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002392/2.117, allocations: 456.7 kB / 0.9092 GB, free: 168.1 MB / 0.5105 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 (971): * Single equations (assignments): 963 * 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 {(2,100.0%) 36,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003467/2.121, allocations: 412.6 kB / 0.9096 GB, free: 167.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001453/2.122, allocations: 454.1 kB / 0.9101 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03513/2.157, allocations: 9.546 MB / 0.9194 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001792/2.157, allocations: 55.19 kB / 0.9194 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.02e-05/2.157, allocations: 8 kB / 0.9195 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-05/2.158, allocations: 17.72 kB / 0.9195 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0615/2.219, allocations: 17.7 MB / 0.9368 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.127e-05/2.219, allocations: 4.594 kB / 0.9368 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007494/2.227, allocations: 0.6436 MB / 0.9374 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01427/2.241, allocations: 2.193 MB / 0.9395 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00119/2.242, allocations: 12 kB / 0.9395 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02882/2.271, allocations: 11.36 MB / 0.9506 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/2.271, allocations: 11.94 kB / 0.9506 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04133/2.313, allocations: 14.6 MB / 0.9649 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004569/2.317, allocations: 1.116 MB / 0.966 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002339/2.32, allocations: 11.91 kB / 0.966 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006154/2.326, allocations: 147.8 kB / 0.9661 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001529/2.327, allocations: 182.2 kB / 0.9663 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007237/2.328, allocations: 95.98 kB / 0.9664 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.006827/2.335, allocations: 2.57 MB / 0.9689 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0109/2.346, allocations: 1.431 MB / 0.9703 GB, free: 113.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (306): * Single equations (assignments): 298 * 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%) 29,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001493/2.347, allocations: 176.2 kB / 0.9705 GB, free: 113 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02207/2.369, allocations: 9.305 MB / 0.9796 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/2.37, allocations: 11.94 kB / 0.9796 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01019/2.38, allocations: 3.958 MB / 0.9834 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005365/2.385, allocations: 474.7 kB / 0.9839 GB, free: 99.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04396/2.429, allocations: 13.66 MB / 0.9972 GB, free: 85.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01531/2.445, allocations: 5.115 MB / 1.002 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of SimCode: time 2.014e-06/2.445, allocations: 4 kB / 1.002 GB, free: 80.35 MB / 0.5105 GB Notification: Performance of Templates: time 0.4749/2.92, allocations: 138.7 MB / 1.138 GB, free: 154.7 MB / 0.5105 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/jenkins/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