Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sphericalSpherical.frame_b.r_0.1.|sphericalSpherical.frame_b.r_0.2.|sphericalSpherical.frame_b.r_0.3.|sphericalSpherical.frame_b.f.1.|sphericalSpherical.frame_b.f.2.|sphericalSpherical.frame_b.f.3.|sphericalSpherical.frame_b.t.1.|sphericalSpherical.frame_b.t.2.|sphericalSpherical.frame_b.t.3.|Prismatic1.frame_b.r_0.1.|Prismatic1.frame_b.r_0.2.|Prismatic1.frame_b.r_0.3.|Prismatic1.frame_b.f.1.|Prismatic1.frame_b.f.2.|Prismatic1.frame_b.f.3.|Prismatic1.frame_b.t.1.|Prismatic1.frame_b.t.2.|Prismatic1.frame_b.t.3.|Fixed1.frame_b.r_0.1.|Fixed1.frame_b.r_0.2.|Fixed1.frame_b.r_0.3.|Fixed1.frame_b.f.1.|Fixed1.frame_b.f.2.|Fixed1.frame_b.f.3.|Fixed1.frame_b.t.1.|Fixed1.frame_b.t.2.|Fixed1.frame_b.t.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical") translateModel(ModelicaTest.MultiBody.Joints.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sphericalSpherical.frame_b.r_0.1.|sphericalSpherical.frame_b.r_0.2.|sphericalSpherical.frame_b.r_0.3.|sphericalSpherical.frame_b.f.1.|sphericalSpherical.frame_b.f.2.|sphericalSpherical.frame_b.f.3.|sphericalSpherical.frame_b.t.1.|sphericalSpherical.frame_b.t.2.|sphericalSpherical.frame_b.t.3.|Prismatic1.frame_b.r_0.1.|Prismatic1.frame_b.r_0.2.|Prismatic1.frame_b.r_0.3.|Prismatic1.frame_b.f.1.|Prismatic1.frame_b.f.2.|Prismatic1.frame_b.f.3.|Prismatic1.frame_b.t.1.|Prismatic1.frame_b.t.2.|Prismatic1.frame_b.t.3.|Fixed1.frame_b.r_0.1.|Fixed1.frame_b.r_0.2.|Fixed1.frame_b.r_0.3.|Fixed1.frame_b.f.1.|Fixed1.frame_b.f.2.|Fixed1.frame_b.f.3.|Fixed1.frame_b.t.1.|Fixed1.frame_b.t.2.|Fixed1.frame_b.t.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009695/0.0009696, allocations: 195.2 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 226.5 MB / 244.1 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000849/0.0008491, allocations: 91.73 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2943/0.2943, allocations: 44.84 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002944, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2831, allocations: 62.96 MB / 0.5165 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3975, allocations: 100.9 MB / 0.615 GB, free: 4.496 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.3978, allocations: 71.97 kB / 0.6151 GB, free: 4.426 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05358/0.4515, allocations: 20.79 MB / 0.6354 GB, free: 15.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4515, allocations: 0 / 0.6354 GB, free: 15.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.58e-05/0.4516, allocations: 24 kB / 0.6354 GB, free: 15.5 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.003433/0.455, allocations: 1.462 MB / 0.6368 GB, free: 13.98 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4551, allocations: 19.95 kB / 0.6368 GB, free: 13.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.4562, allocations: 199.2 kB / 0.637 GB, free: 13.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.4579, allocations: 0.7331 MB / 0.6377 GB, free: 12.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.458, allocations: 78.41 kB / 0.6378 GB, free: 12.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003257/0.4583, allocations: 100.4 kB / 0.6379 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005648/0.464, allocations: 2.65 MB / 0.6405 GB, free: 9.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.557e-05/0.464, allocations: 8.125 kB / 0.6405 GB, free: 9.973 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001815/0.4642, allocations: 51.86 kB / 0.6405 GB, free: 9.926 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000298/0.4646, allocations: 209.8 kB / 0.6407 GB, free: 9.719 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005179/0.4698, allocations: 2.377 MB / 0.6431 GB, free: 7.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009276/0.4791, allocations: 8.602 MB / 0.6515 GB, free: 14.47 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003661/0.4828, allocations: 1.005 MB / 0.6524 GB, free: 13.45 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.4832, allocations: 257.5 kB / 0.6527 GB, free: 13.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001389/0.4846, allocations: 1.73 MB / 0.6544 GB, free: 11.19 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.4846, allocations: 30.56 kB / 0.6544 GB, free: 11.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=44): time 2.986e-06/0.4846, allocations: 0 / 0.6544 GB, free: 11.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.01091/0.4956, allocations: 3.051 MB / 0.6574 GB, free: 8.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.4956, allocations: 55.97 kB / 0.6574 GB, free: 8.02 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.4969, allocations: 0.8951 MB / 0.6583 GB, free: 7.117 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.518e-05/0.497, allocations: 37.7 kB / 0.6584 GB, free: 7.074 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.4974, allocations: 0.6603 MB / 0.659 GB, free: 6.402 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.4975, allocations: 205.2 kB / 0.6592 GB, free: 6.199 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.4976, allocations: 24 kB / 0.6592 GB, free: 6.176 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4978, allocations: 406.7 kB / 0.6596 GB, free: 5.77 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005318/0.4983, allocations: 366.4 kB / 0.66 GB, free: 5.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008575/0.4992, allocations: 0.9874 MB / 0.6609 GB, free: 4.117 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.5008, allocations: 1.487 MB / 0.6624 GB, free: 2.324 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.5008, allocations: 4 kB / 0.6624 GB, free: 2.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002128/0.5029, allocations: 1.388 MB / 0.6637 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.503, allocations: 23.92 kB / 0.6638 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.503, allocations: 23.94 kB / 0.6638 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-05/0.5031, allocations: 32.75 kB / 0.6638 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.5042, allocations: 319.5 kB / 0.6641 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009581/0.5052, allocations: 1.362 MB / 0.6654 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007196/0.5059, allocations: 55.89 kB / 0.6655 GB, free: 14.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.687e-05/0.5061, allocations: 68 kB / 0.6656 GB, free: 14.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000709/0.5068, allocations: 0.4932 MB / 0.666 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.5069, allocations: 78.97 kB / 0.6661 GB, free: 14.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.5072, allocations: 120.7 kB / 0.6662 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.5072, allocations: 12 kB / 0.6662 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5072, allocations: 3.938 kB / 0.6663 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.5072, allocations: 0 / 0.6663 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003827/0.511, allocations: 2.156 MB / 0.6684 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/0.5111, allocations: 11.98 kB / 0.6684 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.5116, allocations: 128.6 kB / 0.6685 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.5116, allocations: 12 kB / 0.6685 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.5117, allocations: 16 kB / 0.6685 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008699/0.5126, allocations: 1.337 MB / 0.6698 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.5126, allocations: 8 kB / 0.6698 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009295/0.5135, allocations: 0.8181 MB / 0.6706 GB, free: 9.344 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002637/0.5138, allocations: 164 kB / 0.6708 GB, free: 9.164 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.5139, allocations: 23.98 kB / 0.6708 GB, free: 9.141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.5143, allocations: 16 kB / 0.6708 GB, free: 9.125 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-05/0.5144, allocations: 51.83 kB / 0.6709 GB, free: 9.074 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.5144, allocations: 24 kB / 0.6709 GB, free: 9.051 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008581/0.5153, allocations: 0.5888 MB / 0.6715 GB, free: 8.465 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5153, allocations: 0 / 0.6715 GB, free: 8.465 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001021/0.5163, allocations: 220 kB / 0.6717 GB, free: 8.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001957/0.5165, allocations: 123.1 kB / 0.6718 GB, free: 8.121 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.518, allocations: 0.8668 MB / 0.6726 GB, free: 7.258 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.518, allocations: 0 / 0.6726 GB, free: 7.258 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000462/0.5185, allocations: 281.2 kB / 0.6729 GB, free: 6.984 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5199, allocations: 135.2 kB / 0.673 GB, free: 6.859 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/0.5239, allocations: 2.615 MB / 0.6756 GB, free: 4.129 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009372/0.5249, allocations: 1.224 MB / 0.6768 GB, free: 2.879 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.5251, allocations: 71.44 kB / 0.6769 GB, free: 2.809 MB / 490.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5251, allocations: 0 / 0.6769 GB, free: 2.809 MB / 490.7 MB Notification: Performance of Templates: time 0.2107/0.7359, allocations: 16.42 MB / 0.6929 GB, free: 119.4 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches