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.0009776/0.0009775, allocations: 95.34 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001055, allocations: 179 kB / 16.57 MB, free: 6.379 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.371/1.371, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3182/0.3182, allocations: 43.55 MB / 314.5 MB, free: 8.766 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.000487/0.000487, allocations: 15.98 kB / 383.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 58.86 MB / 442.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.2023/0.3303, allocations: 21.94 MB / 464.7 MB, free: 35.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3412, allocations: 6.15 MB / 470.8 MB, free: 34.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002932/0.3442, allocations: 101.2 kB / 470.9 MB, free: 34.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.3464, allocations: 1.118 MB / 472.1 MB, free: 34.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007457/0.3539, allocations: 3.468 MB / 475.5 MB, free: 33.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.355, allocations: 450.9 kB / 476 MB, free: 33.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003013/0.3581, allocations: 2.112 MB / 478.1 MB, free: 32.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.3601, allocations: 2.143 MB / 480.2 MB, free: 31.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007974/0.3609, allocations: 0.8525 MB / 481.1 MB, free: 31.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009903/0.3619, allocations: 1.19 MB / 482.3 MB, free: 30.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002303/0.3622, allocations: 125.7 kB / 482.4 MB, free: 30.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.3636, allocations: 1.022 MB / 483.4 MB, free: 30.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008003/0.3645, allocations: 1.379 MB / 484.8 MB, free: 30.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004251/0.3649, allocations: 0.7301 MB / 485.5 MB, free: 29.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004689/0.3696, allocations: 4.72 MB / 490.2 MB, free: 28.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3696, allocations: 0 / 490.2 MB, free: 28.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3696, allocations: 3.938 kB / 490.2 MB, free: 28.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001658/0.3698, allocations: 0 / 490.2 MB, free: 28.63 MB / 382.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.006543/0.3763, allocations: 3.477 MB / 493.7 MB, free: 26.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3764, allocations: 8.688 kB / 493.7 MB, free: 26.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02067/0.3971, allocations: 6.414 MB / 0.4884 GB, free: 24.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007271/0.4044, allocations: 2.516 MB / 0.4909 GB, free: 23.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.4046, allocations: 177.9 kB / 0.491 GB, free: 23.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/0.4063, allocations: 313.5 kB / 0.4913 GB, free: 23.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.4265, allocations: 10.8 MB / 0.5019 GB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.332e-05/0.4267, allocations: 22.84 kB / 0.5019 GB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000504/0.4272, allocations: 116.4 kB / 0.502 GB, free: 17.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003535/0.4307, allocations: 2.455 MB / 0.5044 GB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01821/0.449, allocations: 10.24 MB / 0.5144 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05017/0.4992, allocations: 35.82 MB / 0.5494 GB, free: 1.414 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.51, allocations: 5.596 MB / 0.5549 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0017/0.5117, allocations: 1.876 MB / 0.5567 GB, free: 9.387 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.5118, allocations: 52.56 kB / 0.5568 GB, free: 9.328 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 5.18e-06/0.5118, allocations: 0 / 0.5568 GB, free: 9.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.03418/0.546, allocations: 15.54 MB / 0.5719 GB, free: 9.559 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001398/0.5474, allocations: 1.539 MB / 0.5734 GB, free: 7.863 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005105/0.5525, allocations: 3.03 MB / 0.5764 GB, free: 4.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003354/0.5529, allocations: 49.7 kB / 0.5764 GB, free: 4.766 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002002/0.5549, allocations: 2.689 MB / 0.5791 GB, free: 2.035 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.556, allocations: 0.8518 MB / 0.5799 GB, free: 1.172 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003607/0.5563, allocations: 112 kB / 0.58 GB, free: 1.062 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003936/0.5567, allocations: 0.5414 MB / 0.5805 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003713/0.5605, allocations: 2.611 MB / 0.5831 GB, free: 13.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005866/0.5663, allocations: 5.588 MB / 0.5885 GB, free: 6.832 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005456/0.5718, allocations: 3.802 MB / 0.5923 GB, free: 3.031 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.862e-05/0.5719, allocations: 32 kB / 0.5923 GB, free: 3 MB / 462.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0627/0.6346, allocations: 18.97 MB / 0.6108 GB, free: 15.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.799e-05/0.6347, allocations: 48 kB / 0.6109 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04322/0.678, allocations: 12 MB / 0.6226 GB, free: 3.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2635/0.9415, allocations: 10.3 MB / 0.6326 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004585/0.9461, allocations: 1.3 MB / 0.6339 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02659/0.9727, allocations: 17.27 MB / 0.6508 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/0.977, allocations: 438.3 kB / 0.6512 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005283/0.9776, allocations: 324.7 kB / 0.6515 GB, free: 134.5 MB / 494.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 (653): * Single equations (assignments): 642 * 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.003434/0.981, allocations: 2.022 MB / 0.6535 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004581/0.9815, allocations: 272.1 kB / 0.6537 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007955/0.9894, allocations: 5.108 MB / 0.6587 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00698/0.9965, allocations: 4.392 MB / 0.663 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.9965, allocations: 2 kB / 0.663 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.9965, allocations: 16.47 kB / 0.663 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01967/1.016, allocations: 12.92 MB / 0.6756 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/1.016, allocations: 6.656 kB / 0.6756 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/1.018, allocations: 467.7 kB / 0.6761 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/1.021, allocations: 0.9361 MB / 0.677 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/1.021, allocations: 51.31 kB / 0.6771 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004982/1.026, allocations: 5.578 MB / 0.6825 GB, free: 120.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006858/1.027, allocations: 1.465 MB / 0.6839 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009022/1.036, allocations: 8.36 MB / 0.6921 GB, free: 111.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/1.036, allocations: 344.2 kB / 0.6924 GB, free: 111 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003653/1.037, allocations: 42.56 kB / 0.6925 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/1.038, allocations: 199.7 kB / 0.6927 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/1.039, allocations: 144.7 kB / 0.6928 GB, free: 110.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.039, allocations: 70.91 kB / 0.6929 GB, free: 110.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002473/1.041, allocations: 1.881 MB / 0.6947 GB, free: 108.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.041, allocations: 7.344 kB / 0.6947 GB, free: 108.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004039/1.045, allocations: 1.126 MB / 0.6958 GB, free: 107.5 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 (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.0004455/1.046, allocations: 195.5 kB / 0.696 GB, free: 107.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008085/1.054, allocations: 6.563 MB / 0.7024 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/1.054, allocations: 0 / 0.7024 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002779/1.057, allocations: 2.525 MB / 0.7049 GB, free: 98.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/1.058, allocations: 346.7 kB / 0.7052 GB, free: 97.92 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/1.07, allocations: 11.56 MB / 0.7165 GB, free: 86.25 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/1.073, allocations: 3.247 MB / 0.7197 GB, free: 82.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003799/1.077, allocations: 2.069 MB / 0.7217 GB, free: 80.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006313/1.077, allocations: 211.4 kB / 0.7219 GB, free: 80.7 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/1.077, allocations: 0 / 0.7219 GB, free: 80.7 MB / 494.1 MB Notification: Performance of Templates: time 0.05373/1.131, allocations: 43.92 MB / 0.7648 GB, free: 36.79 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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