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.001464/0.001464, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.09 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 75.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3295, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.009809/0.3394, allocations: 7.598 MB / 0.5379 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005944/0.3454, allocations: 2.58 MB / 0.5405 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.3465, allocations: 32.72 kB / 0.5405 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.3487, allocations: 0.8945 MB / 0.5414 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.3498, allocations: 309 kB / 0.5416 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.3508, allocations: 321.5 kB / 0.542 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.3522, allocations: 0.728 MB / 0.5427 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.3536, allocations: 0.8196 MB / 0.5435 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007013/0.3543, allocations: 362.8 kB / 0.5438 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.3555, allocations: 0.6562 MB / 0.5445 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003387/0.3558, allocations: 104.8 kB / 0.5446 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001247/0.3571, allocations: 0.5082 MB / 0.5451 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007372/0.3579, allocations: 0.492 MB / 0.5455 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009446/0.3588, allocations: 0.5695 MB / 0.5461 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002587/0.3614, allocations: 1.768 MB / 0.5478 GB, free: 36 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3614, allocations: 0 / 0.5478 GB, free: 36 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3614, allocations: 0 / 0.5478 GB, free: 36 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.943e-05/0.3615, allocations: 0 / 0.5478 GB, free: 36 kB / 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.00377/0.3653, allocations: 1.627 MB / 0.5494 GB, free: 14.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3653, allocations: 8.031 kB / 0.5494 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.3656, allocations: 182.5 kB / 0.5496 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006912/0.3663, allocations: 163.2 kB / 0.5497 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.3674, allocations: 0.6357 MB / 0.5504 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.413e-05/0.3674, allocations: 62.09 kB / 0.5504 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.3676, allocations: 87.95 kB / 0.5505 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004986/0.3726, allocations: 2.666 MB / 0.5531 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.3727, allocations: 7.938 kB / 0.5531 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.661e-05/0.3728, allocations: 35.97 kB / 0.5531 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004721/0.3733, allocations: 389.7 kB / 0.5535 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004922/0.3782, allocations: 2.365 MB / 0.5558 GB, free: 7.574 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009554/0.3878, allocations: 8.236 MB / 0.5639 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003643/0.3915, allocations: 0.9717 MB / 0.5648 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003855/0.3919, allocations: 264.7 kB / 0.5651 GB, free: 13.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001496/0.3934, allocations: 1.722 MB / 0.5668 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.3934, allocations: 38.56 kB / 0.5668 GB, free: 11.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=44): time 2.796e-06/0.3934, allocations: 0 / 0.5668 GB, free: 11.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=58): time 0.01112/0.4046, allocations: 2.951 MB / 0.5697 GB, free: 8.824 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.4047, allocations: 59.97 kB / 0.5697 GB, free: 8.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.4061, allocations: 0.8951 MB / 0.5706 GB, free: 7.852 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.4061, allocations: 33.7 kB / 0.5706 GB, free: 7.812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.4066, allocations: 0.6642 MB / 0.5713 GB, free: 7.137 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.4068, allocations: 213 kB / 0.5715 GB, free: 6.926 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003223/0.4072, allocations: 246.6 kB / 0.5717 GB, free: 6.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4073, allocations: 402.7 kB / 0.5721 GB, free: 6.277 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/0.4079, allocations: 366.4 kB / 0.5725 GB, free: 5.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.4089, allocations: 1.003 MB / 0.5734 GB, free: 4.609 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.4107, allocations: 1.491 MB / 0.5749 GB, free: 2.809 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/0.4107, allocations: 7.938 kB / 0.5749 GB, free: 2.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002251/0.413, allocations: 1.397 MB / 0.5763 GB, free: 1.395 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.413, allocations: 19.97 kB / 0.5763 GB, free: 1.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.4131, allocations: 24 kB / 0.5763 GB, free: 1.352 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.016e-05/0.4131, allocations: 28 kB / 0.5763 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.4143, allocations: 323.4 kB / 0.5766 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.4156, allocations: 1.444 MB / 0.5781 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/0.4164, allocations: 55.89 kB / 0.5781 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.4166, allocations: 72.06 kB / 0.5782 GB, free: 15.3 MB / 446.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.0008066/0.4174, allocations: 0.4971 MB / 0.5787 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.4176, allocations: 82.97 kB / 0.5787 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.4178, allocations: 116.5 kB / 0.5789 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.4178, allocations: 4 kB / 0.5789 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4178, allocations: 0 / 0.5789 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.4179, allocations: 0 / 0.5789 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/0.4216, allocations: 2.183 MB / 0.581 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/0.4217, allocations: 4 kB / 0.581 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/0.4222, allocations: 123.8 kB / 0.5811 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.33e-05/0.4222, allocations: 8 kB / 0.5811 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.4223, allocations: 16 kB / 0.5811 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009762/0.4233, allocations: 1.433 MB / 0.5825 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.4233, allocations: 8 kB / 0.5825 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.4243, allocations: 0.8346 MB / 0.5834 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.4246, allocations: 164.1 kB / 0.5835 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.4248, allocations: 23.92 kB / 0.5835 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.4252, allocations: 16 kB / 0.5835 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.4252, allocations: 55.83 kB / 0.5836 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.4253, allocations: 20 kB / 0.5836 GB, free: 9.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007872/0.4261, allocations: 0.5927 MB / 0.5842 GB, free: 8.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.674e-06/0.4261, allocations: 0 / 0.5842 GB, free: 8.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001053/0.4271, allocations: 215.9 kB / 0.5844 GB, free: 8.52 MB / 446.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.001361/0.4285, allocations: 1.402 MB / 0.5858 GB, free: 7.008 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.43, allocations: 0.8823 MB / 0.5866 GB, free: 6.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.43, allocations: 4 kB / 0.5866 GB, free: 6.125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004447/0.4305, allocations: 277.8 kB / 0.5869 GB, free: 5.855 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008276/0.4313, allocations: 137.9 kB / 0.587 GB, free: 5.727 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4442, allocations: 9.377 MB / 0.5962 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.4453, allocations: 1.22 MB / 0.5974 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008308/0.4462, allocations: 343.6 kB / 0.5977 GB, free: 9.875 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005493/0.4467, allocations: 403.3 kB / 0.5981 GB, free: 9.48 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4467, allocations: 0 / 0.5981 GB, free: 9.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0437/0.4904, allocations: 17.46 MB / 0.6152 GB, free: 8.176 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.14/15.63, allocations: 8 kB / 0.6152 GB, free: 8.168 MB / 478.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