Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000998/0.0009979, allocations: 175.1 kB / 16.72 MB, free: 4.949 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007308/0.0007307, allocations: 87.8 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3462/0.3462, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.000375, allocations: 12 kB / 432.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09598, allocations: 58.86 MB / 490.9 MB, free: 10.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.2137/0.3098, allocations: 47.71 MB / 0.526 GB, free: 16.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.3322, allocations: 9.929 MB / 0.5357 GB, free: 9.715 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01053/0.3427, allocations: 211.4 kB / 0.5359 GB, free: 9.688 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007133/0.3499, allocations: 2.268 MB / 0.5381 GB, free: 8.867 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01611/0.3661, allocations: 6.306 MB / 0.5443 GB, free: 6.164 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003597/0.3697, allocations: 0.7317 MB / 0.545 GB, free: 5.871 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004302/0.374, allocations: 3.434 MB / 0.5483 GB, free: 4.582 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.3846, allocations: 7.018 MB / 0.5552 GB, free: 1.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.3872, allocations: 1.012 MB / 0.5562 GB, free: 1.297 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.3905, allocations: 1.612 MB / 0.5578 GB, free: 0.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006874/0.3912, allocations: 150.9 kB / 0.5579 GB, free: 0.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.3936, allocations: 0.8687 MB / 0.5588 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001863/0.3955, allocations: 1.511 MB / 0.5602 GB, free: 32 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.3979, allocations: 1.741 MB / 0.5619 GB, free: 14.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007067/0.405, allocations: 6.189 MB / 0.568 GB, free: 10.26 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.405, allocations: 0 / 0.568 GB, free: 10.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.405, allocations: 0 / 0.568 GB, free: 10.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002481/0.4053, allocations: 1.625 kB / 0.568 GB, free: 10.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.01005/0.4153, allocations: 3.897 MB / 0.5718 GB, free: 7.391 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.4154, allocations: 12.03 kB / 0.5718 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00168/0.4171, allocations: 0.6853 MB / 0.5725 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003069/0.4202, allocations: 0.6626 MB / 0.5731 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.4247, allocations: 2.289 MB / 0.5753 GB, free: 3.676 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.4249, allocations: 262.9 kB / 0.5756 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006734/0.4256, allocations: 355.8 kB / 0.5759 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02294/0.4485, allocations: 10.48 MB / 0.5862 GB, free: 8.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.467e-05/0.4487, allocations: 19.81 kB / 0.5862 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005075/0.4492, allocations: 159.9 kB / 0.5863 GB, free: 8.074 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003165/0.4524, allocations: 1.636 MB / 0.5879 GB, free: 6.438 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02308/0.4755, allocations: 9.139 MB / 0.5969 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05012/0.5257, allocations: 30.75 MB / 0.6269 GB, free: 13.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009804/0.5355, allocations: 3.094 MB / 0.6299 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002381/0.5379, allocations: 1.653 MB / 0.6315 GB, free: 9.109 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01435/0.5523, allocations: 9.332 MB / 0.6406 GB, free: 15.29 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.5524, allocations: 47.5 kB / 0.6407 GB, free: 15.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=91): time 4.228e-06/0.5524, allocations: 4 kB / 0.6407 GB, free: 15.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=108): time 0.02709/0.5795, allocations: 8.965 MB / 0.6495 GB, free: 6.23 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/0.5796, allocations: 127.8 kB / 0.6496 GB, free: 6.082 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00433/0.584, allocations: 2.871 MB / 0.6524 GB, free: 3.199 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.5842, allocations: 45.7 kB / 0.6524 GB, free: 3.148 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001762/0.586, allocations: 2.513 MB / 0.6549 GB, free: 0.5977 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/0.5865, allocations: 434.5 kB / 0.6553 GB, free: 172 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.5867, allocations: 84 kB / 0.6554 GB, free: 88 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003156/0.5871, allocations: 478.8 kB / 0.6558 GB, free: 15.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/0.5894, allocations: 1.472 MB / 0.6573 GB, free: 14.13 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003826/0.5932, allocations: 3.812 MB / 0.661 GB, free: 9.133 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00661/0.5999, allocations: 5.597 MB / 0.6665 GB, free: 2.379 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.432e-05/0.6, allocations: 24 kB / 0.6665 GB, free: 2.355 MB / 490.7 MB Notification: Performance of matching and sorting (n=526) (initialization): time 0.009042/0.609, allocations: 5.242 MB / 0.6716 GB, free: 13.1 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.6091, allocations: 40 kB / 0.6716 GB, free: 13.06 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.6092, allocations: 88 kB / 0.6717 GB, free: 12.98 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001017/0.6093, allocations: 108 kB / 0.6718 GB, free: 12.87 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/0.6125, allocations: 0.9981 MB / 0.6728 GB, free: 11.87 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001222/0.6126, allocations: 171.8 kB / 0.673 GB, free: 11.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/0.6155, allocations: 231.5 kB / 0.6732 GB, free: 11.48 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004038/0.6159, allocations: 232 kB / 0.6734 GB, free: 11.25 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 49 (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 (524): * Single equations (assignments): 523 * 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.00339/0.6193, allocations: 1.762 MB / 0.6751 GB, free: 9.477 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005096/0.6198, allocations: 236.9 kB / 0.6753 GB, free: 9.242 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/0.6231, allocations: 2.061 MB / 0.6774 GB, free: 7.168 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.6232, allocations: 19.94 kB / 0.6774 GB, free: 7.148 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.6232, allocations: 0 / 0.6774 GB, free: 7.148 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.6232, allocations: 7.984 kB / 0.6774 GB, free: 7.141 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.6337, allocations: 6.652 MB / 0.6839 GB, free: 208 kB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/0.6338, allocations: 19.94 kB / 0.6839 GB, free: 188 kB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2291/0.8629, allocations: 251.5 kB / 0.6841 GB, free: 150.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.106e-05/0.863, allocations: 19.94 kB / 0.6842 GB, free: 150.8 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002784/0.8633, allocations: 39.3 kB / 0.6842 GB, free: 150.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-05/0.8633, allocations: 26.22 kB / 0.6842 GB, free: 150.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-05/0.8633, allocations: 21.5 kB / 0.6842 GB, free: 150.8 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.8665, allocations: 2.188 MB / 0.6864 GB, free: 150.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/0.8674, allocations: 348.4 kB / 0.6867 GB, free: 150 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.8676, allocations: 43.12 kB / 0.6868 GB, free: 150 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009535/0.8686, allocations: 63.22 kB / 0.6868 GB, free: 150 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/0.8688, allocations: 123.3 kB / 0.6869 GB, free: 150 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.8689, allocations: 47.5 kB / 0.687 GB, free: 150 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003123/0.8721, allocations: 1.827 MB / 0.6888 GB, free: 149.9 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8721, allocations: 1.094 kB / 0.6888 GB, free: 149.9 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.00395/0.876, allocations: 0.7492 MB / 0.6895 GB, free: 149.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (134): * Single equations (assignments): 134 * 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.003205/0.8793, allocations: 2.839 MB / 0.6923 GB, free: 148.7 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.004358/0.8836, allocations: 3.171 MB / 0.6954 GB, free: 147.8 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/0.8837, allocations: 2.875 kB / 0.6954 GB, free: 147.8 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.8848, allocations: 0.8039 MB / 0.6962 GB, free: 147.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006419/0.8912, allocations: 330 kB / 0.6965 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04028/0.9315, allocations: 24.41 MB / 0.7203 GB, free: 131.6 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003027/0.9346, allocations: 2.951 MB / 0.7232 GB, free: 130.3 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/0.9366, allocations: 1.637 MB / 0.7248 GB, free: 129 MB / 0.4949 GB Notification: Performance of SimCode: time 1.052e-06/0.9366, allocations: 3.938 kB / 0.7248 GB, free: 129 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.414/6.35, allocations: 57.94 MB / 0.7814 GB, free: 89.96 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointRRR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches