Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2162/0.2162, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 78.28 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01318/0.1305, allocations: 10.81 MB / 490.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007923/0.1385, allocations: 3.626 MB / 494.6 MB, free: 6.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.1405, allocations: 63.88 kB / 494.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006144/0.1467, allocations: 3.24 MB / 497.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002969/0.1497, allocations: 0.7812 MB / 498.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00222/0.152, allocations: 0.8265 MB / 499.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003169/0.1552, allocations: 2.054 MB / 0.4898 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005359/0.1605, allocations: 4.008 MB / 0.4937 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.1628, allocations: 1.266 MB / 0.4949 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002601/0.1654, allocations: 1.683 MB / 0.4966 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009908/0.1664, allocations: 348 kB / 0.4969 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002502/0.1689, allocations: 1.053 MB / 0.4979 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001962/0.1709, allocations: 1.52 MB / 0.4994 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002785/0.1737, allocations: 1.756 MB / 0.5011 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2099/0.3836, allocations: 5.706 MB / 0.5067 GB, free: 20.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3836, allocations: 0.7031 kB / 0.5067 GB, free: 20.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3836, allocations: 0.9375 kB / 0.5067 GB, free: 20.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001653/0.3838, allocations: 0 / 0.5067 GB, free: 20.76 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.01037/0.3942, allocations: 3.886 MB / 0.5105 GB, free: 19.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3943, allocations: 10.84 kB / 0.5105 GB, free: 19.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001048/0.3953, allocations: 0.5408 MB / 0.511 GB, free: 19.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002627/0.3979, allocations: 0.5827 MB / 0.5116 GB, free: 19.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004262/0.4022, allocations: 1.797 MB / 0.5134 GB, free: 18.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.4024, allocations: 211.1 kB / 0.5136 GB, free: 18.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008109/0.4032, allocations: 276.5 kB / 0.5138 GB, free: 18.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.4197, allocations: 8.174 MB / 0.5218 GB, free: 16.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.012e-05/0.4198, allocations: 15.03 kB / 0.5218 GB, free: 16.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.4201, allocations: 123.9 kB / 0.5219 GB, free: 16.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001542/0.4217, allocations: 1.133 MB / 0.523 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.4361, allocations: 6.946 MB / 0.5298 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0305/0.4666, allocations: 24.76 MB / 0.554 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007835/0.4745, allocations: 2.28 MB / 0.5562 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.476, allocations: 1.085 MB / 0.5573 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009861/0.4859, allocations: 7.191 MB / 0.5643 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.486, allocations: 43.22 kB / 0.5644 GB, free: 13.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.405e-06/0.486, allocations: 1.641 kB / 0.5644 GB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.01757/0.5036, allocations: 5.403 MB / 0.5696 GB, free: 8.105 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.5036, allocations: 60.41 kB / 0.5697 GB, free: 8.035 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.5069, allocations: 2.396 MB / 0.572 GB, free: 5.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.884e-05/0.507, allocations: 41.7 kB / 0.5721 GB, free: 5.566 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.5084, allocations: 2.066 MB / 0.5741 GB, free: 3.516 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.5088, allocations: 382.4 kB / 0.5745 GB, free: 3.145 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000905/0.5097, allocations: 0.7142 MB / 0.5752 GB, free: 2.422 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.5098, allocations: 305.1 kB / 0.5754 GB, free: 2.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.5114, allocations: 1.03 MB / 0.5765 GB, free: 1.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002949/0.5144, allocations: 3.19 MB / 0.5796 GB, free: 12.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005292/0.5197, allocations: 4.576 MB / 0.584 GB, free: 7.535 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.484e-05/0.5198, allocations: 23.75 kB / 0.5841 GB, free: 7.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006753/0.5265, allocations: 4.119 MB / 0.5881 GB, free: 3.844 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.093e-05/0.5267, allocations: 43.94 kB / 0.5881 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/0.5268, allocations: 76 kB / 0.5882 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001278/0.5269, allocations: 100.8 kB / 0.5883 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/0.5294, allocations: 0.8408 MB / 0.5891 GB, free: 2.859 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001339/0.5296, allocations: 156.7 kB / 0.5893 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.5318, allocations: 175.8 kB / 0.5894 GB, free: 2.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.5322, allocations: 214.3 kB / 0.5896 GB, free: 2.363 MB / 430.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002302/0.5345, allocations: 1.428 MB / 0.591 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.5348, allocations: 209.3 kB / 0.5912 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002424/0.5372, allocations: 1.414 MB / 0.5926 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-05/0.5373, allocations: 11.98 kB / 0.5926 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.5374, allocations: 4 kB / 0.5926 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5374, allocations: 4.859 kB / 0.5926 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009607/0.547, allocations: 5.285 MB / 0.5978 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-05/0.5471, allocations: 16 kB / 0.5978 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008221/0.5479, allocations: 211.7 kB / 0.598 GB, free: 9.527 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-05/0.548, allocations: 24 kB / 0.598 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.5481, allocations: 39.98 kB / 0.5981 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-05/0.5481, allocations: 30.56 kB / 0.5981 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.436e-05/0.5481, allocations: 23.94 kB / 0.5981 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.5507, allocations: 1.748 MB / 0.5998 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.5514, allocations: 298.2 kB / 0.6001 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004899/0.5519, allocations: 39.98 kB / 0.6002 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.553, allocations: 42.61 kB / 0.6002 GB, free: 7.062 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.5531, allocations: 128 kB / 0.6003 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.09e-05/0.5532, allocations: 48 kB / 0.6004 GB, free: 6.887 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002671/0.5559, allocations: 1.525 MB / 0.6018 GB, free: 5.348 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5559, allocations: 0 / 0.6018 GB, free: 5.348 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003155/0.5591, allocations: 0.5937 MB / 0.6024 GB, free: 4.754 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 66 * 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 (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.002763/0.5619, allocations: 2.381 MB / 0.6048 GB, free: 2.148 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004448/0.5663, allocations: 2.604 MB / 0.6073 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/0.5664, allocations: 4.438 kB / 0.6073 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008859/0.5673, allocations: 0.5683 MB / 0.6079 GB, free: 14.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.5696, allocations: 366.8 kB / 0.6082 GB, free: 14.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04166/0.6112, allocations: 27.84 MB / 0.6354 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004255/0.6156, allocations: 2.45 MB / 0.6378 GB, free: 12.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00321/0.6188, allocations: 0.9559 MB / 0.6387 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002269/0.6211, allocations: 1.244 MB / 0.6399 GB, free: 9.969 MB / 494.1 MB Notification: Performance of SimCode: time 1.393e-06/0.6211, allocations: 0 / 0.6399 GB, free: 9.969 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07987/0.701, allocations: 44.18 MB / 0.6831 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.801/9.502, allocations: 2.812 kB / 0.6831 GB, free: 13.98 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_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_trunk_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches