Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",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.001453/0.001453, allocations: 102.5 kB / 16.27 MB, free: 5.93 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.001594/0.001594, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.525/1.525, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2225/0.2225, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001512/0.001512, allocations: 70.25 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1152, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01712/0.1324, allocations: 18.61 MB / 459.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.1463, allocations: 5.347 MB / 464.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00413/0.1504, allocations: 111.7 kB / 464.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00675/0.1572, allocations: 3.071 MB / 467.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009113/0.1664, allocations: 2.618 MB / 470.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003211/0.1697, allocations: 1.022 MB / 471.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.1823, allocations: 7.406 MB / 478.8 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008312/0.1907, allocations: 4.25 MB / 483.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004872/0.1956, allocations: 2.289 MB / 485.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0065/0.2021, allocations: 3.283 MB / 488.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002058/0.2042, allocations: 456 kB / 489.1 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004288/0.2085, allocations: 1.303 MB / 490.4 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004693/0.2133, allocations: 2.875 MB / 493.3 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006047/0.2193, allocations: 3.305 MB / 496.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.2325, allocations: 9.918 MB / 0.4946 GB, free: 4.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.507e-06/0.2326, allocations: 0 / 0.4946 GB, free: 4.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2326, allocations: 0 / 0.4946 GB, free: 4.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004864/0.2331, allocations: 0 / 0.4946 GB, free: 4.668 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.0233/0.2564, allocations: 7.458 MB / 0.5019 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.2565, allocations: 15.89 kB / 0.5019 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003306/0.2598, allocations: 1.026 MB / 0.5029 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03085/0.2907, allocations: 5.62 MB / 0.5084 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.3025, allocations: 5.858 MB / 0.5141 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003004/0.3028, allocations: 320.6 kB / 0.5144 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002198/0.3051, allocations: 443.5 kB / 0.5148 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.241/0.5461, allocations: 15.73 MB / 0.5302 GB, free: 79.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002708/0.5464, allocations: 65.58 kB / 0.5303 GB, free: 79.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001035/0.5474, allocations: 202.7 kB / 0.5305 GB, free: 79.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007035/0.5545, allocations: 3.473 MB / 0.5339 GB, free: 79.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03387/0.5884, allocations: 14.79 MB / 0.5483 GB, free: 75.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0838/0.6723, allocations: 55.93 MB / 0.6029 GB, free: 23.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/0.6884, allocations: 8.139 MB / 0.6109 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005543/0.694, allocations: 4.774 MB / 0.6155 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001635/0.6957, allocations: 2.212 MB / 0.6177 GB, free: 7.598 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.967e-05/0.6957, allocations: 69.08 kB / 0.6178 GB, free: 7.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=367): time 8.336e-06/0.6958, allocations: 3.844 kB / 0.6178 GB, free: 7.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=419): time 0.1145/0.8102, allocations: 39.8 MB / 0.6566 GB, free: 15.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.8104, allocations: 116 kB / 0.6567 GB, free: 15.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009152/0.8196, allocations: 4.409 MB / 0.661 GB, free: 11.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001106/0.8207, allocations: 85.69 kB / 0.6611 GB, free: 11.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003214/0.8239, allocations: 3.898 MB / 0.6649 GB, free: 7.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00234/0.8263, allocations: 1.495 MB / 0.6664 GB, free: 5.551 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005201/0.8315, allocations: 1.532 MB / 0.6679 GB, free: 4.012 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.8317, allocations: 309.1 kB / 0.6682 GB, free: 3.707 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006813/0.8385, allocations: 3.95 MB / 0.672 GB, free: 15.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00954/0.848, allocations: 7.765 MB / 0.6796 GB, free: 6.168 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01662/0.8647, allocations: 12.73 MB / 0.6921 GB, free: 7.574 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/0.8649, allocations: 36 kB / 0.6921 GB, free: 7.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.02975/0.8946, allocations: 14.25 MB / 0.706 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.8948, allocations: 64.25 kB / 0.7061 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002972/0.8951, allocations: 128 kB / 0.7062 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008278/0.9034, allocations: 2.686 MB / 0.7088 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/0.9106, allocations: 1.782 MB / 0.7105 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02347/0.9341, allocations: 15.23 MB / 0.7254 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006301/0.9405, allocations: 495.6 kB / 0.7259 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/0.9423, allocations: 423.9 kB / 0.7263 GB, free: 4.168 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (920): * Single equations (assignments): 912 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00689/0.9492, allocations: 2.92 MB / 0.7292 GB, free: 1.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/0.9508, allocations: 473.9 kB / 0.7296 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2372/1.188, allocations: 10.56 MB / 0.7399 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.169e-05/1.188, allocations: 63.47 kB / 0.74 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/1.188, allocations: 9.031 kB / 0.74 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.752e-05/1.188, allocations: 22.58 kB / 0.74 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03717/1.225, allocations: 21.44 MB / 0.7609 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-05/1.225, allocations: 13 kB / 0.761 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003395/1.229, allocations: 0.6776 MB / 0.7616 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006646/1.236, allocations: 2.5 MB / 0.7641 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008047/1.236, allocations: 81.7 kB / 0.7641 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/1.251, allocations: 13.82 MB / 0.7776 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/1.251, allocations: 19.94 kB / 0.7777 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02032/1.271, allocations: 15.11 MB / 0.7924 GB, free: 140.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00288/1.274, allocations: 1.166 MB / 0.7935 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001153/1.276, allocations: 86.73 kB / 0.7936 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003085/1.279, allocations: 299.5 kB / 0.7939 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007056/1.279, allocations: 269.7 kB / 0.7942 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/1.28, allocations: 112 kB / 0.7943 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004073/1.284, allocations: 2.779 MB / 0.797 GB, free: 136 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.21e-07/1.284, allocations: 0 / 0.797 GB, free: 136 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008505/1.292, allocations: 1.664 MB / 0.7986 GB, free: 134.4 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02208/1.314, allocations: 15.82 MB / 0.8141 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02841/1.343, allocations: 19.75 MB / 0.8334 GB, free: 98.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-05/1.343, allocations: 4 kB / 0.8334 GB, free: 98.79 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005948/1.349, allocations: 4.315 MB / 0.8376 GB, free: 94.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004503/1.353, allocations: 0.7294 MB / 0.8383 GB, free: 93.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1052/1.459, allocations: 81.26 MB / 0.9176 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2124/1.671, allocations: 4.619 MB / 0.9221 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008176/1.679, allocations: 2.745 MB / 0.9248 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005517/1.685, allocations: 2.905 MB / 0.9277 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.262e-06/1.685, allocations: 3.906 kB / 0.9277 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1562/1.841, allocations: 118.1 MB / 1.043 GB, free: 75.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/14.36, allocations: 9.859 kB / 1.043 GB, free: 75.32 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_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_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches