Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009736/0.0009737, allocations: 169.8 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007272/0.0007271, allocations: 82.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.297/0.297, allocations: 43.58 MB / 363.1 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003572, allocations: 12 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1096, allocations: 58.84 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.1945/0.3041, allocations: 23.16 MB / 0.5019 GB, free: 34.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.3149, allocations: 5.96 MB / 0.5078 GB, free: 30.13 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003496/0.3185, allocations: 102.6 kB / 0.5079 GB, free: 30.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.3206, allocations: 1.09 MB / 0.5089 GB, free: 29.74 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007573/0.3282, allocations: 3.535 MB / 0.5124 GB, free: 28.32 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.3297, allocations: 0.4968 MB / 0.5129 GB, free: 28.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003886/0.3336, allocations: 4.249 MB / 0.517 GB, free: 26.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002281/0.3359, allocations: 2.202 MB / 0.5192 GB, free: 25.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.3371, allocations: 1.009 MB / 0.5201 GB, free: 25.52 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.3386, allocations: 1.665 MB / 0.5218 GB, free: 25.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.3389, allocations: 126.1 kB / 0.5219 GB, free: 25.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.3407, allocations: 1.283 MB / 0.5231 GB, free: 24.72 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009375/0.3416, allocations: 1.486 MB / 0.5246 GB, free: 24.28 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.3426, allocations: 1.666 MB / 0.5262 GB, free: 23.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004318/0.3469, allocations: 4.712 MB / 0.5308 GB, free: 22.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.347, allocations: 0 / 0.5308 GB, free: 22.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.347, allocations: 0 / 0.5308 GB, free: 22.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001335/0.3471, allocations: 3.188 kB / 0.5308 GB, free: 22.15 MB / 378.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.005562/0.3527, allocations: 3.388 MB / 0.5341 GB, free: 20.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.3527, allocations: 9.594 kB / 0.5341 GB, free: 20.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01569/0.3684, allocations: 5.782 MB / 0.5398 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00462/0.3731, allocations: 2.243 MB / 0.542 GB, free: 16.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.3733, allocations: 184 kB / 0.5422 GB, free: 16.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008383/0.3741, allocations: 308.5 kB / 0.5424 GB, free: 16.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01601/0.3901, allocations: 10.71 MB / 0.5529 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.892e-05/0.3902, allocations: 29.52 kB / 0.5529 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003851/0.3906, allocations: 119 kB / 0.5531 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003051/0.3937, allocations: 2.462 MB / 0.5555 GB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.4102, allocations: 10.14 MB / 0.5654 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04721/0.4574, allocations: 35.69 MB / 0.6002 GB, free: 9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/0.4681, allocations: 5.58 MB / 0.6057 GB, free: 3.195 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003169/0.4713, allocations: 2.326 MB / 0.6079 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001809/0.4731, allocations: 1.884 MB / 0.6098 GB, free: 14.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.4732, allocations: 56.5 kB / 0.6098 GB, free: 14.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=224): time 5.22e-06/0.4732, allocations: 0 / 0.6098 GB, free: 14.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.0342/0.5074, allocations: 14.95 MB / 0.6244 GB, free: 15.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001189/0.5086, allocations: 1.535 MB / 0.6259 GB, free: 13.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004184/0.5128, allocations: 2.783 MB / 0.6286 GB, free: 11.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004597/0.5133, allocations: 53.7 kB / 0.6287 GB, free: 10.97 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/0.5153, allocations: 2.685 MB / 0.6313 GB, free: 8.242 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/0.5166, allocations: 0.8518 MB / 0.6321 GB, free: 7.379 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005321/0.5171, allocations: 108 kB / 0.6322 GB, free: 7.273 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004522/0.5176, allocations: 0.5456 MB / 0.6328 GB, free: 6.719 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00426/0.5219, allocations: 2.611 MB / 0.6353 GB, free: 4.102 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006234/0.5281, allocations: 5.62 MB / 0.6408 GB, free: 13.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01177/0.5399, allocations: 8.913 MB / 0.6495 GB, free: 2.625 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001134/0.5401, allocations: 36 kB / 0.6496 GB, free: 2.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.05973/0.5998, allocations: 18.99 MB / 0.6681 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001292/0.6, allocations: 48 kB / 0.6681 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0401/0.6401, allocations: 12 MB / 0.6799 GB, free: 3.492 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2671/0.9073, allocations: 10.28 MB / 0.6899 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004351/0.9117, allocations: 1.312 MB / 0.6912 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02358/0.9353, allocations: 16.02 MB / 0.7068 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00443/0.9398, allocations: 435.4 kB / 0.7072 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005877/0.9404, allocations: 320.5 kB / 0.7076 GB, free: 146.6 MB / 0.4948 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 (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.003403/0.9438, allocations: 2.024 MB / 0.7095 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004519/0.9443, allocations: 273 kB / 0.7098 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007904/0.9522, allocations: 5.104 MB / 0.7148 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006963/0.9592, allocations: 4.393 MB / 0.7191 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.9592, allocations: 2.438 kB / 0.7191 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.9592, allocations: 11.16 kB / 0.7191 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/0.9782, allocations: 12.91 MB / 0.7317 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.9783, allocations: 11.62 kB / 0.7317 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.9801, allocations: 456.1 kB / 0.7321 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002522/0.9826, allocations: 0.9392 MB / 0.733 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002231/0.9828, allocations: 52.59 kB / 0.7331 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/0.9879, allocations: 5.455 MB / 0.7384 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006981/0.9886, allocations: 1.464 MB / 0.7399 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009486/0.9981, allocations: 7.718 MB / 0.7474 GB, free: 126.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006928/0.9988, allocations: 331.5 kB / 0.7477 GB, free: 126 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003212/0.9992, allocations: 44.61 kB / 0.7477 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/1, allocations: 193.1 kB / 0.7479 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/1.001, allocations: 141.2 kB / 0.7481 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/1.001, allocations: 73.25 kB / 0.7481 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002163/1.003, allocations: 1.701 MB / 0.7498 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.81e-07/1.003, allocations: 3.969 kB / 0.7498 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004157/1.007, allocations: 1.114 MB / 0.7509 GB, free: 122.7 MB / 0.4948 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 (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.000477/1.008, allocations: 176.7 kB / 0.7511 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009539/1.017, allocations: 6.598 MB / 0.7575 GB, free: 116 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.017, allocations: 0 / 0.7575 GB, free: 116 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002946/1.02, allocations: 2.527 MB / 0.76 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004262/1.025, allocations: 373.1 kB / 0.7603 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/1.041, allocations: 12.03 MB / 0.7721 GB, free: 101 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002676/1.044, allocations: 3.167 MB / 0.7752 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/1.045, allocations: 259.4 kB / 0.7754 GB, free: 97.51 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-06/1.045, allocations: 0 / 0.7754 GB, free: 97.51 MB / 0.4948 GB Notification: Performance of Templates: time 0.2971/1.342, allocations: 111.5 MB / 0.8843 GB, free: 146.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches