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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 97.91 kB / 16.93 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 187.3 kB / 17.86 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2269/0.2269, allocations: 43.52 MB / 314.6 MB, free: 0.5508 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 72.53 kB / 383.4 MB, free: 56.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1164, allocations: 57.79 MB / 441.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01122/0.1277, allocations: 11.81 MB / 453 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008711/0.1365, allocations: 4.051 MB / 457.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.1383, allocations: 63.88 kB / 457.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.1407, allocations: 1.171 MB / 458.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004188/0.1449, allocations: 1.759 MB / 460 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.1463, allocations: 0.5535 MB / 460.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005075/0.1514, allocations: 3.957 MB / 464.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002076/0.1535, allocations: 1.791 MB / 466.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.1552, allocations: 1.16 MB / 467.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.1573, allocations: 1.682 MB / 469.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005053/0.1579, allocations: 220 kB / 469.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.1601, allocations: 1.291 MB / 470.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/0.1615, allocations: 1.593 MB / 472.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001675/0.1632, allocations: 1.851 MB / 474.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006619/0.1698, allocations: 5.965 MB / 480.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.1698, allocations: 4 kB / 480.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1699, allocations: 0 / 480.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001697/0.17, allocations: 4 kB / 480.1 MB, free: 15.84 MB / 366.1 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.008003/0.178, allocations: 4.096 MB / 484.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.1781, allocations: 8.031 kB / 484.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01905/0.1972, allocations: 5.677 MB / 489.9 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005507/0.2027, allocations: 2.256 MB / 492.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.2029, allocations: 176.8 kB / 492.3 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009451/0.2039, allocations: 311.6 kB / 492.6 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01738/0.2212, allocations: 10.73 MB / 0.4916 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.252e-05/0.2214, allocations: 19.81 kB / 0.4916 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003573/0.2217, allocations: 115.8 kB / 0.4917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003815/0.2256, allocations: 2.463 MB / 0.4941 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.244, allocations: 10.16 MB / 0.504 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3142/0.5582, allocations: 35.69 MB / 0.5389 GB, free: 66.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01326/0.5715, allocations: 5.601 MB / 0.5443 GB, free: 65.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003736/0.5752, allocations: 2.334 MB / 0.5466 GB, free: 65.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001788/0.5771, allocations: 1.878 MB / 0.5484 GB, free: 63.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.5771, allocations: 50.56 kB / 0.5485 GB, free: 63.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 7.454e-06/0.5771, allocations: 2.938 kB / 0.5485 GB, free: 63.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=231): time 0.03399/0.6111, allocations: 14.98 MB / 0.5631 GB, free: 59.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001062/0.6122, allocations: 1.61 MB / 0.5647 GB, free: 58.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003552/0.6158, allocations: 2.801 MB / 0.5674 GB, free: 57.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004284/0.6162, allocations: 53.03 kB / 0.5675 GB, free: 57.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.6176, allocations: 2.686 MB / 0.5701 GB, free: 54.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008417/0.6184, allocations: 0.8499 MB / 0.5709 GB, free: 54.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00133/0.6197, allocations: 1.115 MB / 0.572 GB, free: 53.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.6198, allocations: 305.1 kB / 0.5723 GB, free: 52.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003001/0.6228, allocations: 2.63 MB / 0.5749 GB, free: 50.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004095/0.6269, allocations: 5.641 MB / 0.5804 GB, free: 43.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008853/0.6358, allocations: 8.941 MB / 0.5891 GB, free: 32.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.373e-05/0.6359, allocations: 28 kB / 0.5891 GB, free: 32.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06308/0.699, allocations: 19.03 MB / 0.6077 GB, free: 13.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.6992, allocations: 48.94 kB / 0.6078 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04404/0.7432, allocations: 12.03 MB / 0.6195 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05111/0.7944, allocations: 10.29 MB / 0.6296 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005031/0.7994, allocations: 1.316 MB / 0.6309 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03316/0.8327, allocations: 18.22 MB / 0.6487 GB, free: 3.633 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004855/0.8376, allocations: 431.5 kB / 0.6491 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009203/0.8385, allocations: 326.9 kB / 0.6494 GB, free: 2.895 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 650 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003842/0.8424, allocations: 2.021 MB / 0.6514 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.843, allocations: 276.4 kB / 0.6516 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008893/0.8519, allocations: 5.109 MB / 0.6566 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007679/0.8596, allocations: 4.414 MB / 0.6609 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.8596, allocations: 0 / 0.6609 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.8597, allocations: 13.34 kB / 0.6609 GB, free: 7.016 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02613/0.8858, allocations: 12.93 MB / 0.6736 GB, free: 9.953 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-05/0.8859, allocations: 9 kB / 0.6736 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/0.8882, allocations: 464.9 kB / 0.674 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003081/0.8913, allocations: 0.9459 MB / 0.6749 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004154/0.8917, allocations: 55.81 kB / 0.675 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007472/0.8992, allocations: 5.825 MB / 0.6807 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001329/0.9006, allocations: 1.549 MB / 0.6822 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/0.9149, allocations: 7.735 MB / 0.6897 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.916, allocations: 329.7 kB / 0.6901 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009487/0.917, allocations: 44 kB / 0.6901 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/0.9192, allocations: 195.5 kB / 0.6903 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005858/0.9198, allocations: 144.9 kB / 0.6904 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003085/0.9201, allocations: 68.47 kB / 0.6905 GB, free: 8.047 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003473/0.9236, allocations: 1.733 MB / 0.6922 GB, free: 6.309 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9236, allocations: 0 / 0.6922 GB, free: 6.309 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005709/0.9294, allocations: 1.104 MB / 0.6933 GB, free: 5.207 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008116/0.9302, allocations: 178.2 kB / 0.6934 GB, free: 5.031 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01815/0.9484, allocations: 9.688 MB / 0.7029 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/0.9484, allocations: 0 / 0.7029 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004675/0.9531, allocations: 2.536 MB / 0.7054 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/0.9564, allocations: 382.1 kB / 0.7057 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02141/0.9779, allocations: 10.36 MB / 0.7158 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005457/0.9834, allocations: 3.162 MB / 0.7189 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/0.9848, allocations: 263.4 kB / 0.7192 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of SimCode: time 1.433e-06/0.9848, allocations: 3.938 kB / 0.7192 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.3405/1.325, allocations: 112.2 MB / 0.8288 GB, free: 99.99 MB / 0.5137 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches