Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001565/0.001565, allocations: 187 kB / 18.71 MB, free: 4.344 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2049/0.2049, allocations: 44.18 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001456, allocations: 71.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3465, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.009847/0.3564, allocations: 7.609 MB / 0.5259 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005722/0.3622, allocations: 2.532 MB / 0.5283 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.3634, allocations: 38.12 kB / 0.5284 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002107/0.3655, allocations: 0.8814 MB / 0.5292 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009735/0.3666, allocations: 312.6 kB / 0.5295 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008589/0.3674, allocations: 329.8 kB / 0.5298 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008625/0.3683, allocations: 0.7343 MB / 0.5306 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009455/0.3693, allocations: 0.8363 MB / 0.5314 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.3697, allocations: 362.5 kB / 0.5317 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008904/0.3706, allocations: 0.6524 MB / 0.5324 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.3708, allocations: 105.5 kB / 0.5325 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008693/0.3717, allocations: 0.527 MB / 0.533 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004561/0.3722, allocations: 499.2 kB / 0.5335 GB, free: 9.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.3727, allocations: 0.568 MB / 0.534 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.3746, allocations: 1.783 MB / 0.5358 GB, free: 7.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3746, allocations: 1.094 kB / 0.5358 GB, free: 7.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3746, allocations: 0 / 0.5358 GB, free: 7.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.3746, allocations: 0 / 0.5358 GB, free: 7.602 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.00338/0.378, allocations: 1.631 MB / 0.5373 GB, free: 6.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3781, allocations: 8.625 kB / 0.5374 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002827/0.3784, allocations: 188.3 kB / 0.5375 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007254/0.3791, allocations: 160.4 kB / 0.5377 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3804, allocations: 0.6427 MB / 0.5383 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/0.3804, allocations: 64.94 kB / 0.5384 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001866/0.3806, allocations: 79.41 kB / 0.5385 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005487/0.3861, allocations: 2.674 MB / 0.5411 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.3862, allocations: 8.156 kB / 0.5411 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.3863, allocations: 37.41 kB / 0.5411 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005761/0.3869, allocations: 385.8 kB / 0.5415 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005413/0.3923, allocations: 2.359 MB / 0.5438 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008958/0.4013, allocations: 8.232 MB / 0.5518 GB, free: 9.379 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003844/0.4051, allocations: 0.9756 MB / 0.5528 GB, free: 8.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003726/0.4055, allocations: 260.7 kB / 0.553 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001615/0.4072, allocations: 1.722 MB / 0.5547 GB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.4072, allocations: 38.56 kB / 0.5547 GB, free: 6.086 MB / 414.1 MB Notification: Performance of pre-optimization done (n=44): time 2.395e-06/0.4072, allocations: 0 / 0.5547 GB, free: 6.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=58): time 0.01177/0.419, allocations: 2.952 MB / 0.5576 GB, free: 3.121 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.4191, allocations: 55.97 kB / 0.5577 GB, free: 3.055 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.4203, allocations: 0.9029 MB / 0.5586 GB, free: 2.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/0.4203, allocations: 37.7 kB / 0.5586 GB, free: 2.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004482/0.4208, allocations: 0.6564 MB / 0.5592 GB, free: 1.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.421, allocations: 221 kB / 0.5594 GB, free: 1.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.4213, allocations: 246.6 kB / 0.5597 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.4215, allocations: 402.7 kB / 0.5601 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.422, allocations: 374.3 kB / 0.5604 GB, free: 200 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009948/0.423, allocations: 0.9953 MB / 0.5614 GB, free: 14.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.4247, allocations: 1.487 MB / 0.5628 GB, free: 13.1 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.4247, allocations: 11.94 kB / 0.5629 GB, free: 13.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001975/0.4267, allocations: 1.389 MB / 0.5642 GB, free: 11.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.4267, allocations: 19.94 kB / 0.5642 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.4267, allocations: 20 kB / 0.5642 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.018e-05/0.4268, allocations: 40 kB / 0.5643 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.4279, allocations: 319.5 kB / 0.5646 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.429, allocations: 1.451 MB / 0.566 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.4297, allocations: 55.89 kB / 0.5661 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-05/0.4298, allocations: 67.94 kB / 0.5661 GB, free: 9.594 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006646/0.4304, allocations: 0.4972 MB / 0.5666 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.4305, allocations: 86.88 kB / 0.5667 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.4308, allocations: 116.7 kB / 0.5668 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.4308, allocations: 11.94 kB / 0.5668 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4308, allocations: 0 / 0.5668 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4308, allocations: 0 / 0.5668 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003584/0.4344, allocations: 2.172 MB / 0.5689 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4344, allocations: 8.031 kB / 0.5689 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000502/0.4349, allocations: 123.8 kB / 0.5691 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.157e-05/0.4349, allocations: 12 kB / 0.5691 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.229e-05/0.435, allocations: 12 kB / 0.5691 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009388/0.4359, allocations: 1.428 MB / 0.5705 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.4359, allocations: 7.938 kB / 0.5705 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009714/0.4369, allocations: 0.8267 MB / 0.5713 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000229/0.4372, allocations: 168 kB / 0.5715 GB, free: 3.723 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.4373, allocations: 27.86 kB / 0.5715 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.4376, allocations: 23.94 kB / 0.5715 GB, free: 3.672 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.4377, allocations: 51.83 kB / 0.5716 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.4377, allocations: 16 kB / 0.5716 GB, free: 3.605 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007298/0.4385, allocations: 0.6044 MB / 0.5722 GB, free: 3.004 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4385, allocations: 0 / 0.5722 GB, free: 3.004 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.4395, allocations: 216 kB / 0.5724 GB, free: 2.793 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001247/0.4407, allocations: 1.402 MB / 0.5737 GB, free: 1.285 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.4421, allocations: 0.8787 MB / 0.5746 GB, free: 420 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4421, allocations: 4.188 kB / 0.5746 GB, free: 416 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.4426, allocations: 289.3 kB / 0.5749 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007901/0.4434, allocations: 123.1 kB / 0.575 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.4548, allocations: 9.394 MB / 0.5842 GB, free: 5.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008821/0.4558, allocations: 1.224 MB / 0.5854 GB, free: 4.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008277/0.4566, allocations: 343.6 kB / 0.5857 GB, free: 4.141 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005565/0.4572, allocations: 407.2 kB / 0.5861 GB, free: 3.742 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4572, allocations: 4 kB / 0.5861 GB, free: 3.738 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/0.4954, allocations: 17.55 MB / 0.6032 GB, free: 2.363 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.45, allocations: 8.109 kB / 0.6032 GB, free: 2.359 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches