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.0008117/0.0008117, allocations: 96.83 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009287/0.0009287, allocations: 206 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.157/1.157, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1646/0.1646, allocations: 46.19 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002105/0.0002106, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08733, allocations: 63.57 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.01439/0.1018, allocations: 17.32 MB / 0.4888 GB, free: 2.676 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006603/0.1084, allocations: 4.218 MB / 0.4929 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009167/0.1093, allocations: 67.88 kB / 0.493 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.1097, allocations: 127.2 kB / 0.4931 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000518/0.1102, allocations: 278.6 kB / 0.4933 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.1108, allocations: 303.5 kB / 0.4936 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008934/0.1117, allocations: 1.106 MB / 0.4947 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.1131, allocations: 1.217 MB / 0.4959 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.1133, allocations: 278.7 kB / 0.4962 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006932/0.114, allocations: 0.6113 MB / 0.4968 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-05/0.1141, allocations: 56 kB / 0.4968 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006547/0.1148, allocations: 0.5225 MB / 0.4973 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003716/0.1152, allocations: 458.7 kB / 0.4978 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004014/0.1156, allocations: 0.5298 MB / 0.4983 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.1169, allocations: 1.658 MB / 0.4999 GB, free: 7.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1169, allocations: 0 / 0.4999 GB, free: 7.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1169, allocations: 0 / 0.4999 GB, free: 7.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.1169, allocations: 0 / 0.4999 GB, free: 7.203 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: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.002339/0.1193, allocations: 1.432 MB / 0.5013 GB, free: 5.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1193, allocations: 12.88 kB / 0.5013 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001888/0.1195, allocations: 182.5 kB / 0.5015 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006076/0.1201, allocations: 163.3 kB / 0.5016 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00077/0.1209, allocations: 0.6201 MB / 0.5022 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.1209, allocations: 62.09 kB / 0.5023 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.1211, allocations: 83.95 kB / 0.5024 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004484/0.1256, allocations: 2.685 MB / 0.505 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.1257, allocations: 11.84 kB / 0.505 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.491e-05/0.1257, allocations: 47.91 kB / 0.5051 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004333/0.1262, allocations: 373.8 kB / 0.5054 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1665/0.2927, allocations: 2.368 MB / 0.5077 GB, free: 19.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007379/0.3001, allocations: 8.259 MB / 0.5158 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003637/0.3038, allocations: 0.988 MB / 0.5168 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000352/0.3041, allocations: 261.5 kB / 0.517 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/0.3052, allocations: 1.725 MB / 0.5187 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3053, allocations: 44.67 kB / 0.5187 GB, free: 13.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.054e-06/0.3053, allocations: 0 / 0.5187 GB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.01078/0.3161, allocations: 2.975 MB / 0.5216 GB, free: 13.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.3161, allocations: 61.5 kB / 0.5217 GB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.3172, allocations: 0.9044 MB / 0.5226 GB, free: 13.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.3172, allocations: 31.58 kB / 0.5226 GB, free: 13.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/0.3175, allocations: 0.6585 MB / 0.5233 GB, free: 12.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.3176, allocations: 213.2 kB / 0.5235 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.3177, allocations: 122.5 kB / 0.5236 GB, free: 12.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.998e-05/0.3179, allocations: 403.9 kB / 0.524 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.3183, allocations: 369.9 kB / 0.5243 GB, free: 12.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006846/0.319, allocations: 0.9922 MB / 0.5253 GB, free: 11.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/0.3203, allocations: 1.494 MB / 0.5267 GB, free: 10.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.3203, allocations: 6.062 kB / 0.5268 GB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001657/0.3219, allocations: 1.395 MB / 0.5281 GB, free: 9.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.322, allocations: 15.16 kB / 0.5281 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.322, allocations: 23.12 kB / 0.5282 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.549e-05/0.322, allocations: 29.47 kB / 0.5282 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.3231, allocations: 322.1 kB / 0.5285 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006554/0.3237, allocations: 1.36 MB / 0.5298 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005782/0.3243, allocations: 58.41 kB / 0.5299 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.3244, allocations: 67.06 kB / 0.5299 GB, free: 8.555 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.0005007/0.3249, allocations: 0.4918 MB / 0.5304 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.325, allocations: 84.88 kB / 0.5305 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.3252, allocations: 121.7 kB / 0.5306 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3252, allocations: 6.188 kB / 0.5306 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3253, allocations: 0 / 0.5306 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3253, allocations: 3.125 kB / 0.5306 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.3279, allocations: 2.177 MB / 0.5327 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3279, allocations: 5.375 kB / 0.5328 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.3284, allocations: 129.2 kB / 0.5329 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.3284, allocations: 9.375 kB / 0.5329 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.3284, allocations: 17.28 kB / 0.5329 GB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000441/0.3289, allocations: 1.338 MB / 0.5342 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.3289, allocations: 9.969 kB / 0.5342 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006777/0.3296, allocations: 0.8275 MB / 0.535 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3297, allocations: 168.5 kB / 0.5352 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.3298, allocations: 17.66 kB / 0.5352 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.3301, allocations: 16.09 kB / 0.5352 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.3301, allocations: 55.88 kB / 0.5353 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.3302, allocations: 20.53 kB / 0.5353 GB, free: 4.996 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005743/0.3308, allocations: 0.5944 MB / 0.5359 GB, free: 4.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3308, allocations: 0 / 0.5359 GB, free: 4.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007801/0.3315, allocations: 213.6 kB / 0.5361 GB, free: 4.73 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.0008343/0.3324, allocations: 1.395 MB / 0.5374 GB, free: 3.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009782/0.3334, allocations: 0.8686 MB / 0.5383 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3334, allocations: 0 / 0.5383 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003462/0.3337, allocations: 290.1 kB / 0.5386 GB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.335, allocations: 114.7 kB / 0.5387 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009348/0.3443, allocations: 10.26 MB / 0.5487 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008166/0.3452, allocations: 1.22 MB / 0.5499 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007557/0.3459, allocations: 345.2 kB / 0.5502 GB, free: 9.539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.3464, allocations: 402.4 kB / 0.5506 GB, free: 9.148 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3464, allocations: 0 / 0.5506 GB, free: 9.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02597/0.3724, allocations: 16.22 MB / 0.5664 GB, free: 9.133 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.3726, allocations: 204.4 kB / 0.5666 GB, free: 8.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.242, allocations: 0 / 0.5666 GB, free: 8.875 MB / 414.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