Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.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.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",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.001099/0.001099, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001002/0.001002, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.365/1.365, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2121/0.2121, allocations: 44.17 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 59.78 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1184, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.01328/0.1317, allocations: 12.5 MB / 481.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008236/0.14, allocations: 3.668 MB / 485.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.1423, allocations: 71.88 kB / 485.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007404/0.1498, allocations: 3.891 MB / 489.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002796/0.1527, allocations: 0.8551 MB / 490.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002049/0.1547, allocations: 0.7135 MB / 491.1 MB, free: 8.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003393/0.1581, allocations: 2.209 MB / 493.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005969/0.1641, allocations: 4.934 MB / 498.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.1668, allocations: 1.457 MB / 499.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003403/0.1703, allocations: 1.913 MB / 0.4898 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001444/0.1717, allocations: 448 kB / 0.4902 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00239/0.1741, allocations: 1.026 MB / 0.4912 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002529/0.1767, allocations: 1.75 MB / 0.4929 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003471/0.1802, allocations: 2.037 MB / 0.4949 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008128/0.1883, allocations: 6.769 MB / 0.5015 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1884, allocations: 0 / 0.5015 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1884, allocations: 0 / 0.5015 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002142/0.1886, allocations: 0 / 0.5015 GB, free: 1.82 MB / 382.1 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.2164/0.4051, allocations: 4.141 MB / 0.5056 GB, free: 46.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.4051, allocations: 9.688 kB / 0.5056 GB, free: 46.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008413/0.406, allocations: 0.5796 MB / 0.5062 GB, free: 46.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002228/0.4082, allocations: 0.6185 MB / 0.5068 GB, free: 46.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003655/0.4119, allocations: 2.113 MB / 0.5088 GB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.4121, allocations: 233.8 kB / 0.5091 GB, free: 45.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005186/0.4126, allocations: 317.8 kB / 0.5094 GB, free: 44.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.4281, allocations: 8.204 MB / 0.5174 GB, free: 41.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.306e-05/0.4282, allocations: 14.41 kB / 0.5174 GB, free: 41.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003152/0.4286, allocations: 142.5 kB / 0.5175 GB, free: 41.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001673/0.4302, allocations: 1.094 MB / 0.5186 GB, free: 41.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/0.4463, allocations: 6.708 MB / 0.5251 GB, free: 37.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03005/0.4764, allocations: 24.29 MB / 0.5489 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005467/0.4819, allocations: 1.987 MB / 0.5508 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.4831, allocations: 0.8957 MB / 0.5517 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006686/0.4898, allocations: 6.289 MB / 0.5578 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4899, allocations: 43.22 kB / 0.5579 GB, free: 2.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.545e-06/0.4899, allocations: 0 / 0.5579 GB, free: 2.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01677/0.5067, allocations: 5.722 MB / 0.5634 GB, free: 12.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.5068, allocations: 111.8 kB / 0.5636 GB, free: 12.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004261/0.5111, allocations: 2.438 MB / 0.5659 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.5113, allocations: 41.7 kB / 0.566 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00164/0.5129, allocations: 2.175 MB / 0.5681 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.5134, allocations: 402.2 kB / 0.5685 GB, free: 7.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.5147, allocations: 0.722 MB / 0.5692 GB, free: 6.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5148, allocations: 305.1 kB / 0.5695 GB, free: 6.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.5164, allocations: 0.9594 MB / 0.5704 GB, free: 5.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002886/0.5193, allocations: 3.041 MB / 0.5734 GB, free: 1.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004943/0.5242, allocations: 4.349 MB / 0.5776 GB, free: 12.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-05/0.5243, allocations: 24 kB / 0.5777 GB, free: 12.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.006652/0.531, allocations: 3.934 MB / 0.5815 GB, free: 8.156 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.666e-05/0.5311, allocations: 36 kB / 0.5815 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.5312, allocations: 72 kB / 0.5816 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001077/0.5313, allocations: 100 kB / 0.5817 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.534, allocations: 0.7954 MB / 0.5825 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001293/0.5341, allocations: 147.9 kB / 0.5826 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/0.5362, allocations: 175.6 kB / 0.5828 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.5366, allocations: 204 kB / 0.583 GB, free: 6.641 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002469/0.539, allocations: 1.586 MB / 0.5845 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/0.5395, allocations: 213.3 kB / 0.5847 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.5417, allocations: 1.207 MB / 0.5859 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.5418, allocations: 16.23 kB / 0.5859 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.487e-06/0.5418, allocations: 0 / 0.5859 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.5418, allocations: 3.984 kB / 0.5859 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.5531, allocations: 5.708 MB / 0.5915 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.998e-05/0.5532, allocations: 16 kB / 0.5915 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007776/0.554, allocations: 223.6 kB / 0.5917 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.86e-05/0.554, allocations: 27.94 kB / 0.5918 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-05/0.5541, allocations: 40 kB / 0.5918 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.812e-05/0.5541, allocations: 35.86 kB / 0.5918 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.722e-05/0.5542, allocations: 19.94 kB / 0.5918 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.5566, allocations: 1.92 MB / 0.5937 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000758/0.5574, allocations: 302.2 kB / 0.594 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004189/0.5578, allocations: 47.92 kB / 0.5941 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.5589, allocations: 40 kB / 0.5941 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.559, allocations: 127.9 kB / 0.5942 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.385e-05/0.5591, allocations: 52 kB / 0.5943 GB, free: 10.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003065/0.5622, allocations: 1.61 MB / 0.5958 GB, free: 8.879 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5622, allocations: 0 / 0.5958 GB, free: 8.879 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003352/0.5656, allocations: 0.612 MB / 0.5964 GB, free: 8.27 MB / 430.1 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 (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.003002/0.5686, allocations: 2.572 MB / 0.5989 GB, free: 5.457 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004246/0.5728, allocations: 2.43 MB / 0.6013 GB, free: 3.059 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.684e-05/0.5729, allocations: 4 kB / 0.6013 GB, free: 3.055 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.5737, allocations: 0.5631 MB / 0.6019 GB, free: 2.496 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.5762, allocations: 374.9 kB / 0.6022 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/0.6174, allocations: 28.84 MB / 0.6304 GB, free: 1.105 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00394/0.6214, allocations: 2.678 MB / 0.633 GB, free: 14.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00266/0.6241, allocations: 0.9067 MB / 0.6339 GB, free: 13.48 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/0.6261, allocations: 1.362 MB / 0.6352 GB, free: 12.12 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6261, allocations: 0 / 0.6352 GB, free: 12.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07928/0.7054, allocations: 46.33 MB / 0.6805 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.347/10.05, allocations: 0 / 0.6805 GB, free: 14.04 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_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_JointRRP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRP/JointRRP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches