Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001063/0.001063, allocations: 196.5 kB / 8.534 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008449/0.0008449, allocations: 99.48 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 45.14 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.912e-06/5.941e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 63.25 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.5063, allocations: 103.4 MB / 0.6047 GB, free: 15.92 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.5066, allocations: 77.58 kB / 0.6048 GB, free: 15.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.227/0.7337, allocations: 84.5 MB / 0.6873 GB, free: 3.477 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002957/0.734, allocations: 68 kB / 0.6874 GB, free: 3.41 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.02494/0.759, allocations: 3.825 MB / 0.6911 GB, free: 15.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.7591, allocations: 11.97 kB / 0.6911 GB, free: 15.51 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03617/0.7953, allocations: 4.85 MB / 0.6959 GB, free: 10.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.8084, allocations: 4.51 MB / 0.7003 GB, free: 6.086 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.8086, allocations: 120 kB / 0.7004 GB, free: 5.969 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002166/0.8108, allocations: 215.9 kB / 0.7006 GB, free: 5.758 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01263/0.8234, allocations: 7.063 MB / 0.7075 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02115/0.8446, allocations: 9.367 MB / 0.7166 GB, free: 4.812 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.8448, allocations: 27.75 kB / 0.7167 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007078/0.8455, allocations: 12 kB / 0.7167 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001567/0.8471, allocations: 1.234 MB / 0.7179 GB, free: 3.535 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2473/1.094, allocations: 35.48 MB / 0.7525 GB, free: 204 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004437/1.099, allocations: 4.182 MB / 0.7566 GB, free: 202.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002597/1.102, allocations: 2.413 MB / 0.759 GB, free: 202.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/1.115, allocations: 10.73 MB / 0.7694 GB, free: 199 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/1.115, allocations: 43.03 kB / 0.7695 GB, free: 198.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=181): time 4.919e-06/1.115, allocations: 0 / 0.7695 GB, free: 198.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=188): time 0.01976/1.135, allocations: 10.48 MB / 0.7797 GB, free: 198.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/1.135, allocations: 64.5 kB / 0.7798 GB, free: 198 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003365/1.139, allocations: 2.64 MB / 0.7824 GB, free: 197.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001835/1.139, allocations: 25.7 kB / 0.7824 GB, free: 197.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/1.14, allocations: 2.749 MB / 0.7851 GB, free: 196.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005626/1.141, allocations: 0.7017 MB / 0.7858 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/1.141, allocations: 0 / 0.7858 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002404/1.141, allocations: 0.5486 MB / 0.7863 GB, free: 195.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002759/1.144, allocations: 2.541 MB / 0.7888 GB, free: 195.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003883/1.148, allocations: 5.747 MB / 0.7944 GB, free: 190.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004091/1.152, allocations: 3.851 MB / 0.7981 GB, free: 189.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.565e-05/1.152, allocations: 30.72 kB / 0.7982 GB, free: 189.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.05449/1.206, allocations: 13.56 MB / 0.8114 GB, free: 186.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/1.206, allocations: 5.594 kB / 0.8114 GB, free: 186.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04044/1.247, allocations: 8.116 MB / 0.8194 GB, free: 183.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04272/1.29, allocations: 5.834 MB / 0.825 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004551/1.294, allocations: 1.258 MB / 0.8263 GB, free: 178.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0213/1.316, allocations: 13.8 MB / 0.8398 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005061/1.321, allocations: 240.9 kB / 0.84 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009738/1.322, allocations: 342.4 kB / 0.8403 GB, free: 166.1 MB / 0.5261 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.0008407/1.323, allocations: 385.2 kB / 0.8407 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004492/1.323, allocations: 268.4 kB / 0.8409 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007925/1.324, allocations: 426.3 kB / 0.8413 GB, free: 165.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0059/1.33, allocations: 3.949 MB / 0.8452 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/1.33, allocations: 4 kB / 0.8452 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.33, allocations: 7.781 kB / 0.8452 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/1.346, allocations: 10.17 MB / 0.8551 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/1.346, allocations: 4 kB / 0.8551 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/1.347, allocations: 271.6 kB / 0.8554 GB, free: 152.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/1.35, allocations: 0.8669 MB / 0.8562 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000183/1.35, allocations: 15.89 kB / 0.8563 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005001/1.355, allocations: 5.17 MB / 0.8613 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006961/1.356, allocations: 1.366 MB / 0.8626 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008643/1.365, allocations: 6.815 MB / 0.8693 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008358/1.366, allocations: 329.5 kB / 0.8696 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000424/1.366, allocations: 7.984 kB / 0.8696 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/1.367, allocations: 95.84 kB / 0.8697 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/1.368, allocations: 75.97 kB / 0.8698 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.368, allocations: 43.98 kB / 0.8698 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002243/1.37, allocations: 1.743 MB / 0.8715 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004502/1.375, allocations: 0.9935 MB / 0.8725 GB, free: 134.6 MB / 0.5261 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.0004884/1.375, allocations: 155 kB / 0.8727 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009455/1.385, allocations: 6.051 MB / 0.8786 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.385, allocations: 0 / 0.8786 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003044/1.388, allocations: 2.201 MB / 0.8807 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/1.389, allocations: 242.8 kB / 0.8809 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/1.404, allocations: 8.015 MB / 0.8888 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00382/1.408, allocations: 3.455 MB / 0.8921 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of SimCode: time 5.51e-07/1.408, allocations: 0 / 0.8921 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.06729/1.475, allocations: 45.85 MB / 0.9369 GB, free: 69.47 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches