Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.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.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_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_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 3.2.3+maint.om/package.mo): time 0.0008934/0.0008935, allocations: 185.9 kB / 7.802 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.072/1.072, allocations: 205.2 MB / 213.4 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008341/0.0008341, allocations: 93.34 kB / 261.4 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1536/0.1536, allocations: 43.49 MB / 352.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.851e-06/5.891e-06, allocations: 4 kB / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2182, allocations: 58.84 MB / 476.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.3333, allocations: 100.9 MB / 0.5639 GB, free: 14.05 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.3335, allocations: 79.95 kB / 0.564 GB, free: 13.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3357/0.6692, allocations: 81.1 MB / 0.6432 GB, free: 111.9 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.563e-05/0.6693, allocations: 74.31 kB / 0.6432 GB, free: 111.9 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.01104/0.6804, allocations: 3.73 MB / 0.6469 GB, free: 110.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.6804, allocations: 7.719 kB / 0.6469 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01783/0.6983, allocations: 4.427 MB / 0.6512 GB, free: 110.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.7094, allocations: 5.309 MB / 0.6564 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.186e-05/0.7095, allocations: 117.1 kB / 0.6565 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008264/0.7103, allocations: 218 kB / 0.6567 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008337/0.7187, allocations: 7.066 MB / 0.6636 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.7292, allocations: 9.367 MB / 0.6728 GB, free: 108.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.996e-05/0.7293, allocations: 31.5 kB / 0.6728 GB, free: 108.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/0.7298, allocations: 20.58 kB / 0.6728 GB, free: 108.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009945/0.7308, allocations: 1.216 MB / 0.674 GB, free: 108.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03866/0.7694, allocations: 35.49 MB / 0.7087 GB, free: 86.65 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004116/0.7736, allocations: 4.185 MB / 0.7128 GB, free: 84.36 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/0.7762, allocations: 2.423 MB / 0.7151 GB, free: 83.43 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/0.7885, allocations: 10.75 MB / 0.7256 GB, free: 74.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.7885, allocations: 47.78 kB / 0.7257 GB, free: 74.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=181): time 3.737e-06/0.7885, allocations: 0 / 0.7257 GB, free: 74.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.01839/0.8069, allocations: 10.53 MB / 0.7359 GB, free: 65.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.807, allocations: 64.72 kB / 0.736 GB, free: 65.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.81, allocations: 2.643 MB / 0.7386 GB, free: 62.99 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.8102, allocations: 25.7 kB / 0.7386 GB, free: 62.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.8112, allocations: 2.757 MB / 0.7413 GB, free: 60.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004739/0.8117, allocations: 0.7021 MB / 0.742 GB, free: 59.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.8119, allocations: 0 / 0.742 GB, free: 59.84 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.8122, allocations: 0.5538 MB / 0.7425 GB, free: 59.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002636/0.8148, allocations: 2.54 MB / 0.745 GB, free: 57.06 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003539/0.8184, allocations: 5.741 MB / 0.7506 GB, free: 50.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003896/0.8223, allocations: 3.856 MB / 0.7544 GB, free: 46.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.927e-05/0.8223, allocations: 32 kB / 0.7544 GB, free: 46.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.05138/0.8737, allocations: 14.66 MB / 0.7687 GB, free: 32.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.8738, allocations: 4 kB / 0.7687 GB, free: 32.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0361/0.9099, allocations: 8.935 MB / 0.7775 GB, free: 23.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04005/0.9499, allocations: 6.785 MB / 0.7841 GB, free: 16.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003893/0.9538, allocations: 1.263 MB / 0.7853 GB, free: 15.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02046/0.9743, allocations: 14.04 MB / 0.799 GB, free: 1.016 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004421/0.9788, allocations: 255.6 kB / 0.7993 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005821/0.9794, allocations: 340 kB / 0.7996 GB, free: 448 kB / 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.000603/0.98, allocations: 385.3 kB / 0.8 GB, free: 56 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/0.9803, allocations: 268.6 kB / 0.8002 GB, free: 15.78 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007572/0.9811, allocations: 429 kB / 0.8006 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006403/0.9875, allocations: 3.94 MB / 0.8045 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.9876, allocations: 7.906 kB / 0.8045 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.9876, allocations: 15.91 kB / 0.8045 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01659/1.004, allocations: 10.17 MB / 0.8144 GB, free: 1.156 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.004, allocations: 0 / 0.8144 GB, free: 1.156 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.006, allocations: 279.6 kB / 0.8147 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/1.008, allocations: 0.8491 MB / 0.8155 GB, free: 24 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/1.009, allocations: 19.97 kB / 0.8155 GB, free: 4 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/1.014, allocations: 5.177 MB / 0.8206 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008125/1.015, allocations: 1.36 MB / 0.8219 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009516/1.025, allocations: 6.809 MB / 0.8286 GB, free: 2.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007753/1.026, allocations: 333.5 kB / 0.8289 GB, free: 1.902 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004125/1.026, allocations: 8 kB / 0.8289 GB, free: 1.895 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/1.027, allocations: 95.84 kB / 0.829 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/1.027, allocations: 73.19 kB / 0.8291 GB, free: 1.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/1.028, allocations: 43.98 kB / 0.8291 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.1172/1.145, allocations: 1.75 MB / 0.8308 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005059/1.15, allocations: 1.004 MB / 0.8318 GB, free: 182.6 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.0004397/1.15, allocations: 146.9 kB / 0.8319 GB, free: 182.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008103/1.159, allocations: 6.088 MB / 0.8379 GB, free: 182.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/1.159, allocations: 3.438 kB / 0.8379 GB, free: 182.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002443/1.161, allocations: 2.194 MB / 0.84 GB, free: 181.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/1.162, allocations: 232.2 kB / 0.8402 GB, free: 181.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/1.174, allocations: 8.037 MB / 0.8481 GB, free: 180.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003346/1.177, allocations: 3.462 MB / 0.8515 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/1.177, allocations: 0 / 0.8515 GB, free: 179.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.0597/1.237, allocations: 45.81 MB / 0.8962 GB, free: 169.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches