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.001215/0.001215, allocations: 115.7 kB / 17.08 MB, free: 6.008 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.001259/0.001259, allocations: 195 kB / 18.01 MB, free: 5.094 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.421/1.421, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.207/0.207, allocations: 43.52 MB / 314.8 MB, free: 464 kB / 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.001639/0.001639, allocations: 67.89 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1076, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01287/0.1205, allocations: 11.81 MB / 0.5001 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008162/0.1287, allocations: 4.058 MB / 0.504 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001778/0.1305, allocations: 59.88 kB / 0.5041 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002787/0.1333, allocations: 1.175 MB / 0.5052 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00456/0.138, allocations: 1.759 MB / 0.507 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.1395, allocations: 0.5496 MB / 0.5075 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005554/0.1451, allocations: 3.973 MB / 0.5114 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/0.1479, allocations: 1.783 MB / 0.5131 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.1499, allocations: 1.164 MB / 0.5143 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.1525, allocations: 1.686 MB / 0.5159 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007341/0.1533, allocations: 216 kB / 0.5161 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002713/0.156, allocations: 1.295 MB / 0.5174 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.1579, allocations: 1.589 MB / 0.5189 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002727/0.1607, allocations: 1.855 MB / 0.5207 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007445/0.1681, allocations: 6.239 MB / 0.5268 GB, free: 4.422 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1682, allocations: 0 / 0.5268 GB, free: 4.422 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1682, allocations: 4 kB / 0.5268 GB, free: 4.418 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002071/0.1684, allocations: 0 / 0.5268 GB, free: 4.418 MB / 414.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.009156/0.1776, allocations: 4.111 MB / 0.5309 GB, free: 244 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1776, allocations: 15.97 kB / 0.5309 GB, free: 228 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2516/0.4293, allocations: 5.667 MB / 0.5364 GB, free: 37.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005197/0.4345, allocations: 2.262 MB / 0.5386 GB, free: 37.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.4347, allocations: 176.5 kB / 0.5388 GB, free: 37.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.4358, allocations: 314.8 kB / 0.5391 GB, free: 37.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/0.4531, allocations: 10.72 MB / 0.5495 GB, free: 32.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.306e-05/0.4532, allocations: 26.72 kB / 0.5496 GB, free: 32.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003679/0.4536, allocations: 120.5 kB / 0.5497 GB, free: 32.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003662/0.4573, allocations: 2.459 MB / 0.5521 GB, free: 31.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/0.4746, allocations: 10.16 MB / 0.562 GB, free: 24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0423/0.517, allocations: 35.51 MB / 0.5967 GB, free: 3.785 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/0.5289, allocations: 5.594 MB / 0.6022 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003347/0.5323, allocations: 2.334 MB / 0.6044 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001747/0.534, allocations: 1.876 MB / 0.6063 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.5341, allocations: 56.56 kB / 0.6063 GB, free: 9.352 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.38e-06/0.5341, allocations: 4 kB / 0.6063 GB, free: 9.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04001/0.5741, allocations: 14.97 MB / 0.6209 GB, free: 10.27 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001572/0.5757, allocations: 1.61 MB / 0.6225 GB, free: 8.496 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004717/0.5805, allocations: 2.812 MB / 0.6253 GB, free: 5.672 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006022/0.5811, allocations: 53.7 kB / 0.6253 GB, free: 5.613 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/0.5836, allocations: 2.678 MB / 0.6279 GB, free: 2.895 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001566/0.5852, allocations: 0.8596 MB / 0.6288 GB, free: 2.023 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003112/0.5883, allocations: 1.103 MB / 0.6298 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5884, allocations: 301.1 kB / 0.6301 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00457/0.593, allocations: 2.63 MB / 0.6327 GB, free: 13.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006862/0.5999, allocations: 5.647 MB / 0.6382 GB, free: 6.855 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/0.6112, allocations: 8.941 MB / 0.6469 GB, free: 12.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/0.6114, allocations: 28 kB / 0.647 GB, free: 12.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06869/0.6801, allocations: 19.04 MB / 0.6656 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.735e-05/0.6802, allocations: 48.22 kB / 0.6656 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04867/0.7289, allocations: 12.02 MB / 0.6774 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05205/0.781, allocations: 10.28 MB / 0.6874 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004702/0.7857, allocations: 1.31 MB / 0.6887 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03147/0.8172, allocations: 18.23 MB / 0.7065 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004412/0.8216, allocations: 435.5 kB / 0.7069 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/0.8227, allocations: 320 kB / 0.7072 GB, free: 14.38 MB / 0.545 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.004247/0.827, allocations: 2.024 MB / 0.7092 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/0.8276, allocations: 272.5 kB / 0.7094 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009585/0.8372, allocations: 5.106 MB / 0.7144 GB, free: 6.934 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007768/0.845, allocations: 4.409 MB / 0.7187 GB, free: 2.512 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.8451, allocations: 0 / 0.7187 GB, free: 2.512 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.8451, allocations: 11.95 kB / 0.7187 GB, free: 2.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02235/0.8674, allocations: 12.92 MB / 0.7313 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/0.8675, allocations: 8 kB / 0.7314 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002189/0.8697, allocations: 467.2 kB / 0.7318 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003064/0.8728, allocations: 0.9386 MB / 0.7327 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003535/0.8732, allocations: 51.97 kB / 0.7328 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006999/0.8802, allocations: 5.831 MB / 0.7385 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001093/0.8813, allocations: 1.554 MB / 0.74 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.8934, allocations: 7.726 MB / 0.7475 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007451/0.8941, allocations: 329.6 kB / 0.7478 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000669/0.8948, allocations: 51.97 kB / 0.7479 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.8967, allocations: 191.7 kB / 0.7481 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004453/0.8972, allocations: 148.9 kB / 0.7482 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/0.8974, allocations: 63.98 kB / 0.7483 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00291/0.9003, allocations: 1.733 MB / 0.75 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.61e-07/0.9003, allocations: 0 / 0.75 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004895/0.9052, allocations: 1.104 MB / 0.751 GB, free: 0.6211 MB / 0.5762 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.000584/0.9058, allocations: 178.1 kB / 0.7512 GB, free: 452 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2123/1.118, allocations: 6.673 MB / 0.7577 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/1.118, allocations: 1.375 kB / 0.7577 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003804/1.122, allocations: 2.529 MB / 0.7602 GB, free: 198.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/1.124, allocations: 373.3 kB / 0.7606 GB, free: 198 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/1.14, allocations: 10.27 MB / 0.7706 GB, free: 193.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003675/1.144, allocations: 3.159 MB / 0.7737 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001184/1.145, allocations: 260.7 kB / 0.7739 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of SimCode: time 9.42e-07/1.145, allocations: 2.031 kB / 0.7739 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.1004/1.246, allocations: 112.8 MB / 0.884 GB, free: 88.17 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.makefile (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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches