Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 77.59 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09137, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.007433/0.09883, allocations: 7.601 MB / 487.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004253/0.1031, allocations: 2.574 MB / 490.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005584/0.1037, allocations: 35.94 kB / 490.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.1053, allocations: 0.9032 MB / 491.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000512/0.1058, allocations: 306.3 kB / 491.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.1064, allocations: 315.3 kB / 491.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.107, allocations: 0.7203 MB / 492.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007615/0.1078, allocations: 0.8258 MB / 493.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.108, allocations: 358.6 kB / 493.7 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006828/0.1087, allocations: 0.6582 MB / 494.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.1089, allocations: 104 kB / 494.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006824/0.1096, allocations: 0.5148 MB / 495 MB, free: 6.238 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003969/0.11, allocations: 0.4909 MB / 495.5 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004178/0.1104, allocations: 0.5594 MB / 496.1 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.1117, allocations: 1.721 MB / 497.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1117, allocations: 0 / 497.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1117, allocations: 0 / 497.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1117, allocations: 0 / 497.8 MB, free: 3.457 MB / 366.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.002576/0.1143, allocations: 1.63 MB / 499.4 MB, free: 1.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.1143, allocations: 12.03 kB / 499.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.1145, allocations: 182.5 kB / 499.6 MB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005765/0.1151, allocations: 159.2 kB / 499.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007825/0.1159, allocations: 0.6357 MB / 0.4887 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.116, allocations: 58.09 kB / 0.4887 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.1161, allocations: 79.97 kB / 0.4888 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004354/0.1205, allocations: 2.67 MB / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.1205, allocations: 3.938 kB / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.57e-05/0.1206, allocations: 39.97 kB / 0.4915 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004185/0.121, allocations: 389.7 kB / 0.4918 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004578/0.1256, allocations: 2.365 MB / 0.4941 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00681/0.1324, allocations: 8.26 MB / 0.5022 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/0.1359, allocations: 0.9768 MB / 0.5032 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.1363, allocations: 260.7 kB / 0.5034 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1675/0.3038, allocations: 1.72 MB / 0.5051 GB, free: 41.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.3039, allocations: 38.67 kB / 0.5051 GB, free: 41.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.3039, allocations: 0.5 kB / 0.5051 GB, free: 41.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.01152/0.3154, allocations: 2.95 MB / 0.508 GB, free: 41.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.3155, allocations: 58.39 kB / 0.5081 GB, free: 41.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.3166, allocations: 0.8993 MB / 0.5089 GB, free: 41.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3166, allocations: 36.3 kB / 0.509 GB, free: 41.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.3169, allocations: 0.654 MB / 0.5096 GB, free: 40.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.317, allocations: 217.9 kB / 0.5098 GB, free: 40.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/0.3173, allocations: 247.6 kB / 0.5101 GB, free: 40.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3174, allocations: 398.9 kB / 0.5104 GB, free: 40.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004717/0.3179, allocations: 375.2 kB / 0.5108 GB, free: 39.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007017/0.3186, allocations: 0.9949 MB / 0.5118 GB, free: 39.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.3199, allocations: 1.495 MB / 0.5132 GB, free: 37.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.32, allocations: 7.469 kB / 0.5132 GB, free: 37.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001832/0.3218, allocations: 1.394 MB / 0.5146 GB, free: 37.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.3218, allocations: 14.7 kB / 0.5146 GB, free: 37.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.3219, allocations: 21.53 kB / 0.5146 GB, free: 37.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.161e-05/0.3219, allocations: 30.72 kB / 0.5147 GB, free: 37.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.3231, allocations: 323.8 kB / 0.515 GB, free: 37.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007314/0.3238, allocations: 1.453 MB / 0.5164 GB, free: 35.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/0.3245, allocations: 58.5 kB / 0.5164 GB, free: 35.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/0.3246, allocations: 64.81 kB / 0.5165 GB, free: 35.7 MB / 382.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.0006226/0.3252, allocations: 0.4932 MB / 0.517 GB, free: 35.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.3253, allocations: 86.48 kB / 0.5171 GB, free: 35.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.3255, allocations: 120.2 kB / 0.5172 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3255, allocations: 5.469 kB / 0.5172 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3255, allocations: 0.75 kB / 0.5172 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3255, allocations: 7.625 kB / 0.5172 GB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.329, allocations: 2.167 MB / 0.5193 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.329, allocations: 7.703 kB / 0.5193 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005262/0.3296, allocations: 128.1 kB / 0.5194 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.3296, allocations: 9.859 kB / 0.5194 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.3296, allocations: 18.16 kB / 0.5195 GB, free: 34.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006792/0.3303, allocations: 1.421 MB / 0.5209 GB, free: 32.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.3304, allocations: 6.969 kB / 0.5209 GB, free: 32.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.3313, allocations: 0.8293 MB / 0.5217 GB, free: 32.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.3315, allocations: 168.8 kB / 0.5218 GB, free: 32.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.23e-05/0.3316, allocations: 24.27 kB / 0.5219 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/0.3319, allocations: 12.48 kB / 0.5219 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.18e-05/0.332, allocations: 54.42 kB / 0.5219 GB, free: 31.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.332, allocations: 25.69 kB / 0.5219 GB, free: 31.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007209/0.3327, allocations: 0.5937 MB / 0.5225 GB, free: 31.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3328, allocations: 7.875 kB / 0.5225 GB, free: 31.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001073/0.3338, allocations: 214.4 kB / 0.5227 GB, free: 31.7 MB / 382.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.001062/0.3349, allocations: 1.399 MB / 0.5241 GB, free: 30.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3364, allocations: 0.9412 MB / 0.525 GB, free: 30.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3364, allocations: 6.062 kB / 0.525 GB, free: 30.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003938/0.3368, allocations: 283.9 kB / 0.5253 GB, free: 30.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007242/0.3376, allocations: 130.2 kB / 0.5254 GB, free: 30.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009059/0.3466, allocations: 9.81 MB / 0.535 GB, free: 23.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00058/0.3473, allocations: 1.213 MB / 0.5362 GB, free: 22.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007446/0.348, allocations: 339.6 kB / 0.5365 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003772/0.3484, allocations: 407.3 kB / 0.5369 GB, free: 21.6 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3484, allocations: 0 / 0.5369 GB, free: 21.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6746/1.023, allocations: 16.88 MB / 0.5534 GB, free: 4.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/11.46, allocations: 17.02 kB / 0.5534 GB, free: 4.848 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches