Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001601/0.001602, allocations: 118.4 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 183 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2438/0.2438, allocations: 44.18 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 71.88 kB / 470.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.3985, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.01569/0.4142, allocations: 12.43 MB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.4246, allocations: 3.852 MB / 0.5343 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003323/0.428, allocations: 62.91 kB / 0.5344 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00829/0.4363, allocations: 3.869 MB / 0.5382 GB, free: 4.973 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003765/0.4402, allocations: 0.8596 MB / 0.539 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.4431, allocations: 0.8806 MB / 0.5399 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004825/0.4479, allocations: 2.312 MB / 0.5421 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008244/0.4562, allocations: 4.982 MB / 0.547 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003527/0.4598, allocations: 1.473 MB / 0.5484 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003946/0.4638, allocations: 1.96 MB / 0.5504 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001528/0.4654, allocations: 479.9 kB / 0.5508 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.4686, allocations: 1.155 MB / 0.5519 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002935/0.4716, allocations: 1.801 MB / 0.5537 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004368/0.476, allocations: 2.06 MB / 0.5557 GB, free: 5.793 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.4865, allocations: 7.186 MB / 0.5627 GB, free: 14.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.4866, allocations: 0 / 0.5627 GB, free: 14.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4866, allocations: 0 / 0.5627 GB, free: 14.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002147/0.4868, allocations: 4 kB / 0.5627 GB, free: 14.58 MB / 430.1 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.01357/0.5004, allocations: 4.434 MB / 0.5671 GB, free: 10.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.5004, allocations: 12.03 kB / 0.5671 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001803/0.5023, allocations: 0.5938 MB / 0.5677 GB, free: 9.453 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00399/0.5063, allocations: 0.6696 MB / 0.5683 GB, free: 8.781 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005846/0.5122, allocations: 2.263 MB / 0.5705 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000265/0.5125, allocations: 238.2 kB / 0.5707 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/0.5138, allocations: 311.9 kB / 0.571 GB, free: 5.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02551/0.5393, allocations: 9.43 MB / 0.5802 GB, free: 12.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.5395, allocations: 15.88 kB / 0.5803 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.541, allocations: 135.9 kB / 0.5804 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00255/0.5436, allocations: 1.185 MB / 0.5816 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/0.5661, allocations: 8.633 MB / 0.59 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04777/0.6139, allocations: 27.15 MB / 0.6165 GB, free: 6.539 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.6245, allocations: 3.105 MB / 0.6195 GB, free: 3.422 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00273/0.6272, allocations: 1.655 MB / 0.6211 GB, free: 1.766 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01595/0.6432, allocations: 9.01 MB / 0.6299 GB, free: 8.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/0.6433, allocations: 43.56 kB / 0.63 GB, free: 8.219 MB / 494.1 MB Notification: Performance of pre-optimization done (n=93): time 4.87e-06/0.6434, allocations: 0 / 0.63 GB, free: 8.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=110): time 0.02914/0.6725, allocations: 7.765 MB / 0.6376 GB, free: 456 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.6726, allocations: 64.41 kB / 0.6376 GB, free: 380 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005743/0.6784, allocations: 2.616 MB / 0.6402 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003193/0.6788, allocations: 41.7 kB / 0.6402 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002356/0.6811, allocations: 2.232 MB / 0.6424 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/0.6819, allocations: 452.6 kB / 0.6428 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002103/0.6841, allocations: 0.7818 MB / 0.6436 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6842, allocations: 305.1 kB / 0.6439 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002808/0.6871, allocations: 1.428 MB / 0.6453 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005428/0.6925, allocations: 3.504 MB / 0.6487 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008793/0.7014, allocations: 5.188 MB / 0.6538 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/0.7015, allocations: 20 kB / 0.6538 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=478) (initialization): time 0.0115/0.713, allocations: 4.93 MB / 0.6586 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.7132, allocations: 36 kB / 0.6586 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/0.7134, allocations: 72 kB / 0.6587 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.7135, allocations: 100 kB / 0.6588 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00358/0.7171, allocations: 0.8819 MB / 0.6597 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001757/0.7173, allocations: 151.4 kB / 0.6598 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/0.7203, allocations: 207.7 kB / 0.66 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006181/0.7209, allocations: 215.9 kB / 0.6602 GB, free: 7.125 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003358/0.7243, allocations: 1.589 MB / 0.6618 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005564/0.7248, allocations: 226.5 kB / 0.662 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/0.7289, allocations: 2.118 MB / 0.664 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.7289, allocations: 15.98 kB / 0.6641 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.729, allocations: 0 / 0.6641 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.729, allocations: 3.984 kB / 0.6641 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.7425, allocations: 6.052 MB / 0.67 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.933e-05/0.7425, allocations: 12 kB / 0.67 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.7437, allocations: 259.5 kB / 0.6702 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.647e-05/0.7438, allocations: 16 kB / 0.6703 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.7439, allocations: 39.98 kB / 0.6703 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.511e-05/0.7439, allocations: 23.94 kB / 0.6703 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.08e-05/0.744, allocations: 28.28 kB / 0.6703 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.7474, allocations: 2.191 MB / 0.6725 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008276/0.7483, allocations: 323.5 kB / 0.6728 GB, free: 9.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005378/0.7488, allocations: 39.98 kB / 0.6728 GB, free: 9.711 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.7501, allocations: 63.94 kB / 0.6729 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.7504, allocations: 116.2 kB / 0.673 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.7505, allocations: 52 kB / 0.673 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003358/0.7539, allocations: 1.676 MB / 0.6747 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.01e-07/0.7539, allocations: 0 / 0.6747 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004144/0.7581, allocations: 0.6796 MB / 0.6753 GB, free: 7.113 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004662/0.7628, allocations: 2.834 MB / 0.6781 GB, free: 4.082 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006241/0.769, allocations: 3.084 MB / 0.6811 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.76e-05/0.7691, allocations: 0 / 0.6811 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.7707, allocations: 0.8222 MB / 0.6819 GB, free: 200 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/0.7739, allocations: 355.7 kB / 0.6823 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06197/0.8359, allocations: 28.62 MB / 0.7102 GB, free: 492 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005956/0.8419, allocations: 2.667 MB / 0.7128 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003299/0.8453, allocations: 0.9423 MB / 0.7137 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002948/0.8482, allocations: 1.374 MB / 0.7151 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of SimCode: time 1.333e-06/0.8483, allocations: 0 / 0.7151 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3871/1.235, allocations: 52.14 MB / 0.766 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/16.12, allocations: 0 / 0.766 GB, free: 163.4 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches