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.001121/0.001121, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.09 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 78.88 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1315, allocations: 62.44 MB / 479.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02507/0.1566, allocations: 25.55 MB / 0.4931 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1709, allocations: 6.345 MB / 0.4993 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005814/0.1767, allocations: 103.8 kB / 0.4994 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002773/0.1795, allocations: 1.141 MB / 0.5005 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004437/0.184, allocations: 1.62 MB / 0.5021 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.1855, allocations: 0.5108 MB / 0.5026 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2647/0.4501, allocations: 5.479 MB / 0.5079 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003069/0.4532, allocations: 1.744 MB / 0.5096 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.4555, allocations: 0.9946 MB / 0.5106 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.4586, allocations: 1.776 MB / 0.5124 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007087/0.4594, allocations: 154 kB / 0.5125 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.4627, allocations: 1.308 MB / 0.5138 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002165/0.4649, allocations: 1.522 MB / 0.5153 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001967/0.4668, allocations: 1.785 MB / 0.517 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006086/0.4729, allocations: 5.875 MB / 0.5227 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.473, allocations: 0 / 0.5227 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.473, allocations: 0 / 0.5227 GB, free: 9.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001033/0.4731, allocations: 1.344 kB / 0.5227 GB, free: 9.719 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.006834/0.4799, allocations: 4.098 MB / 0.5267 GB, free: 7.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.48, allocations: 10.19 kB / 0.5268 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006859/0.4807, allocations: 0.6905 MB / 0.5274 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01725/0.4979, allocations: 6.152 MB / 0.5334 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005484/0.5034, allocations: 2.599 MB / 0.536 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.5036, allocations: 180.7 kB / 0.5362 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008433/0.5044, allocations: 310.7 kB / 0.5364 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.5209, allocations: 10.72 MB / 0.5469 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.087e-05/0.521, allocations: 24.94 kB / 0.5469 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003978/0.5214, allocations: 111.4 kB / 0.547 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003639/0.5251, allocations: 2.466 MB / 0.5495 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.5442, allocations: 10.17 MB / 0.5594 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05398/0.5982, allocations: 35.68 MB / 0.5942 GB, free: 8.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0119/0.6102, allocations: 5.603 MB / 0.5997 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003393/0.6136, allocations: 2.331 MB / 0.602 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001651/0.6153, allocations: 1.874 MB / 0.6038 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.6153, allocations: 56.5 kB / 0.6039 GB, free: 14.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=224): time 6.042e-06/0.6154, allocations: 0 / 0.6039 GB, free: 14.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.03888/0.6542, allocations: 14.95 MB / 0.6185 GB, free: 15.21 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001798/0.6561, allocations: 1.536 MB / 0.62 GB, free: 13.53 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007997/0.6641, allocations: 2.799 MB / 0.6227 GB, free: 10.71 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006949/0.6648, allocations: 53.7 kB / 0.6227 GB, free: 10.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002592/0.6674, allocations: 2.677 MB / 0.6254 GB, free: 7.977 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001688/0.6692, allocations: 0.8571 MB / 0.6262 GB, free: 7.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003702/0.6729, allocations: 1.1 MB / 0.6273 GB, free: 6.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.673, allocations: 301.1 kB / 0.6276 GB, free: 5.723 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004616/0.6776, allocations: 2.626 MB / 0.6301 GB, free: 3.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006538/0.6842, allocations: 5.629 MB / 0.6356 GB, free: 12.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/0.6962, allocations: 8.942 MB / 0.6443 GB, free: 2.062 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.6964, allocations: 31.94 kB / 0.6444 GB, free: 2.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06197/0.7583, allocations: 17.13 MB / 0.6611 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.7585, allocations: 52.03 kB / 0.6612 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04207/0.8006, allocations: 10.63 MB / 0.6715 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04378/0.8444, allocations: 8.643 MB / 0.68 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005114/0.8496, allocations: 1.298 MB / 0.6812 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/0.8768, allocations: 15.65 MB / 0.6965 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005015/0.8819, allocations: 423.4 kB / 0.6969 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/0.8833, allocations: 323.9 kB / 0.6972 GB, free: 11.63 MB / 0.545 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.005488/0.8888, allocations: 2.018 MB / 0.6992 GB, free: 9.602 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007928/0.8896, allocations: 268.4 kB / 0.6995 GB, free: 9.336 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/0.8998, allocations: 5.116 MB / 0.7045 GB, free: 4.191 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2504/1.15, allocations: 4.397 MB / 0.7088 GB, free: 195.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.15, allocations: 2.875 kB / 0.7088 GB, free: 195.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.788e-05/1.15, allocations: 14.64 kB / 0.7088 GB, free: 195.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/1.174, allocations: 12.94 MB / 0.7214 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.174, allocations: 7.719 kB / 0.7214 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/1.176, allocations: 459.1 kB / 0.7219 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003083/1.179, allocations: 0.9355 MB / 0.7228 GB, free: 192.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/1.179, allocations: 48.81 kB / 0.7228 GB, free: 192.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005828/1.185, allocations: 5.461 MB / 0.7281 GB, free: 189.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008565/1.186, allocations: 1.462 MB / 0.7296 GB, free: 187.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0119/1.198, allocations: 7.731 MB / 0.7371 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009114/1.199, allocations: 332 kB / 0.7374 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007237/1.199, allocations: 39.72 kB / 0.7375 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/1.201, allocations: 194.7 kB / 0.7377 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/1.201, allocations: 150.5 kB / 0.7378 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/1.202, allocations: 68.55 kB / 0.7379 GB, free: 184.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002399/1.204, allocations: 1.726 MB / 0.7396 GB, free: 184.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/1.204, allocations: 0 / 0.7396 GB, free: 184.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004474/1.208, allocations: 1.078 MB / 0.7406 GB, free: 184.2 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.009533/1.218, allocations: 8.39 MB / 0.7488 GB, free: 178.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009033/1.227, allocations: 6.527 MB / 0.7552 GB, free: 172.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.227, allocations: 0 / 0.7552 GB, free: 172.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/1.23, allocations: 2.521 MB / 0.7576 GB, free: 170.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/1.232, allocations: 360.7 kB / 0.758 GB, free: 170.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1236/1.356, allocations: 61.55 MB / 0.8181 GB, free: 103.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003379/1.359, allocations: 3.155 MB / 0.8212 GB, free: 100.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004033/1.363, allocations: 2.06 MB / 0.8232 GB, free: 98.06 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/1.366, allocations: 1.655 MB / 0.8248 GB, free: 96.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.543e-06/1.366, allocations: 0 / 0.8248 GB, free: 96.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09539/1.461, allocations: 72.22 MB / 0.8953 GB, free: 24.32 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/1.461, allocations: 237.9 kB / 0.8956 GB, free: 24.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.422/4.883, allocations: 0 / 0.8956 GB, free: 24.05 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Spherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches