Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 175.6 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.4 MB / 230.3 MB, free: 7.605 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.0009101/0.0009103, allocations: 96.66 kB / 281.2 MB, free: 5.426 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.1808/0.1808, allocations: 44.15 MB / 376.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.645e-06/7.815e-06, allocations: 0 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 61.91 MB / 0.4941 GB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3637/0.4855, allocations: 102.5 MB / 0.5942 GB, free: 10.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4858, allocations: 79.95 kB / 0.5942 GB, free: 10.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.2152/0.701, allocations: 82.17 MB / 0.6745 GB, free: 7.344 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002027/0.7013, allocations: 68 kB / 0.6746 GB, free: 7.277 MB / 490.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.01478/0.7161, allocations: 3.712 MB / 0.6782 GB, free: 3.504 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.7161, allocations: 11.97 kB / 0.6782 GB, free: 3.492 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02113/0.7373, allocations: 4.429 MB / 0.6825 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01496/0.7523, allocations: 5.162 MB / 0.6876 GB, free: 9.836 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/0.7525, allocations: 120 kB / 0.6877 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00204/0.7546, allocations: 216 kB / 0.6879 GB, free: 9.508 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01473/0.7693, allocations: 7.063 MB / 0.6948 GB, free: 2.441 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2056/0.975, allocations: 9.363 MB / 0.7039 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002395/0.9752, allocations: 26.94 kB / 0.7039 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001958/0.9772, allocations: 18.75 kB / 0.704 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001581/0.9788, allocations: 1.238 MB / 0.7052 GB, free: 180.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05234/1.031, allocations: 35.48 MB / 0.7398 GB, free: 164.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004623/1.036, allocations: 4.189 MB / 0.7439 GB, free: 162.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003041/1.039, allocations: 2.415 MB / 0.7463 GB, free: 161.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01726/1.056, allocations: 10.71 MB / 0.7567 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/1.056, allocations: 50.67 kB / 0.7568 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=181): time 6.562e-06/1.056, allocations: 2.625 kB / 0.7568 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.023/1.079, allocations: 10.48 MB / 0.767 GB, free: 152.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/1.079, allocations: 65.84 kB / 0.7671 GB, free: 152.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006325/1.086, allocations: 2.639 MB / 0.7697 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004752/1.086, allocations: 25.7 kB / 0.7697 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002075/1.088, allocations: 2.748 MB / 0.7724 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001093/1.089, allocations: 0.709 MB / 0.7731 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007692/1.09, allocations: 0 / 0.7731 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005956/1.091, allocations: 0.5553 MB / 0.7736 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00451/1.095, allocations: 2.54 MB / 0.7761 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005389/1.101, allocations: 5.748 MB / 0.7817 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005151/1.106, allocations: 3.84 MB / 0.7854 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001125/1.106, allocations: 36 kB / 0.7855 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.05761/1.164, allocations: 14.66 MB / 0.7998 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/1.164, allocations: 4 kB / 0.7998 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04176/1.206, allocations: 8.926 MB / 0.8085 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04371/1.249, allocations: 6.778 MB / 0.8151 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004844/1.254, allocations: 1.267 MB / 0.8164 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.022/1.276, allocations: 14.04 MB / 0.8301 GB, free: 97.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005884/1.282, allocations: 251.8 kB / 0.8303 GB, free: 96.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001787/1.284, allocations: 336 kB / 0.8306 GB, free: 96.59 MB / 0.4948 GB 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.001963/1.286, allocations: 388.7 kB / 0.831 GB, free: 96.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008145/1.287, allocations: 268.4 kB / 0.8313 GB, free: 95.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/1.288, allocations: 420.8 kB / 0.8317 GB, free: 95.51 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00706/1.295, allocations: 3.951 MB / 0.8355 GB, free: 91.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.295, allocations: 4 kB / 0.8355 GB, free: 91.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/1.295, allocations: 11.97 kB / 0.8355 GB, free: 91.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/1.316, allocations: 10.17 MB / 0.8455 GB, free: 81.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/1.316, allocations: 4 kB / 0.8455 GB, free: 81.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/1.317, allocations: 275.5 kB / 0.8457 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00278/1.32, allocations: 0.8568 MB / 0.8466 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002183/1.32, allocations: 27.81 kB / 0.8466 GB, free: 80.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005289/1.326, allocations: 5.161 MB / 0.8517 GB, free: 74.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006606/1.326, allocations: 1.361 MB / 0.853 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009928/1.336, allocations: 6.809 MB / 0.8596 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/1.337, allocations: 333.5 kB / 0.8599 GB, free: 66.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.339, allocations: 4 kB / 0.86 GB, free: 66.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.341, allocations: 95.84 kB / 0.86 GB, free: 65.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004151/1.341, allocations: 73.19 kB / 0.8601 GB, free: 65.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/1.341, allocations: 43.98 kB / 0.8602 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003555/1.345, allocations: 1.743 MB / 0.8619 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00607/1.351, allocations: 1.003 MB / 0.8628 GB, free: 63.09 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.000734/1.352, allocations: 156 kB / 0.863 GB, free: 62.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.363, allocations: 6.082 MB / 0.8689 GB, free: 56.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.363, allocations: 4 kB / 0.8689 GB, free: 56.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003515/1.366, allocations: 2.195 MB / 0.8711 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/1.368, allocations: 230.6 kB / 0.8713 GB, free: 54.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/1.387, allocations: 8.033 MB / 0.8791 GB, free: 46.28 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005046/1.392, allocations: 3.462 MB / 0.8825 GB, free: 42.8 MB / 0.4948 GB Notification: Performance of SimCode: time 9.12e-07/1.392, allocations: 0 / 0.8825 GB, free: 42.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.236/1.628, allocations: 45.84 MB / 0.9273 GB, free: 168.2 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches