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.001585/0.001585, allocations: 114.2 kB / 17.08 MB, free: 6.004 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.001968/0.001968, allocations: 198.3 kB / 18.01 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.506/2.506, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2583/0.2583, allocations: 43.52 MB / 314.8 MB, free: 476 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.002261/0.002261, allocations: 71.89 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1265, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01313/0.1396, allocations: 11.81 MB / 0.5001 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008453/0.1481, allocations: 4.055 MB / 0.504 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.1503, allocations: 63.88 kB / 0.5041 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002858/0.1532, allocations: 1.171 MB / 0.5052 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004621/0.1579, allocations: 1.759 MB / 0.507 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.1595, allocations: 0.5574 MB / 0.5075 GB, free: 8.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005736/0.1652, allocations: 3.965 MB / 0.5114 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002976/0.1682, allocations: 1.787 MB / 0.5131 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002295/0.1706, allocations: 1.164 MB / 0.5143 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002824/0.1734, allocations: 1.686 MB / 0.5159 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008991/0.1743, allocations: 216 kB / 0.5161 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003036/0.1774, allocations: 1.295 MB / 0.5174 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002185/0.1796, allocations: 1.593 MB / 0.5189 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003234/0.1828, allocations: 1.848 MB / 0.5207 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008642/0.1915, allocations: 6.243 MB / 0.5268 GB, free: 4.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1915, allocations: 4 kB / 0.5268 GB, free: 4.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1915, allocations: 0 / 0.5268 GB, free: 4.426 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002158/0.1917, allocations: 0 / 0.5268 GB, free: 4.426 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.00925/0.201, allocations: 4.111 MB / 0.5309 GB, free: 256 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.2011, allocations: 8.031 kB / 0.5309 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2967/0.4977, allocations: 5.669 MB / 0.5364 GB, free: 37.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006401/0.5042, allocations: 2.259 MB / 0.5386 GB, free: 37.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.5044, allocations: 184 kB / 0.5388 GB, free: 37.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.5059, allocations: 313.3 kB / 0.5391 GB, free: 37.35 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/0.5261, allocations: 10.72 MB / 0.5496 GB, free: 32.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.623e-05/0.5263, allocations: 30.91 kB / 0.5496 GB, free: 32.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004174/0.5267, allocations: 114.7 kB / 0.5497 GB, free: 32.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00406/0.5308, allocations: 2.463 MB / 0.5521 GB, free: 31.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01852/0.5493, allocations: 10.16 MB / 0.562 GB, free: 24.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04683/0.5962, allocations: 35.51 MB / 0.5967 GB, free: 3.789 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/0.6079, allocations: 5.595 MB / 0.6022 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003169/0.6111, allocations: 2.338 MB / 0.6044 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/0.6128, allocations: 1.876 MB / 0.6063 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/0.6129, allocations: 60.5 kB / 0.6063 GB, free: 9.348 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 4.779e-06/0.6129, allocations: 4 kB / 0.6063 GB, free: 9.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.03493/0.6479, allocations: 14.97 MB / 0.6209 GB, free: 10.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001393/0.6493, allocations: 1.604 MB / 0.6225 GB, free: 8.496 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/0.653, allocations: 2.806 MB / 0.6253 GB, free: 5.676 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005042/0.6536, allocations: 53.7 kB / 0.6253 GB, free: 5.617 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00209/0.6557, allocations: 2.681 MB / 0.6279 GB, free: 2.895 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001153/0.6568, allocations: 0.8557 MB / 0.6288 GB, free: 2.027 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001592/0.6584, allocations: 1.107 MB / 0.6298 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.6586, allocations: 301.1 kB / 0.6301 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003769/0.6623, allocations: 2.634 MB / 0.6327 GB, free: 13.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00599/0.6683, allocations: 5.644 MB / 0.6382 GB, free: 6.855 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.6796, allocations: 8.933 MB / 0.6469 GB, free: 12.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.4e-05/0.6797, allocations: 28 kB / 0.647 GB, free: 12.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.0624/0.7421, allocations: 19.05 MB / 0.6656 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.114e-05/0.7423, allocations: 48.19 kB / 0.6656 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0429/0.7852, allocations: 12.02 MB / 0.6773 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04483/0.83, allocations: 10.29 MB / 0.6874 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/0.8351, allocations: 1.312 MB / 0.6887 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02994/0.865, allocations: 18.23 MB / 0.7065 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004759/0.8698, allocations: 443.5 kB / 0.7069 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009106/0.8708, allocations: 316 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.004267/0.8751, allocations: 2.024 MB / 0.7092 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006294/0.8757, allocations: 272.5 kB / 0.7094 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009576/0.8853, allocations: 5.106 MB / 0.7144 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00785/0.8932, allocations: 4.413 MB / 0.7187 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.8932, allocations: 0 / 0.7187 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/0.8932, allocations: 7.969 kB / 0.7187 GB, free: 2.496 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/0.9162, allocations: 12.92 MB / 0.7314 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.9162, allocations: 4 kB / 0.7314 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/0.9183, allocations: 467.3 kB / 0.7318 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00292/0.9212, allocations: 0.9426 MB / 0.7327 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002344/0.9215, allocations: 51.91 kB / 0.7328 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007022/0.9285, allocations: 5.83 MB / 0.7385 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001182/0.9297, allocations: 1.546 MB / 0.74 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/0.9423, allocations: 7.73 MB / 0.7475 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.9433, allocations: 333.6 kB / 0.7478 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004776/0.9438, allocations: 44.28 kB / 0.7479 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.9454, allocations: 191.7 kB / 0.7481 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003982/0.9458, allocations: 148.9 kB / 0.7482 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/0.9459, allocations: 71.97 kB / 0.7483 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002746/0.9487, allocations: 1.725 MB / 0.75 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9487, allocations: 0 / 0.75 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005339/0.9541, allocations: 1.112 MB / 0.751 GB, free: 0.6133 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.0005685/0.9546, allocations: 184.2 kB / 0.7512 GB, free: 440 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.3066/1.261, allocations: 6.663 MB / 0.7577 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.261, allocations: 0 / 0.7577 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004168/1.266, allocations: 2.528 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.002506/1.268, allocations: 381.3 kB / 0.7606 GB, free: 198.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/1.289, allocations: 10.26 MB / 0.7706 GB, free: 193.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004994/1.294, allocations: 3.162 MB / 0.7737 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/1.295, allocations: 259.4 kB / 0.7739 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.593e-06/1.295, allocations: 0 / 0.7739 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.116/1.411, allocations: 113.3 MB / 0.8846 GB, free: 87.58 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