Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.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.JointRRR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001207, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007681/0.0007681, allocations: 96.97 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2916/0.2916, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002732, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2811, allocations: 62.97 MB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.02966/0.3108, allocations: 46.1 MB / 0.561 GB, free: 4.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02152/0.3323, allocations: 9.869 MB / 0.5706 GB, free: 13.46 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008991/0.3413, allocations: 206.8 kB / 0.5708 GB, free: 13.44 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007367/0.3487, allocations: 2.232 MB / 0.573 GB, free: 12.63 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01801/0.3668, allocations: 6.183 MB / 0.579 GB, free: 8.691 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003718/0.3705, allocations: 0.7371 MB / 0.5798 GB, free: 7.953 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004124/0.3747, allocations: 3.013 MB / 0.5827 GB, free: 4.934 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008917/0.3836, allocations: 6.882 MB / 0.5894 GB, free: 13.95 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.3853, allocations: 0.903 MB / 0.5903 GB, free: 13.05 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002302/0.3876, allocations: 1.472 MB / 0.5917 GB, free: 11.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005983/0.3882, allocations: 140 kB / 0.5919 GB, free: 11.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.3903, allocations: 0.9088 MB / 0.5928 GB, free: 10.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.3919, allocations: 1.364 MB / 0.5941 GB, free: 9.156 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.3942, allocations: 1.532 MB / 0.5956 GB, free: 7.609 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005669/0.3998, allocations: 5.775 MB / 0.6012 GB, free: 1.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3999, allocations: 0 / 0.6012 GB, free: 1.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3999, allocations: 0 / 0.6012 GB, free: 1.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001997/0.4001, allocations: 0 / 0.6012 GB, free: 1.82 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.008654/0.4087, allocations: 3.594 MB / 0.6047 GB, free: 14.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4088, allocations: 8.031 kB / 0.6047 GB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.4104, allocations: 0.5861 MB / 0.6053 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002973/0.4134, allocations: 0.6633 MB / 0.606 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00396/0.4174, allocations: 2.215 MB / 0.6081 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.4176, allocations: 238.2 kB / 0.6084 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005734/0.4182, allocations: 315.9 kB / 0.6087 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.4364, allocations: 9.434 MB / 0.6179 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.879e-05/0.4365, allocations: 19.81 kB / 0.6179 GB, free: 308 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003253/0.4368, allocations: 135.9 kB / 0.618 GB, free: 172 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/0.4387, allocations: 1.181 MB / 0.6192 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01852/0.4572, allocations: 8.644 MB / 0.6276 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03856/0.4958, allocations: 27.27 MB / 0.6542 GB, free: 10.55 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009244/0.5051, allocations: 3.074 MB / 0.6572 GB, free: 7.457 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/0.5073, allocations: 1.663 MB / 0.6589 GB, free: 5.789 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.5198, allocations: 8.986 MB / 0.6676 GB, free: 12.32 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.5199, allocations: 43.56 kB / 0.6677 GB, free: 12.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=93): time 3.576e-06/0.5199, allocations: 0 / 0.6677 GB, free: 12.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=110): time 0.02469/0.5446, allocations: 7.7 MB / 0.6752 GB, free: 4.555 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.5447, allocations: 64.34 kB / 0.6753 GB, free: 4.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004423/0.5492, allocations: 2.596 MB / 0.6778 GB, free: 1.859 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.5494, allocations: 41.7 kB / 0.6778 GB, free: 1.812 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2399/0.7892, allocations: 2.136 MB / 0.6799 GB, free: 133.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000737/0.79, allocations: 434.6 kB / 0.6803 GB, free: 133.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/0.7904, allocations: 75.22 kB / 0.6804 GB, free: 133.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.7907, allocations: 464.4 kB / 0.6809 GB, free: 133.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002468/0.7932, allocations: 1.416 MB / 0.6822 GB, free: 132.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002574/0.7957, allocations: 3.491 MB / 0.6856 GB, free: 129.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004346/0.8001, allocations: 5.168 MB / 0.6907 GB, free: 125.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.629e-05/0.8001, allocations: 20.97 kB / 0.6907 GB, free: 125.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.006028/0.8062, allocations: 4.886 MB / 0.6955 GB, free: 123.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.8063, allocations: 35.47 kB / 0.6955 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.608e-05/0.8063, allocations: 76.25 kB / 0.6956 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.504e-05/0.8064, allocations: 99.62 kB / 0.6957 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/0.809, allocations: 0.8856 MB / 0.6966 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-05/0.8091, allocations: 142.8 kB / 0.6967 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.8111, allocations: 217.8 kB / 0.6969 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/0.8114, allocations: 213.1 kB / 0.6971 GB, free: 123.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 59 (n1_a1.arrowLine.twoHeadedArrow,n1_a1.headAtOrigin,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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 (476): * Single equations (assignments): 475 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002042/0.8134, allocations: 1.588 MB / 0.6987 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.8137, allocations: 220.9 kB / 0.6989 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002739/0.8164, allocations: 2.095 MB / 0.7009 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.8165, allocations: 10.84 kB / 0.7009 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.8165, allocations: 3.938 kB / 0.7009 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.8165, allocations: 6.75 kB / 0.7009 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008066/0.8246, allocations: 6.059 MB / 0.7068 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.901e-05/0.8246, allocations: 12.94 kB / 0.7069 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009413/0.8256, allocations: 259.4 kB / 0.7071 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.888e-05/0.8256, allocations: 19.25 kB / 0.7071 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-05/0.8257, allocations: 40.56 kB / 0.7072 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.922e-05/0.8257, allocations: 28.67 kB / 0.7072 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.219e-05/0.8257, allocations: 18.81 kB / 0.7072 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.8281, allocations: 2.167 MB / 0.7093 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004683/0.8285, allocations: 317.5 kB / 0.7096 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.8288, allocations: 42.64 kB / 0.7097 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008122/0.8296, allocations: 64.02 kB / 0.7097 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.8298, allocations: 118.4 kB / 0.7098 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.624e-05/0.8299, allocations: 54.39 kB / 0.7099 GB, free: 116.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002336/0.8323, allocations: 1.644 MB / 0.7115 GB, free: 115.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8323, allocations: 0 / 0.7115 GB, free: 115.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002886/0.8352, allocations: 0.6865 MB / 0.7122 GB, free: 115.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * 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 (136): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002954/0.8381, allocations: 2.816 MB / 0.7149 GB, free: 113.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004821/0.843, allocations: 3.028 MB / 0.7179 GB, free: 112.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.843, allocations: 2.125 kB / 0.7179 GB, free: 112.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.8441, allocations: 0.8213 MB / 0.7187 GB, free: 112.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005148/0.8493, allocations: 342.9 kB / 0.719 GB, free: 112.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03501/0.8843, allocations: 21.92 MB / 0.7404 GB, free: 93.51 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003008/0.8873, allocations: 2.666 MB / 0.743 GB, free: 91.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/0.8891, allocations: 1.393 MB / 0.7444 GB, free: 90.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/0.8891, allocations: 0 / 0.7444 GB, free: 90.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.214/6.103, allocations: 51.76 MB / 0.7949 GB, free: 38.7 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches