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.00109/0.00109, allocations: 90.98 kB / 18 MB, free: 5.734 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.001234/0.001234, allocations: 177.6 kB / 18.91 MB, free: 4.871 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.385/1.385, allocations: 223.3 MB / 243 MB, free: 24 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1962/0.1962, allocations: 44.24 MB / 338.3 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.00036, allocations: 11.12 kB / 411 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1188, allocations: 61.93 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02291/0.1418, allocations: 24.85 MB / 497.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.1554, allocations: 6.328 MB / 0.4923 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00413/0.1596, allocations: 103.8 kB / 0.4924 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1611, allocations: 418.2 kB / 0.4928 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.1655, allocations: 1.655 MB / 0.4944 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.167, allocations: 0.5147 MB / 0.4949 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006461/0.1735, allocations: 5.403 MB / 0.5002 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003982/0.1775, allocations: 2.275 MB / 0.5024 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001904/0.1794, allocations: 0.9412 MB / 0.5033 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002613/0.182, allocations: 1.693 MB / 0.505 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006995/0.1828, allocations: 131.9 kB / 0.5051 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2353/0.4181, allocations: 1.3 MB / 0.5064 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002934/0.4211, allocations: 1.519 MB / 0.5078 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005171/0.4263, allocations: 1.775 MB / 0.5096 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008576/0.4349, allocations: 4.706 MB / 0.5142 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4349, allocations: 3.562 kB / 0.5142 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4349, allocations: 1.594 kB / 0.5142 GB, free: 13.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003164/0.4352, allocations: 0 / 0.5142 GB, free: 13.8 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.01028/0.4455, allocations: 3.387 MB / 0.5175 GB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.4456, allocations: 9.719 kB / 0.5175 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02032/0.4659, allocations: 5.776 MB / 0.5231 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00664/0.4726, allocations: 2.199 MB / 0.5253 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.4729, allocations: 183.8 kB / 0.5255 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.4747, allocations: 314.5 kB / 0.5258 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02136/0.496, allocations: 10.73 MB / 0.5362 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001876/0.4963, allocations: 25 kB / 0.5363 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/0.4976, allocations: 113.1 kB / 0.5364 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003826/0.5014, allocations: 2.462 MB / 0.5388 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.5213, allocations: 10.17 MB / 0.5487 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06049/0.5819, allocations: 35.68 MB / 0.5835 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.5944, allocations: 5.619 MB / 0.589 GB, free: 3.988 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003586/0.598, allocations: 2.33 MB / 0.5913 GB, free: 1.652 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001756/0.5998, allocations: 1.873 MB / 0.5931 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/0.5998, allocations: 52.56 kB / 0.5932 GB, free: 15.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 6.062e-06/0.5999, allocations: 0 / 0.5932 GB, free: 15.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04096/0.6408, allocations: 14.97 MB / 0.6078 GB, free: 344 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001342/0.6422, allocations: 1.524 MB / 0.6093 GB, free: 14.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005098/0.6473, allocations: 2.794 MB / 0.612 GB, free: 11.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000518/0.6479, allocations: 53.64 kB / 0.6121 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002101/0.65, allocations: 2.683 MB / 0.6147 GB, free: 9.113 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001361/0.6514, allocations: 0.8521 MB / 0.6155 GB, free: 8.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.6526, allocations: 486.3 kB / 0.616 GB, free: 7.785 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.743e-05/0.6527, allocations: 301.1 kB / 0.6163 GB, free: 7.488 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004551/0.6572, allocations: 2.634 MB / 0.6189 GB, free: 4.848 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006843/0.6641, allocations: 5.644 MB / 0.6244 GB, free: 13.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/0.6759, allocations: 8.93 MB / 0.6331 GB, free: 3.816 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/0.676, allocations: 32 kB / 0.6331 GB, free: 3.785 MB / 478.1 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.06891/0.7449, allocations: 19.05 MB / 0.6517 GB, free: 1.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.7451, allocations: 52 kB / 0.6518 GB, free: 1.297 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04749/0.7926, allocations: 12.01 MB / 0.6635 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04976/0.8424, allocations: 10.29 MB / 0.6735 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005383/0.8479, allocations: 1.317 MB / 0.6748 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02979/0.8777, allocations: 16.03 MB / 0.6905 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/0.8829, allocations: 439.5 kB / 0.6909 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/0.8843, allocations: 323.5 kB / 0.6912 GB, free: 8.664 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.005931/0.8902, allocations: 2.016 MB / 0.6932 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007831/0.891, allocations: 276.4 kB / 0.6934 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/0.9016, allocations: 5.117 MB / 0.6984 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2856/1.187, allocations: 4.4 MB / 0.7027 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.779e-05/1.187, allocations: 4.391 kB / 0.7027 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.545e-05/1.187, allocations: 11.89 kB / 0.7028 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03183/1.219, allocations: 12.93 MB / 0.7154 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.664e-05/1.219, allocations: 4.625 kB / 0.7154 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/1.221, allocations: 458.1 kB / 0.7158 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002828/1.224, allocations: 0.9376 MB / 0.7167 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000365/1.225, allocations: 58.61 kB / 0.7168 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00553/1.23, allocations: 5.458 MB / 0.7221 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008492/1.231, allocations: 1.465 MB / 0.7236 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/1.243, allocations: 7.731 MB / 0.7311 GB, free: 180 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/1.244, allocations: 329.6 kB / 0.7314 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008878/1.245, allocations: 44.53 kB / 0.7315 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002168/1.247, allocations: 198.7 kB / 0.7316 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004968/1.248, allocations: 145.4 kB / 0.7318 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.248, allocations: 68.61 kB / 0.7318 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003838/1.252, allocations: 1.721 MB / 0.7335 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.252, allocations: 0 / 0.7335 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00734/1.259, allocations: 1.11 MB / 0.7346 GB, free: 176.5 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.0008872/1.26, allocations: 180.1 kB / 0.7348 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01195/1.272, allocations: 6.627 MB / 0.7413 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/1.272, allocations: 4 kB / 0.7413 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004151/1.276, allocations: 2.533 MB / 0.7437 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005764/1.282, allocations: 368.3 kB / 0.7441 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/1.304, allocations: 12.41 MB / 0.7562 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005047/1.309, allocations: 3.156 MB / 0.7593 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/1.311, allocations: 259.4 kB / 0.7595 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/1.311, allocations: 4 kB / 0.7595 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1269/1.438, allocations: 111.4 MB / 0.8683 GB, free: 39.56 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Spherical/Spherical.csv","/var/lib/jenkins1/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