Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical") translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical") [: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.001605/0.001604, allocations: 170.2 kB / 8.147 MB, free: 2.223 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.637/1.637, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001252/0.001252, allocations: 98.75 kB / 261.8 MB, free: 13.61 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.2849/0.2849, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.349e-05/1.364e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2831, allocations: 58.85 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.4689, allocations: 100.9 MB / 0.5639 GB, free: 14.17 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.4693, allocations: 75.95 kB / 0.564 GB, free: 14.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5451/1.014, allocations: 81.11 MB / 0.6432 GB, free: 111.7 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001797/1.015, allocations: 73.34 kB / 0.6432 GB, free: 111.7 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.02019/1.035, allocations: 3.717 MB / 0.6469 GB, free: 110.2 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.035, allocations: 14.25 kB / 0.6469 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03871/1.074, allocations: 4.424 MB / 0.6512 GB, free: 110 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/1.094, allocations: 5.315 MB / 0.6564 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/1.094, allocations: 117.2 kB / 0.6565 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/1.097, allocations: 222 kB / 0.6567 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01683/1.114, allocations: 7.062 MB / 0.6636 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02455/1.138, allocations: 9.36 MB / 0.6727 GB, free: 108 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002021/1.139, allocations: 31.5 kB / 0.6728 GB, free: 108 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002094/1.141, allocations: 17.34 kB / 0.6728 GB, free: 108 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002222/1.143, allocations: 1.224 MB / 0.674 GB, free: 108 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07554/1.219, allocations: 35.5 MB / 0.7087 GB, free: 86.59 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008284/1.227, allocations: 4.187 MB / 0.7127 GB, free: 84.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005505/1.232, allocations: 2.414 MB / 0.7151 GB, free: 83.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02614/1.259, allocations: 10.75 MB / 0.7256 GB, free: 74.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/1.259, allocations: 47.78 kB / 0.7256 GB, free: 74.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=181): time 4.879e-06/1.259, allocations: 0 / 0.7256 GB, free: 74.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.04062/1.299, allocations: 10.53 MB / 0.7359 GB, free: 65.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/1.299, allocations: 64.72 kB / 0.736 GB, free: 65.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006729/1.306, allocations: 2.651 MB / 0.7386 GB, free: 63.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005796/1.307, allocations: 25.7 kB / 0.7386 GB, free: 63.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/1.309, allocations: 2.757 MB / 0.7413 GB, free: 60.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/1.31, allocations: 0.703 MB / 0.742 GB, free: 60.06 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008107/1.311, allocations: 0 / 0.742 GB, free: 60.06 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005684/1.312, allocations: 0.5591 MB / 0.7425 GB, free: 59.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006716/1.319, allocations: 2.54 MB / 0.745 GB, free: 57.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008881/1.328, allocations: 5.749 MB / 0.7506 GB, free: 50.28 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009182/1.337, allocations: 3.844 MB / 0.7544 GB, free: 46.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.845e-05/1.337, allocations: 32 kB / 0.7544 GB, free: 46.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.1284/1.465, allocations: 14.61 MB / 0.7687 GB, free: 32.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/1.465, allocations: 4 kB / 0.7687 GB, free: 32.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08725/1.553, allocations: 8.935 MB / 0.7774 GB, free: 23.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1014/1.654, allocations: 6.782 MB / 0.784 GB, free: 16.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01107/1.665, allocations: 1.259 MB / 0.7852 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0604/1.726, allocations: 14.29 MB / 0.7992 GB, free: 1.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006313/1.732, allocations: 239.8 kB / 0.7994 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.734, allocations: 342.2 kB / 0.7998 GB, free: 0.4961 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (684): * Single equations (assignments): 673 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001491/1.735, allocations: 322.7 kB / 0.8001 GB, free: 180 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006893/1.736, allocations: 268.6 kB / 0.8003 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/1.738, allocations: 421 kB / 0.8007 GB, free: 15.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01404/1.752, allocations: 3.945 MB / 0.8046 GB, free: 11.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/1.752, allocations: 0 / 0.8046 GB, free: 11.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.851e-05/1.752, allocations: 7.969 kB / 0.8046 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04276/1.794, allocations: 10.18 MB / 0.8145 GB, free: 1.273 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/1.795, allocations: 4 kB / 0.8145 GB, free: 1.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005136/1.8, allocations: 279.1 kB / 0.8148 GB, free: 1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009265/1.809, allocations: 0.853 MB / 0.8156 GB, free: 140 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000647/1.81, allocations: 11.98 kB / 0.8156 GB, free: 128 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01715/1.827, allocations: 5.18 MB / 0.8207 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00209/1.829, allocations: 1.357 MB / 0.822 GB, free: 9.246 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0217/1.851, allocations: 6.812 MB / 0.8287 GB, free: 2.371 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/1.852, allocations: 329.5 kB / 0.829 GB, free: 2.027 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001167/1.853, allocations: 7.984 kB / 0.829 GB, free: 2.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003294/1.856, allocations: 99.84 kB / 0.8291 GB, free: 1.922 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006182/1.857, allocations: 77.09 kB / 0.8292 GB, free: 1.848 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002772/1.857, allocations: 47.98 kB / 0.8292 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004383/1.862, allocations: 1.752 MB / 0.8309 GB, free: 48 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.1648/2.027, allocations: 0.9986 MB / 0.8319 GB, free: 183.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008316/2.027, allocations: 141.2 kB / 0.832 GB, free: 183.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01723/2.045, allocations: 6.095 MB / 0.838 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/2.045, allocations: 0 / 0.838 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005816/2.051, allocations: 2.197 MB / 0.8401 GB, free: 182.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/2.053, allocations: 226.9 kB / 0.8404 GB, free: 182.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/2.08, allocations: 8.48 MB / 0.8486 GB, free: 181 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009199/2.09, allocations: 3.479 MB / 0.852 GB, free: 180.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/2.09, allocations: 0 / 0.852 GB, free: 180.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.1926/2.282, allocations: 105.4 MB / 0.9549 GB, free: 110.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches