Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009937/0.0009937, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007057/0.0007057, allocations: 106.6 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2894/0.2894, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.000267, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.293, allocations: 62.97 MB / 0.516 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.01211/0.3052, allocations: 16.28 MB / 0.5319 GB, free: 25.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007341/0.3126, allocations: 4.033 MB / 0.5358 GB, free: 22.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002697/0.3153, allocations: 67.19 kB / 0.5359 GB, free: 22.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.3171, allocations: 0.6475 MB / 0.5365 GB, free: 22.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004408/0.3216, allocations: 1.84 MB / 0.5383 GB, free: 21.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000993/0.3226, allocations: 265.6 kB / 0.5385 GB, free: 21.67 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.3236, allocations: 0.9367 MB / 0.5395 GB, free: 21.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.3252, allocations: 1.193 MB / 0.5406 GB, free: 20.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004813/0.3257, allocations: 292 kB / 0.5409 GB, free: 20.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007643/0.3264, allocations: 0.6051 MB / 0.5415 GB, free: 20.45 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.3267, allocations: 64.39 kB / 0.5416 GB, free: 20.44 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008416/0.3275, allocations: 0.5135 MB / 0.5421 GB, free: 20.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004286/0.328, allocations: 446.8 kB / 0.5425 GB, free: 20.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.3286, allocations: 0.5039 MB / 0.543 GB, free: 19.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.3302, allocations: 1.341 MB / 0.5443 GB, free: 19.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.3302, allocations: 0 / 0.5443 GB, free: 19.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3302, allocations: 0 / 0.5443 GB, free: 19.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.618e-05/0.3303, allocations: 1.375 kB / 0.5443 GB, free: 19.54 MB / 378.7 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.003584/0.3339, allocations: 1.438 MB / 0.5457 GB, free: 18.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3339, allocations: 13.56 kB / 0.5457 GB, free: 18.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004577/0.3344, allocations: 184 kB / 0.5459 GB, free: 18.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008577/0.3353, allocations: 163.9 kB / 0.546 GB, free: 18.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.3365, allocations: 0.6295 MB / 0.5466 GB, free: 18.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.3365, allocations: 64.12 kB / 0.5467 GB, free: 18.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.3368, allocations: 80.73 kB / 0.5468 GB, free: 18.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00575/0.3425, allocations: 2.682 MB / 0.5494 GB, free: 16.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.312e-05/0.3426, allocations: 7.188 kB / 0.5494 GB, free: 16.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.3428, allocations: 34.14 kB / 0.5494 GB, free: 16.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005787/0.3433, allocations: 380.8 kB / 0.5498 GB, free: 16.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005783/0.3491, allocations: 2.369 MB / 0.5521 GB, free: 16.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00905/0.3582, allocations: 8.272 MB / 0.5602 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003683/0.362, allocations: 0.9912 MB / 0.5612 GB, free: 9.293 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.3624, allocations: 255.7 kB / 0.5614 GB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001185/0.3636, allocations: 1.727 MB / 0.5631 GB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.3636, allocations: 41.39 kB / 0.5631 GB, free: 7.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.595e-06/0.3636, allocations: 0 / 0.5631 GB, free: 7.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.01101/0.3746, allocations: 2.966 MB / 0.566 GB, free: 5.273 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.3747, allocations: 59.97 kB / 0.5661 GB, free: 5.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.3758, allocations: 0.899 MB / 0.567 GB, free: 4.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.127e-05/0.3759, allocations: 33.7 kB / 0.567 GB, free: 4.258 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.3762, allocations: 0.6564 MB / 0.5676 GB, free: 3.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.3763, allocations: 225 kB / 0.5679 GB, free: 3.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/0.3764, allocations: 24 kB / 0.5679 GB, free: 3.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3765, allocations: 406.7 kB / 0.5683 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004803/0.377, allocations: 362.4 kB / 0.5686 GB, free: 2.582 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006701/0.3776, allocations: 0.9913 MB / 0.5696 GB, free: 1.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.3791, allocations: 1.487 MB / 0.571 GB, free: 15.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.3791, allocations: 4 kB / 0.571 GB, free: 15.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002174/0.3813, allocations: 1.389 MB / 0.5724 GB, free: 14.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.3813, allocations: 19.94 kB / 0.5724 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.325e-05/0.3814, allocations: 24.09 kB / 0.5724 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.523e-05/0.3814, allocations: 32 kB / 0.5725 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.3826, allocations: 315.5 kB / 0.5728 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.3838, allocations: 1.357 MB / 0.5741 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3849, allocations: 55.89 kB / 0.5741 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.385, allocations: 68 kB / 0.5742 GB, free: 12.1 MB / 394.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009459/0.3859, allocations: 0.4933 MB / 0.5747 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.3862, allocations: 86.86 kB / 0.5748 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.3865, allocations: 112.7 kB / 0.5749 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3865, allocations: 11.98 kB / 0.5749 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3865, allocations: 0 / 0.5749 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3865, allocations: 0 / 0.5749 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.3904, allocations: 2.172 MB / 0.577 GB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.3904, allocations: 7.938 kB / 0.577 GB, free: 9.062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004803/0.3909, allocations: 135.9 kB / 0.5772 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.3909, allocations: 8 kB / 0.5772 GB, free: 8.922 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.391, allocations: 16 kB / 0.5772 GB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008096/0.3918, allocations: 1.333 MB / 0.5785 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.3918, allocations: 7.938 kB / 0.5785 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.3928, allocations: 0.8298 MB / 0.5793 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002498/0.393, allocations: 164 kB / 0.5795 GB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.3932, allocations: 23.98 kB / 0.5795 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.3935, allocations: 12 kB / 0.5795 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3937, allocations: 59.7 kB / 0.5795 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/0.3937, allocations: 24 kB / 0.5796 GB, free: 6.211 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000778/0.3945, allocations: 0.5888 MB / 0.5801 GB, free: 5.625 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3945, allocations: 0 / 0.5801 GB, free: 5.625 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001058/0.3956, allocations: 224 kB / 0.5804 GB, free: 5.406 MB / 394.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001244/0.3968, allocations: 1.39 MB / 0.5817 GB, free: 3.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.3983, allocations: 0.8671 MB / 0.5826 GB, free: 3.051 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3983, allocations: 0 / 0.5826 GB, free: 3.051 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004514/0.3988, allocations: 280.4 kB / 0.5828 GB, free: 2.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.4003, allocations: 132 kB / 0.583 GB, free: 2.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.4109, allocations: 6.702 MB / 0.5895 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.412, allocations: 1.22 MB / 0.5907 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005543/0.4126, allocations: 403.3 kB / 0.5911 GB, free: 9.758 MB / 410.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4126, allocations: 8 kB / 0.5911 GB, free: 9.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.672/4.085, allocations: 20.19 MB / 0.6108 GB, free: 5.547 MB / 426.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches