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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001484/0.001485, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.00169, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 75.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.4332, allocations: 62.44 MB / 0.531 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01453/0.4477, allocations: 11.76 MB / 0.5425 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.4587, allocations: 4.059 MB / 0.5465 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.4613, allocations: 60.5 kB / 0.5465 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003016/0.4644, allocations: 1.174 MB / 0.5477 GB, free: 484 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005938/0.4704, allocations: 1.719 MB / 0.5493 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.4723, allocations: 0.5574 MB / 0.5499 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006647/0.4789, allocations: 4.041 MB / 0.5538 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003208/0.4822, allocations: 1.779 MB / 0.5556 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002549/0.4847, allocations: 1.152 MB / 0.5567 GB, free: 7.363 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003111/0.4879, allocations: 1.67 MB / 0.5583 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001095/0.489, allocations: 216 kB / 0.5585 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.4923, allocations: 1.283 MB / 0.5598 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002111/0.4945, allocations: 1.57 MB / 0.5613 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004838/0.4993, allocations: 1.828 MB / 0.5631 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009397/0.5088, allocations: 6.205 MB / 0.5692 GB, free: 10.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.5089, allocations: 4 kB / 0.5692 GB, free: 10.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5089, allocations: 0 / 0.5692 GB, free: 10.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00019/0.5091, allocations: 0 / 0.5692 GB, free: 10.55 MB / 430.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.009846/0.5189, allocations: 4.182 MB / 0.5732 GB, free: 6.289 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.519, allocations: 8.922 kB / 0.5733 GB, free: 6.281 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01988/0.5389, allocations: 6.159 MB / 0.5793 GB, free: 112 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005313/0.5442, allocations: 2.186 MB / 0.5814 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.5444, allocations: 180.8 kB / 0.5816 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009378/0.5454, allocations: 311.6 kB / 0.5819 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02297/0.5683, allocations: 10.71 MB / 0.5923 GB, free: 2.223 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001578/0.5686, allocations: 31.7 kB / 0.5924 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000718/0.5693, allocations: 111.8 kB / 0.5925 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005695/0.575, allocations: 2.467 MB / 0.5949 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02685/0.6019, allocations: 10.15 MB / 0.6048 GB, free: 5.445 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0575/0.6594, allocations: 35.57 MB / 0.6395 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.6707, allocations: 5.602 MB / 0.645 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003028/0.6738, allocations: 2.334 MB / 0.6473 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001586/0.6754, allocations: 1.876 MB / 0.6491 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/0.6754, allocations: 61.14 kB / 0.6492 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=224): time 6.432e-06/0.6754, allocations: 0 / 0.6492 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=231): time 0.03769/0.7131, allocations: 15.02 MB / 0.6638 GB, free: 7.438 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002239/0.7155, allocations: 1.615 MB / 0.6654 GB, free: 5.66 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006975/0.7225, allocations: 2.787 MB / 0.6681 GB, free: 2.859 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009965/0.7235, allocations: 57.7 kB / 0.6682 GB, free: 2.797 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003684/0.7272, allocations: 2.791 MB / 0.6709 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002146/0.7294, allocations: 0.8875 MB / 0.6718 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003192/0.7326, allocations: 1.116 MB / 0.6729 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001834/0.7328, allocations: 305.2 kB / 0.6732 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008008/0.7408, allocations: 2.634 MB / 0.6757 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01321/0.7541, allocations: 5.64 MB / 0.6812 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02127/0.7754, allocations: 8.949 MB / 0.69 GB, free: 9.477 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/0.7756, allocations: 28 kB / 0.69 GB, free: 9.449 MB / 0.545 GB Notification: Performance of matching and sorting (n=733) (initialization): time 0.1146/0.8903, allocations: 17.16 MB / 0.7068 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.8905, allocations: 48 kB / 0.7068 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4479/1.338, allocations: 10.63 MB / 0.7172 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04704/1.385, allocations: 8.644 MB / 0.7256 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006308/1.392, allocations: 1.312 MB / 0.7269 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02649/1.418, allocations: 17.82 MB / 0.7443 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00492/1.423, allocations: 423.2 kB / 0.7447 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/1.425, allocations: 320 kB / 0.745 GB, free: 148.5 MB / 0.5606 GB 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.004502/1.429, allocations: 2.02 MB / 0.747 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006621/1.43, allocations: 284.3 kB / 0.7473 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007565/1.438, allocations: 5.112 MB / 0.7523 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006275/1.444, allocations: 4.408 MB / 0.7566 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/1.444, allocations: 6.844 kB / 0.7566 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/1.444, allocations: 15.86 kB / 0.7566 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01816/1.462, allocations: 12.91 MB / 0.7692 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.462, allocations: 15.91 kB / 0.7692 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/1.464, allocations: 461.2 kB / 0.7696 GB, free: 123.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002537/1.467, allocations: 0.9341 MB / 0.7706 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/1.467, allocations: 52.11 kB / 0.7706 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005171/1.472, allocations: 5.838 MB / 0.7763 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007007/1.473, allocations: 1.553 MB / 0.7778 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009663/1.482, allocations: 7.743 MB / 0.7854 GB, free: 107 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/1.484, allocations: 344.4 kB / 0.7857 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003633/1.484, allocations: 47.94 kB / 0.7858 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/1.485, allocations: 195.5 kB / 0.7859 GB, free: 106.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/1.486, allocations: 144.9 kB / 0.7861 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.486, allocations: 66.88 kB / 0.7861 GB, free: 106.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002129/1.488, allocations: 1.722 MB / 0.7878 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/1.488, allocations: 0 / 0.7878 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004758/1.493, allocations: 1.086 MB / 0.7889 GB, free: 103.5 MB / 0.5606 GB 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.0005075/1.493, allocations: 185 kB / 0.7891 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009611/1.503, allocations: 6.611 MB / 0.7955 GB, free: 96.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.503, allocations: 0 / 0.7955 GB, free: 96.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003218/1.506, allocations: 2.533 MB / 0.798 GB, free: 94.12 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/1.509, allocations: 384.8 kB / 0.7984 GB, free: 93.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0152/1.525, allocations: 9.941 MB / 0.8081 GB, free: 83.69 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/1.527, allocations: 3.159 MB / 0.8112 GB, free: 80.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003791/1.531, allocations: 2.06 MB / 0.8132 GB, free: 78.44 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006966/1.532, allocations: 219.3 kB / 0.8134 GB, free: 78.22 MB / 0.5606 GB Notification: Performance of SimCode: time 1.182e-06/1.532, allocations: 0 / 0.8134 GB, free: 78.22 MB / 0.5606 GB Notification: Performance of Templates: time 0.06559/1.597, allocations: 43.77 MB / 0.8561 GB, free: 34.54 MB / 0.5606 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches