Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_3_2_3_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.001323/0.001323, allocations: 102.3 kB / 16.4 MB, free: 6.465 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.00138/0.00138, allocations: 192.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1939/0.1939, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.91 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.01412/0.1181, allocations: 14.24 MB / 0.5013 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007835/0.126, allocations: 4.001 MB / 0.5052 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.1282, allocations: 71.94 kB / 0.5053 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007171/0.1354, allocations: 3.925 MB / 0.5091 GB, free: 5.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.1383, allocations: 1.057 MB / 0.5102 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.1403, allocations: 0.8811 MB / 0.511 GB, free: 4 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003386/0.1437, allocations: 2.63 MB / 0.5136 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005785/0.1495, allocations: 5.117 MB / 0.5186 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.1517, allocations: 1.601 MB / 0.5202 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.1547, allocations: 2.084 MB / 0.5222 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.1558, allocations: 492 kB / 0.5227 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002337/0.1581, allocations: 1.143 MB / 0.5238 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002385/0.1605, allocations: 1.964 MB / 0.5257 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003013/0.1635, allocations: 2.277 MB / 0.5279 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2279/0.3915, allocations: 7.758 MB / 0.5355 GB, free: 15.08 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3915, allocations: 0 / 0.5355 GB, free: 15.08 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3915, allocations: 3.844 kB / 0.5355 GB, free: 15.08 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002174/0.3918, allocations: 1.125 kB / 0.5355 GB, free: 15.08 MB / 414.1 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.0105/0.4023, allocations: 4.865 MB / 0.5402 GB, free: 13.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4023, allocations: 12.64 kB / 0.5403 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008636/0.4032, allocations: 0.6786 MB / 0.5409 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003128/0.4063, allocations: 0.6823 MB / 0.5416 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/0.4108, allocations: 2.326 MB / 0.5439 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.411, allocations: 266.6 kB / 0.5441 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006594/0.4117, allocations: 355.7 kB / 0.5445 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02086/0.4325, allocations: 10.47 MB / 0.5547 GB, free: 9.809 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.124e-05/0.4326, allocations: 15.62 kB / 0.5547 GB, free: 9.809 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004018/0.4331, allocations: 163 kB / 0.5548 GB, free: 9.719 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/0.4358, allocations: 1.637 MB / 0.5564 GB, free: 9.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/0.453, allocations: 9.156 MB / 0.5654 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03968/0.4927, allocations: 30.6 MB / 0.5953 GB, free: 9.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009214/0.502, allocations: 3.108 MB / 0.5983 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002076/0.5041, allocations: 1.661 MB / 0.5999 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.5165, allocations: 9.331 MB / 0.609 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.5165, allocations: 42.84 kB / 0.6091 GB, free: 10.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=91): time 2.585e-06/0.5165, allocations: 2.062 kB / 0.6091 GB, free: 10.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=108): time 0.02434/0.5409, allocations: 9.153 MB / 0.618 GB, free: 1.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.541, allocations: 114.9 kB / 0.6181 GB, free: 1.473 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.5447, allocations: 2.904 MB / 0.621 GB, free: 14.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.893e-05/0.5448, allocations: 49.77 kB / 0.621 GB, free: 14.51 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.5463, allocations: 2.607 MB / 0.6236 GB, free: 11.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003686/0.5467, allocations: 454.6 kB / 0.624 GB, free: 11.49 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.5478, allocations: 0.8447 MB / 0.6248 GB, free: 10.64 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.5479, allocations: 301.1 kB / 0.6251 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.5499, allocations: 1.492 MB / 0.6266 GB, free: 8.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/0.5534, allocations: 3.833 MB / 0.6303 GB, free: 3.867 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005805/0.5592, allocations: 5.607 MB / 0.6358 GB, free: 13.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.425e-05/0.5592, allocations: 24 kB / 0.6358 GB, free: 13.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=526) (initialization): time 0.007346/0.5666, allocations: 5.291 MB / 0.641 GB, free: 8.617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.6e-05/0.5667, allocations: 40 kB / 0.641 GB, free: 8.578 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.873e-05/0.5668, allocations: 84.09 kB / 0.6411 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.5669, allocations: 116 kB / 0.6412 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003047/0.5699, allocations: 0.9928 MB / 0.6422 GB, free: 7.473 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001161/0.5701, allocations: 162.9 kB / 0.6423 GB, free: 7.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/0.5726, allocations: 231.7 kB / 0.6425 GB, free: 7.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003095/0.5729, allocations: 240 kB / 0.6428 GB, free: 6.887 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002578/0.5755, allocations: 1.758 MB / 0.6445 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.576, allocations: 262 kB / 0.6447 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003068/0.579, allocations: 2.061 MB / 0.6468 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.5791, allocations: 12 kB / 0.6468 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5791, allocations: 0 / 0.6468 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.5791, allocations: 11.92 kB / 0.6468 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009881/0.589, allocations: 6.659 MB / 0.6533 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/0.589, allocations: 13.31 kB / 0.6533 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009751/0.59, allocations: 252.2 kB / 0.6535 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.177e-05/0.5901, allocations: 27.92 kB / 0.6536 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.513e-05/0.5901, allocations: 36 kB / 0.6536 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.228e-05/0.5902, allocations: 28.47 kB / 0.6536 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/0.5902, allocations: 23.92 kB / 0.6536 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.5929, allocations: 2.21 MB / 0.6558 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00075/0.5937, allocations: 347.3 kB / 0.6561 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002986/0.594, allocations: 47.92 kB / 0.6562 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009615/0.595, allocations: 71.94 kB / 0.6563 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.5951, allocations: 120.2 kB / 0.6564 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.5952, allocations: 48 kB / 0.6564 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002488/0.5977, allocations: 1.844 MB / 0.6582 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5977, allocations: 0 / 0.6582 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003098/0.6008, allocations: 0.7577 MB / 0.659 GB, free: 6 MB / 0.4981 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 (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.00297/0.6038, allocations: 2.85 MB / 0.6617 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00447/0.6083, allocations: 3.231 MB / 0.6649 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.6083, allocations: 1.469 kB / 0.6649 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009791/0.6093, allocations: 0.807 MB / 0.6657 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.6109, allocations: 337.5 kB / 0.666 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03988/0.6508, allocations: 31.34 MB / 0.6966 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003142/0.654, allocations: 2.952 MB / 0.6995 GB, free: 9.066 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002453/0.6564, allocations: 1.026 MB / 0.7005 GB, free: 8.039 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002038/0.6585, allocations: 1.612 MB / 0.7021 GB, free: 6.43 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/0.6585, allocations: 0 / 0.7021 GB, free: 6.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08607/0.7446, allocations: 51.7 MB / 0.7526 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.91, allocations: 11.53 kB / 0.7526 GB, free: 2.719 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches