Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001441/0.001441, allocations: 107.2 kB / 17.32 MB, free: 5.672 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.001473/0.001473, allocations: 193.3 kB / 18.25 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2121/0.2121, allocations: 44.18 MB / 336.2 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.62 kB / 407.9 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1338, allocations: 60.82 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0264/0.1602, allocations: 25.7 MB / 494.4 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0168/0.1771, allocations: 6.298 MB / 0.489 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005498/0.1826, allocations: 103.8 kB / 0.4891 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003165/0.1858, allocations: 1.106 MB / 0.4902 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00532/0.1912, allocations: 1.651 MB / 0.4918 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.193, allocations: 0.5264 MB / 0.4923 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006242/0.1992, allocations: 3.934 MB / 0.4961 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003107/0.2024, allocations: 1.881 MB / 0.498 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.205, allocations: 1.164 MB / 0.4991 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003657/0.2087, allocations: 1.857 MB / 0.5009 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000944/0.2096, allocations: 216 kB / 0.5011 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003401/0.213, allocations: 1.322 MB / 0.5024 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.216/0.4291, allocations: 1.608 MB / 0.504 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.4316, allocations: 1.869 MB / 0.5058 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007744/0.4394, allocations: 6.019 MB / 0.5117 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4394, allocations: 0 / 0.5117 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4394, allocations: 2 kB / 0.5117 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001656/0.4396, allocations: 0 / 0.5117 GB, free: 13.45 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.009358/0.449, allocations: 4.113 MB / 0.5157 GB, free: 11.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.449, allocations: 11.25 kB / 0.5157 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01852/0.4676, allocations: 5.671 MB / 0.5212 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006063/0.4737, allocations: 2.202 MB / 0.5234 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.4739, allocations: 177.8 kB / 0.5236 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.4749, allocations: 311.4 kB / 0.5239 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.4902, allocations: 10.72 MB / 0.5343 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.278e-05/0.4903, allocations: 31.95 kB / 0.5344 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.4907, allocations: 115.2 kB / 0.5345 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003085/0.4938, allocations: 2.463 MB / 0.5369 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0193/0.5131, allocations: 10.16 MB / 0.5468 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05666/0.5698, allocations: 35.69 MB / 0.5816 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.582, allocations: 5.598 MB / 0.5871 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003978/0.5861, allocations: 2.337 MB / 0.5894 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001852/0.5879, allocations: 1.873 MB / 0.5912 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.588, allocations: 56.55 kB / 0.5913 GB, free: 14.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.939e-06/0.588, allocations: 0 / 0.5913 GB, free: 14.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03542/0.6234, allocations: 14.97 MB / 0.6059 GB, free: 15.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001388/0.6249, allocations: 1.611 MB / 0.6075 GB, free: 13.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/0.6301, allocations: 2.791 MB / 0.6102 GB, free: 10.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000884/0.631, allocations: 61.77 kB / 0.6103 GB, free: 10.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002165/0.6332, allocations: 2.676 MB / 0.6129 GB, free: 8.047 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001566/0.6347, allocations: 0.8547 MB / 0.6137 GB, free: 7.199 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00218/0.6369, allocations: 1.105 MB / 0.6148 GB, free: 6.086 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.366e-05/0.637, allocations: 309.1 kB / 0.6151 GB, free: 5.781 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.6407, allocations: 2.627 MB / 0.6176 GB, free: 3.148 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006027/0.6467, allocations: 5.645 MB / 0.6232 GB, free: 12.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/0.6578, allocations: 8.94 MB / 0.6319 GB, free: 2.109 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-05/0.6579, allocations: 32 kB / 0.6319 GB, free: 2.078 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06416/0.7221, allocations: 19.04 MB / 0.6505 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.7223, allocations: 48 kB / 0.6505 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04432/0.7666, allocations: 12.02 MB / 0.6623 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04601/0.8127, allocations: 10.28 MB / 0.6723 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005305/0.818, allocations: 1.317 MB / 0.6736 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03076/0.8488, allocations: 18.22 MB / 0.6914 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004988/0.8538, allocations: 445.8 kB / 0.6918 GB, free: 5.172 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001607/0.8554, allocations: 320 kB / 0.6921 GB, free: 4.859 MB / 0.5294 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.005938/0.8614, allocations: 2.02 MB / 0.6941 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/0.8625, allocations: 272.4 kB / 0.6944 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2628/1.125, allocations: 5.108 MB / 0.6994 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007602/1.133, allocations: 4.413 MB / 0.7037 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.133, allocations: 3.375 kB / 0.7037 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.951e-05/1.133, allocations: 11.16 kB / 0.7037 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.152, allocations: 12.92 MB / 0.7163 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/1.152, allocations: 7.719 kB / 0.7163 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/1.153, allocations: 459.4 kB / 0.7167 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002575/1.156, allocations: 0.9457 MB / 0.7177 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/1.156, allocations: 52.94 kB / 0.7177 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005172/1.161, allocations: 5.831 MB / 0.7234 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007052/1.162, allocations: 1.55 MB / 0.7249 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009257/1.171, allocations: 7.727 MB / 0.7325 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009876/1.172, allocations: 332.2 kB / 0.7328 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005408/1.173, allocations: 55.56 kB / 0.7328 GB, free: 176 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.174, allocations: 192.5 kB / 0.733 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/1.175, allocations: 142.4 kB / 0.7332 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/1.175, allocations: 67.97 kB / 0.7332 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002143/1.177, allocations: 1.725 MB / 0.7349 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.31e-07/1.177, allocations: 3.188 kB / 0.7349 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004636/1.182, allocations: 1.109 MB / 0.736 GB, free: 172.8 MB / 0.5294 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.0005495/1.182, allocations: 179.7 kB / 0.7362 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01362/1.196, allocations: 9.682 MB / 0.7456 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/1.196, allocations: 2.812 kB / 0.7456 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003096/1.199, allocations: 2.529 MB / 0.7481 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/1.202, allocations: 374.5 kB / 0.7485 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/1.218, allocations: 11.9 MB / 0.7601 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003472/1.221, allocations: 3.166 MB / 0.7632 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004003/1.225, allocations: 2.064 MB / 0.7652 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006947/1.226, allocations: 213.2 kB / 0.7654 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/1.226, allocations: 0 / 0.7654 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.06859/1.294, allocations: 46.38 MB / 0.8107 GB, free: 96.39 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches