Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008651/0.0008653, allocations: 91.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000953/0.000953, allocations: 202.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.8 MB / 246.8 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2326/0.2326, allocations: 46.2 MB / 345.3 MB, free: 11.34 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 12 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1321, allocations: 63.56 MB / 483.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02786/0.16, allocations: 24.7 MB / 0.496 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1759, allocations: 6.285 MB / 0.5021 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004741/0.1807, allocations: 103.8 kB / 0.5022 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.1819, allocations: 422.2 kB / 0.5026 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004318/0.1862, allocations: 1.628 MB / 0.5042 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.1875, allocations: 0.5147 MB / 0.5047 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2916/0.4791, allocations: 5.468 MB / 0.51 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004201/0.4834, allocations: 2.265 MB / 0.5122 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002127/0.4855, allocations: 0.927 MB / 0.5131 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003027/0.4886, allocations: 1.691 MB / 0.5148 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006357/0.4892, allocations: 128.4 kB / 0.5149 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.4926, allocations: 1.281 MB / 0.5162 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00236/0.495, allocations: 1.5 MB / 0.5176 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002512/0.4975, allocations: 1.754 MB / 0.5193 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008799/0.5063, allocations: 5.746 MB / 0.525 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.5063, allocations: 1.062 kB / 0.525 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5064, allocations: 0 / 0.525 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000257/0.5066, allocations: 0 / 0.525 GB, free: 8.91 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.01051/0.5171, allocations: 3.347 MB / 0.5282 GB, free: 6.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.5172, allocations: 9.969 kB / 0.5282 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02138/0.5386, allocations: 6.244 MB / 0.5343 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006154/0.5448, allocations: 2.164 MB / 0.5364 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.545, allocations: 181.5 kB / 0.5366 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001329/0.5464, allocations: 313.6 kB / 0.5369 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01861/0.565, allocations: 10.73 MB / 0.5474 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.596e-05/0.5651, allocations: 33.5 kB / 0.5474 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004026/0.5655, allocations: 111.4 kB / 0.5475 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004468/0.57, allocations: 2.458 MB / 0.5499 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02491/0.5949, allocations: 10.18 MB / 0.5599 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06693/0.6619, allocations: 35.67 MB / 0.5947 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/0.675, allocations: 5.606 MB / 0.6002 GB, free: 4.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00413/0.6792, allocations: 2.337 MB / 0.6025 GB, free: 1.914 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002279/0.6815, allocations: 1.873 MB / 0.6043 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.6816, allocations: 52.56 kB / 0.6043 GB, free: 15.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=224): time 5.701e-06/0.6816, allocations: 0 / 0.6043 GB, free: 15.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.04183/0.7234, allocations: 14.96 MB / 0.6189 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001827/0.7253, allocations: 1.523 MB / 0.6204 GB, free: 14.94 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005013/0.7303, allocations: 2.789 MB / 0.6232 GB, free: 12.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005676/0.7309, allocations: 60.67 kB / 0.6232 GB, free: 12.07 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002924/0.7339, allocations: 2.671 MB / 0.6258 GB, free: 9.398 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00138/0.7352, allocations: 0.8551 MB / 0.6267 GB, free: 8.551 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007527/0.736, allocations: 487.4 kB / 0.6271 GB, free: 8.066 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.7361, allocations: 301.1 kB / 0.6274 GB, free: 7.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00445/0.7406, allocations: 2.634 MB / 0.63 GB, free: 5.129 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00733/0.7479, allocations: 5.641 MB / 0.6355 GB, free: 14.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.7604, allocations: 8.941 MB / 0.6442 GB, free: 4.062 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.173e-05/0.7605, allocations: 28 kB / 0.6443 GB, free: 4.035 MB / 494.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06839/0.8289, allocations: 17.16 MB / 0.661 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/0.829, allocations: 48 kB / 0.6611 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04776/0.8767, allocations: 10.63 MB / 0.6714 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05153/0.9283, allocations: 8.647 MB / 0.6799 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005653/0.934, allocations: 1.314 MB / 0.6812 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03077/0.9648, allocations: 15.63 MB / 0.6964 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005022/0.9699, allocations: 424.5 kB / 0.6968 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008378/0.9708, allocations: 321.3 kB / 0.6971 GB, free: 13.53 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.004344/0.9751, allocations: 2.018 MB / 0.6991 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005001/0.9756, allocations: 272.6 kB / 0.6994 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009942/0.9856, allocations: 5.115 MB / 0.7044 GB, free: 6.082 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008213/0.9938, allocations: 4.411 MB / 0.7087 GB, free: 1.652 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/0.9939, allocations: 4 kB / 0.7087 GB, free: 1.648 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.9939, allocations: 11.95 kB / 0.7087 GB, free: 1.637 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2739/1.268, allocations: 12.92 MB / 0.7213 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.03e-05/1.268, allocations: 11.12 kB / 0.7213 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002305/1.27, allocations: 457.5 kB / 0.7217 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003293/1.273, allocations: 0.9419 MB / 0.7227 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003923/1.274, allocations: 53.06 kB / 0.7227 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006765/1.281, allocations: 5.455 MB / 0.728 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00102/1.282, allocations: 1.467 MB / 0.7295 GB, free: 188.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.293, allocations: 7.733 MB / 0.737 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009877/1.294, allocations: 332.6 kB / 0.7373 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/1.294, allocations: 49.8 kB / 0.7374 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.296, allocations: 191.1 kB / 0.7376 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/1.296, allocations: 141.9 kB / 0.7377 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.296, allocations: 67.8 kB / 0.7378 GB, free: 185.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002405/1.299, allocations: 1.721 MB / 0.7395 GB, free: 184.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.032e-06/1.299, allocations: 0 / 0.7395 GB, free: 184.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004558/1.303, allocations: 1.093 MB / 0.7405 GB, free: 184.7 MB / 0.545 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.0004756/1.304, allocations: 183 kB / 0.7407 GB, free: 184.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00945/1.313, allocations: 6.547 MB / 0.7471 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.313, allocations: 0 / 0.7471 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003207/1.317, allocations: 2.531 MB / 0.7496 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004585/1.321, allocations: 367.4 kB / 0.7499 GB, free: 177.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/1.335, allocations: 11.97 MB / 0.7616 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002674/1.338, allocations: 3.161 MB / 0.7647 GB, free: 164.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004064/1.342, allocations: 2.06 MB / 0.7667 GB, free: 162.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006698/1.343, allocations: 211.4 kB / 0.7669 GB, free: 162.3 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/1.343, allocations: 0 / 0.7669 GB, free: 162.3 MB / 0.545 GB Notification: Performance of Templates: time 0.0599/1.403, allocations: 43.92 MB / 0.8098 GB, free: 118.5 MB / 0.545 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches