Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 199.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007925/0.0007927, allocations: 93.97 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2715/0.2715, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002367, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2832, allocations: 62.96 MB / 0.516 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.02771/0.311, allocations: 41.5 MB / 0.5565 GB, free: 7.492 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.3297, allocations: 8.915 MB / 0.5652 GB, free: 1.387 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009266/0.339, allocations: 189.5 kB / 0.5654 GB, free: 1.359 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007401/0.3465, allocations: 2.028 MB / 0.5674 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01524/0.3618, allocations: 5.627 MB / 0.5729 GB, free: 13.96 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003307/0.3651, allocations: 0.7259 MB / 0.5736 GB, free: 13.49 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003727/0.3689, allocations: 2.719 MB / 0.5762 GB, free: 11.51 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007443/0.3763, allocations: 5.594 MB / 0.5817 GB, free: 5.832 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.3779, allocations: 0.8562 MB / 0.5825 GB, free: 4.973 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.3798, allocations: 1.324 MB / 0.5838 GB, free: 3.645 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004364/0.3803, allocations: 120 kB / 0.5839 GB, free: 3.527 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.3821, allocations: 0.8736 MB / 0.5848 GB, free: 2.652 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.3835, allocations: 1.208 MB / 0.586 GB, free: 1.441 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.3852, allocations: 1.373 MB / 0.5873 GB, free: 56 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004901/0.3901, allocations: 4.617 MB / 0.5918 GB, free: 11.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3901, allocations: 0 / 0.5918 GB, free: 11.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3902, allocations: 8 kB / 0.5918 GB, free: 11.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001751/0.3904, allocations: 0 / 0.5918 GB, free: 11.42 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.007454/0.3978, allocations: 3.241 MB / 0.595 GB, free: 8.113 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3979, allocations: 8.031 kB / 0.595 GB, free: 8.105 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001349/0.3992, allocations: 0.5449 MB / 0.5955 GB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002416/0.4017, allocations: 0.5896 MB / 0.5961 GB, free: 6.957 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003489/0.4052, allocations: 1.794 MB / 0.5978 GB, free: 5.113 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.4053, allocations: 209.4 kB / 0.598 GB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006034/0.406, allocations: 275.8 kB / 0.5983 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/0.4224, allocations: 8.156 MB / 0.6063 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.05e-05/0.4225, allocations: 19.88 kB / 0.6063 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004999/0.423, allocations: 119.9 kB / 0.6064 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001654/0.4247, allocations: 1.13 MB / 0.6075 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.4393, allocations: 6.94 MB / 0.6143 GB, free: 3.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03087/0.4702, allocations: 24.79 MB / 0.6385 GB, free: 10.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006957/0.4772, allocations: 2.266 MB / 0.6407 GB, free: 8.254 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001456/0.4787, allocations: 1.089 MB / 0.6418 GB, free: 7.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009058/0.4878, allocations: 7.094 MB / 0.6487 GB, free: 15.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.4879, allocations: 43.22 kB / 0.6487 GB, free: 15.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=80): time 2.464e-06/0.4879, allocations: 0 / 0.6487 GB, free: 15.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=96): time 0.01654/0.5044, allocations: 5.369 MB / 0.654 GB, free: 10.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.5045, allocations: 60.41 kB / 0.654 GB, free: 9.988 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003413/0.5079, allocations: 2.385 MB / 0.6564 GB, free: 7.574 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.508, allocations: 45.7 kB / 0.6564 GB, free: 7.523 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.5094, allocations: 2.062 MB / 0.6584 GB, free: 5.43 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/0.5098, allocations: 387.1 kB / 0.6588 GB, free: 5.047 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.5099, allocations: 72 kB / 0.6589 GB, free: 4.977 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000277/0.5102, allocations: 453.5 kB / 0.6593 GB, free: 4.527 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.5118, allocations: 1.01 MB / 0.6603 GB, free: 3.516 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002843/0.5147, allocations: 3.174 MB / 0.6634 GB, free: 15.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004858/0.5195, allocations: 4.545 MB / 0.6678 GB, free: 9.648 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.263e-05/0.5196, allocations: 24 kB / 0.6678 GB, free: 9.625 MB / 490.7 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006354/0.526, allocations: 4.086 MB / 0.6718 GB, free: 5.535 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.697e-05/0.526, allocations: 36 kB / 0.6719 GB, free: 5.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.864e-05/0.5261, allocations: 76 kB / 0.6719 GB, free: 5.426 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001402/0.5263, allocations: 104 kB / 0.672 GB, free: 5.324 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002394/0.5287, allocations: 0.8351 MB / 0.6729 GB, free: 4.488 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001257/0.5288, allocations: 155.4 kB / 0.673 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/0.5307, allocations: 179.8 kB / 0.6732 GB, free: 4.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/0.531, allocations: 208 kB / 0.6734 GB, free: 3.957 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 349 * Number of states: 0 () * Number of discrete variables: 53 (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,jointUSR.revolute.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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],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 (452): * Single equations (assignments): 452 * 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 prepare postOptimizeDAE: time 0.00198/0.5329, allocations: 1.426 MB / 0.6748 GB, free: 2.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.5333, allocations: 217.2 kB / 0.675 GB, free: 2.305 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.5355, allocations: 1.402 MB / 0.6763 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.5355, allocations: 12 kB / 0.6764 GB, free: 0.875 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.5355, allocations: 0 / 0.6764 GB, free: 0.875 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.5356, allocations: 3.984 kB / 0.6764 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1942/0.7298, allocations: 5.229 MB / 0.6815 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-05/0.7298, allocations: 16.47 kB / 0.6815 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/0.7306, allocations: 214.1 kB / 0.6817 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.508e-05/0.7306, allocations: 19.78 kB / 0.6817 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/0.7307, allocations: 42.09 kB / 0.6817 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-05/0.7307, allocations: 30.2 kB / 0.6818 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.7308, allocations: 20.28 kB / 0.6818 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.7327, allocations: 1.731 MB / 0.6835 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007038/0.7334, allocations: 304.5 kB / 0.6838 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.7338, allocations: 42.89 kB / 0.6838 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7349, allocations: 35.91 kB / 0.6838 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.7352, allocations: 122.6 kB / 0.684 GB, free: 128.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.7352, allocations: 51.19 kB / 0.684 GB, free: 128.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002596/0.7378, allocations: 1.511 MB / 0.6855 GB, free: 127.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7379, allocations: 0 / 0.6855 GB, free: 127.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002974/0.7408, allocations: 0.5966 MB / 0.6861 GB, free: 127.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 62 * 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 (121): * Single equations (assignments): 121 * 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.002227/0.7431, allocations: 2.373 MB / 0.6884 GB, free: 126 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.7462, allocations: 2.339 MB / 0.6907 GB, free: 125.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.7463, allocations: 5.719 kB / 0.6907 GB, free: 125.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006675/0.7469, allocations: 0.5688 MB / 0.6912 GB, free: 124.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005425/0.7524, allocations: 342.4 kB / 0.6916 GB, free: 124.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02854/0.781, allocations: 19.31 MB / 0.7104 GB, free: 111.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002684/0.7837, allocations: 2.457 MB / 0.7128 GB, free: 110.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/0.7851, allocations: 1.265 MB / 0.7141 GB, free: 109.7 MB / 490.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7851, allocations: 4.969 kB / 0.7141 GB, free: 109.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.115/5.9, allocations: 47 MB / 0.76 GB, free: 72 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches