Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001885/0.001885, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2195/0.2195, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 76.66 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1234, allocations: 62.44 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01337/0.1368, allocations: 11.76 MB / 491.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008789/0.1457, allocations: 4.065 MB / 496 MB, free: 5.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.1475, allocations: 59.88 kB / 496 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.1504, allocations: 1.183 MB / 497.2 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004587/0.155, allocations: 1.716 MB / 498.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.1566, allocations: 0.5574 MB / 499.5 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005417/0.162, allocations: 4.024 MB / 0.4917 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003062/0.1651, allocations: 1.784 MB / 0.4934 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002456/0.1676, allocations: 1.144 MB / 0.4945 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.1702, allocations: 1.666 MB / 0.4962 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.1712, allocations: 220 kB / 0.4964 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.1745, allocations: 1.295 MB / 0.4977 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002343/0.1769, allocations: 1.566 MB / 0.4992 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003692/0.1806, allocations: 1.836 MB / 0.501 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.264/0.4447, allocations: 5.904 MB / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.4447, allocations: 0 / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4447, allocations: 1.562 kB / 0.5067 GB, free: 18.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002211/0.445, allocations: 0 / 0.5067 GB, free: 18.82 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.01068/0.4557, allocations: 4.095 MB / 0.5107 GB, free: 17.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4557, allocations: 9.094 kB / 0.5107 GB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001082/0.4568, allocations: 0.6869 MB / 0.5114 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02109/0.4779, allocations: 6.155 MB / 0.5174 GB, free: 16.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007291/0.4852, allocations: 2.598 MB / 0.52 GB, free: 16.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.4855, allocations: 181 kB / 0.5201 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.4868, allocations: 312.9 kB / 0.5204 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01754/0.5043, allocations: 10.72 MB / 0.5309 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-05/0.5045, allocations: 21 kB / 0.5309 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003915/0.5049, allocations: 115.8 kB / 0.531 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/0.5083, allocations: 2.461 MB / 0.5334 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.527, allocations: 10.17 MB / 0.5434 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05598/0.583, allocations: 35.69 MB / 0.5782 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/0.5957, allocations: 5.591 MB / 0.5837 GB, free: 9.402 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003769/0.5996, allocations: 2.333 MB / 0.586 GB, free: 7.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002046/0.6016, allocations: 1.878 MB / 0.5878 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/0.6017, allocations: 60.5 kB / 0.5879 GB, free: 4.801 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 7.594e-06/0.6018, allocations: 0 / 0.5879 GB, free: 4.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04058/0.6423, allocations: 14.95 MB / 0.6025 GB, free: 5.773 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001421/0.6438, allocations: 1.606 MB / 0.604 GB, free: 4.016 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/0.6487, allocations: 2.806 MB / 0.6068 GB, free: 1.199 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005654/0.6493, allocations: 57.7 kB / 0.6068 GB, free: 1.137 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/0.6513, allocations: 2.675 MB / 0.6094 GB, free: 14.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/0.6525, allocations: 0.8539 MB / 0.6103 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002829/0.6554, allocations: 1.104 MB / 0.6113 GB, free: 12.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.6555, allocations: 302.6 kB / 0.6116 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004694/0.6602, allocations: 2.626 MB / 0.6142 GB, free: 9.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006854/0.6671, allocations: 5.634 MB / 0.6197 GB, free: 2.539 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/0.6786, allocations: 8.939 MB / 0.6284 GB, free: 8.562 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.6788, allocations: 31.94 kB / 0.6285 GB, free: 8.531 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0695/0.7483, allocations: 17.12 MB / 0.6452 GB, free: 7.738 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.7485, allocations: 48.19 kB / 0.6452 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04683/0.7953, allocations: 10.64 MB / 0.6556 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0484/0.8437, allocations: 8.644 MB / 0.6641 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/0.8488, allocations: 1.302 MB / 0.6653 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03033/0.8791, allocations: 17.81 MB / 0.6827 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004714/0.8839, allocations: 415.6 kB / 0.6831 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/0.8851, allocations: 320.9 kB / 0.6834 GB, free: 260 kB / 0.5137 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 (653): * Single equations (assignments): 642 * 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.004397/0.8895, allocations: 2.025 MB / 0.6854 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000825/0.8904, allocations: 268.4 kB / 0.6857 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.9006, allocations: 5.12 MB / 0.6907 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008231/0.9089, allocations: 4.4 MB / 0.6949 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.412e-05/0.909, allocations: 7.938 kB / 0.695 GB, free: 4.379 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-05/0.909, allocations: 11.91 kB / 0.695 GB, free: 4.367 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02882/0.9378, allocations: 12.95 MB / 0.7076 GB, free: 7.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.9379, allocations: 8 kB / 0.7076 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002343/0.9402, allocations: 457.8 kB / 0.7081 GB, free: 6.816 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003124/0.9434, allocations: 0.9431 MB / 0.709 GB, free: 5.863 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003215/0.9437, allocations: 51.97 kB / 0.709 GB, free: 5.812 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2633/1.207, allocations: 5.832 MB / 0.7147 GB, free: 197.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001159/1.208, allocations: 1.547 MB / 0.7162 GB, free: 196.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/1.223, allocations: 7.742 MB / 0.7238 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009069/1.224, allocations: 324.8 kB / 0.7241 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008993/1.225, allocations: 41.31 kB / 0.7241 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002249/1.227, allocations: 197.3 kB / 0.7243 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006171/1.227, allocations: 143 kB / 0.7245 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003231/1.228, allocations: 67.33 kB / 0.7245 GB, free: 194.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00381/1.232, allocations: 1.727 MB / 0.7262 GB, free: 193.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.31e-07/1.232, allocations: 0 / 0.7262 GB, free: 193.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006147/1.238, allocations: 1.083 MB / 0.7273 GB, free: 193.6 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.01328/1.251, allocations: 8.395 MB / 0.7355 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01517/1.266, allocations: 9.582 MB / 0.7448 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.266, allocations: 4 kB / 0.7448 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003632/1.27, allocations: 2.523 MB / 0.7473 GB, free: 184.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/1.273, allocations: 381 kB / 0.7477 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1402/1.414, allocations: 59.66 MB / 0.8059 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004694/1.418, allocations: 3.162 MB / 0.809 GB, free: 117.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004939/1.423, allocations: 2.06 MB / 0.811 GB, free: 115.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003026/1.426, allocations: 1.663 MB / 0.8126 GB, free: 113.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.426, allocations: 4 kB / 0.8127 GB, free: 113.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/1.582, allocations: 73.7 MB / 0.8846 GB, free: 40.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/15.06, allocations: 0 / 0.8846 GB, free: 40.23 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.csv","/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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches