Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.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.JointRRP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009736/0.0009735, allocations: 197.4 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 243.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007906/0.0007907, allocations: 99.67 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2947/0.2947, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 15.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2991, allocations: 62.96 MB / 0.516 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.03202/0.3312, allocations: 46.17 MB / 0.561 GB, free: 4.203 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0226/0.3538, allocations: 9.665 MB / 0.5705 GB, free: 13.56 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009542/0.3634, allocations: 210.1 kB / 0.5707 GB, free: 13.53 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007929/0.3714, allocations: 2.23 MB / 0.5729 GB, free: 12.73 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0198/0.3912, allocations: 6.179 MB / 0.5789 GB, free: 8.82 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003806/0.395, allocations: 0.6079 MB / 0.5795 GB, free: 8.215 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004417/0.3995, allocations: 2.943 MB / 0.5824 GB, free: 5.266 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009762/0.4093, allocations: 6.874 MB / 0.5891 GB, free: 14.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.4113, allocations: 0.9185 MB / 0.59 GB, free: 13.37 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002412/0.4137, allocations: 1.453 MB / 0.5914 GB, free: 11.91 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.4144, allocations: 128 kB / 0.5915 GB, free: 11.79 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0019/0.4163, allocations: 0.7605 MB / 0.5923 GB, free: 11.03 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001782/0.4181, allocations: 1.336 MB / 0.5936 GB, free: 9.688 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002902/0.421, allocations: 1.505 MB / 0.595 GB, free: 8.168 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007174/0.4282, allocations: 5.568 MB / 0.6005 GB, free: 2.586 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.4283, allocations: 0 / 0.6005 GB, free: 2.586 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.4283, allocations: 0 / 0.6005 GB, free: 2.586 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002478/0.4285, allocations: 0 / 0.6005 GB, free: 2.586 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.008683/0.4372, allocations: 3.406 MB / 0.6038 GB, free: 15.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.4373, allocations: 12.03 kB / 0.6038 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.4391, allocations: 0.582 MB / 0.6044 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002804/0.4419, allocations: 0.6204 MB / 0.605 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004338/0.4463, allocations: 2.106 MB / 0.607 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.4465, allocations: 246.2 kB / 0.6073 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009032/0.4474, allocations: 315.9 kB / 0.6076 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.4637, allocations: 8.195 MB / 0.6156 GB, free: 2.652 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-05/0.4638, allocations: 11.88 kB / 0.6156 GB, free: 2.641 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.4642, allocations: 139.9 kB / 0.6157 GB, free: 2.504 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001593/0.4658, allocations: 1.088 MB / 0.6168 GB, free: 1.414 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.4799, allocations: 6.696 MB / 0.6233 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03122/0.5112, allocations: 24.31 MB / 0.6471 GB, free: 1.859 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005598/0.5168, allocations: 1.99 MB / 0.649 GB, free: 15.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.5181, allocations: 0.888 MB / 0.6499 GB, free: 14.94 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007787/0.5259, allocations: 6.288 MB / 0.656 GB, free: 8.125 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.5259, allocations: 39.22 kB / 0.6561 GB, free: 8.078 MB / 474.7 MB Notification: Performance of pre-optimization done (n=80): time 2.715e-06/0.5259, allocations: 0 / 0.6561 GB, free: 8.078 MB / 474.7 MB Notification: Performance of matching and sorting (n=99): time 0.01428/0.5402, allocations: 5.711 MB / 0.6616 GB, free: 2.328 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.5403, allocations: 123.7 kB / 0.6617 GB, free: 2.184 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.5432, allocations: 2.422 MB / 0.6641 GB, free: 15.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.5432, allocations: 41.7 kB / 0.6642 GB, free: 15.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.5445, allocations: 2.175 MB / 0.6663 GB, free: 13.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.5448, allocations: 391.1 kB / 0.6667 GB, free: 13.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.5449, allocations: 68 kB / 0.6667 GB, free: 13.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.5451, allocations: 457.4 kB / 0.6672 GB, free: 12.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.5464, allocations: 0.9477 MB / 0.6681 GB, free: 11.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.5488, allocations: 3.025 MB / 0.671 GB, free: 7.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0041/0.553, allocations: 4.327 MB / 0.6753 GB, free: 2.211 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-05/0.553, allocations: 20 kB / 0.6753 GB, free: 2.191 MB / 490.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.2113/0.7643, allocations: 3.906 MB / 0.6791 GB, free: 128.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.701e-05/0.7644, allocations: 38.38 kB / 0.6791 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.7645, allocations: 74.48 kB / 0.6792 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001249/0.7647, allocations: 97.91 kB / 0.6793 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.7669, allocations: 0.7997 MB / 0.6801 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.809e-05/0.767, allocations: 142.3 kB / 0.6802 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.7687, allocations: 177.8 kB / 0.6804 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.7689, allocations: 203.5 kB / 0.6806 GB, free: 128.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 56 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointRRP.jointUSP.prismatic.positiveBranch,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],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[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 (449): * Single equations (assignments): 448 * 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.002005/0.771, allocations: 1.591 MB / 0.6821 GB, free: 128.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.7712, allocations: 215.6 kB / 0.6823 GB, free: 128.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.7728, allocations: 1.201 MB / 0.6835 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.7728, allocations: 9.531 kB / 0.6835 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.7728, allocations: 0 / 0.6835 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.7729, allocations: 6.422 kB / 0.6835 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006674/0.7795, allocations: 5.698 MB / 0.6891 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.7796, allocations: 20.78 kB / 0.6891 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006495/0.7803, allocations: 217.2 kB / 0.6893 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.095e-05/0.7803, allocations: 20 kB / 0.6893 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/0.7804, allocations: 37.66 kB / 0.6894 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.163e-05/0.7804, allocations: 34.11 kB / 0.6894 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/0.7804, allocations: 26.23 kB / 0.6894 GB, free: 124.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.7821, allocations: 1.917 MB / 0.6913 GB, free: 123.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004393/0.7825, allocations: 307.6 kB / 0.6916 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.7827, allocations: 46.17 kB / 0.6916 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006848/0.7834, allocations: 38.56 kB / 0.6917 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.7836, allocations: 131.5 kB / 0.6918 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-05/0.7837, allocations: 50.25 kB / 0.6918 GB, free: 123.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001971/0.7856, allocations: 1.584 MB / 0.6934 GB, free: 122.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.7857, allocations: 0 / 0.6934 GB, free: 122.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002674/0.7883, allocations: 0.6206 MB / 0.694 GB, free: 122.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * 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 (123): * Single equations (assignments): 123 * 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.002031/0.7904, allocations: 2.554 MB / 0.6965 GB, free: 120.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.7937, allocations: 2.224 MB / 0.6987 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/0.7938, allocations: 3.094 kB / 0.6987 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.7945, allocations: 0.5626 MB / 0.6992 GB, free: 119.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006476/0.801, allocations: 356.5 kB / 0.6996 GB, free: 119.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03535/0.8363, allocations: 20.32 MB / 0.7194 GB, free: 105.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003082/0.8395, allocations: 2.675 MB / 0.722 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001538/0.841, allocations: 1.385 MB / 0.7234 GB, free: 103.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.523e-06/0.841, allocations: 4 kB / 0.7234 GB, free: 103.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.291/6.132, allocations: 50.45 MB / 0.7726 GB, free: 57.71 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointRRP.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRP/JointRRP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointRRP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches