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.001666/0.001666, allocations: 105.7 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.001896/0.001896, allocations: 187.8 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.338/1.338, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2268/0.2268, 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.001454/0.001454, allocations: 71.55 kB / 382.8 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09987, allocations: 57.78 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01581/0.1157, allocations: 18.61 MB / 459.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.1274, allocations: 5.362 MB / 464.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003295/0.1308, allocations: 107.8 kB / 464.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005955/0.1368, allocations: 3.071 MB / 467.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006694/0.1435, allocations: 2.618 MB / 470.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002571/0.1461, allocations: 1.022 MB / 471.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009811/0.1559, allocations: 7.406 MB / 478.8 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00648/0.1625, allocations: 4.254 MB / 483.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00447/0.167, allocations: 2.282 MB / 485.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005059/0.1721, allocations: 3.283 MB / 488.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001549/0.1736, allocations: 456 kB / 489.1 MB, free: 6.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.177, allocations: 1.303 MB / 490.4 MB, free: 4.828 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003695/0.1807, allocations: 2.879 MB / 493.3 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005362/0.1861, allocations: 3.309 MB / 496.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.1987, allocations: 9.914 MB / 0.4946 GB, free: 4.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1988, allocations: 0 / 0.4946 GB, free: 4.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1988, allocations: 4 kB / 0.4946 GB, free: 4.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003944/0.1992, allocations: 0 / 0.4946 GB, free: 4.664 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.01943/0.2186, allocations: 7.455 MB / 0.5019 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.2187, allocations: 11.89 kB / 0.5019 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002684/0.2214, allocations: 1.03 MB / 0.5029 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03029/0.2517, allocations: 5.616 MB / 0.5084 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01294/0.2647, allocations: 5.862 MB / 0.5141 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003829/0.2651, allocations: 324.5 kB / 0.5144 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002935/0.2681, allocations: 439.6 kB / 0.5148 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2382/0.5063, allocations: 15.73 MB / 0.5302 GB, free: 79.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002797/0.5066, allocations: 58.77 kB / 0.5303 GB, free: 79.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009597/0.5076, allocations: 206.4 kB / 0.5305 GB, free: 79.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006838/0.5144, allocations: 3.467 MB / 0.5338 GB, free: 79.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/0.5452, allocations: 14.8 MB / 0.5483 GB, free: 75.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07065/0.6158, allocations: 55.93 MB / 0.6029 GB, free: 23.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01591/0.6318, allocations: 8.134 MB / 0.6109 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005189/0.637, allocations: 4.776 MB / 0.6155 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/0.6385, allocations: 2.205 MB / 0.6177 GB, free: 7.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.6386, allocations: 73.08 kB / 0.6178 GB, free: 7.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=367): time 6.592e-06/0.6386, allocations: 0 / 0.6178 GB, free: 7.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=419): time 0.1178/0.7564, allocations: 39.8 MB / 0.6566 GB, free: 15.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.979e-05/0.7565, allocations: 120 kB / 0.6567 GB, free: 15.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009196/0.7657, allocations: 4.405 MB / 0.661 GB, free: 10.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001444/0.7672, allocations: 89.7 kB / 0.6611 GB, free: 10.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003658/0.7709, allocations: 3.898 MB / 0.6649 GB, free: 6.922 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002883/0.7738, allocations: 1.495 MB / 0.6664 GB, free: 5.406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005104/0.779, allocations: 1.528 MB / 0.6679 GB, free: 3.871 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.7791, allocations: 305.1 kB / 0.6682 GB, free: 3.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007384/0.7865, allocations: 3.961 MB / 0.672 GB, free: 15.61 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01294/0.7995, allocations: 7.757 MB / 0.6796 GB, free: 6.031 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02041/0.82, allocations: 12.73 MB / 0.6921 GB, free: 7.441 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001297/0.8201, allocations: 40 kB / 0.6921 GB, free: 7.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.03378/0.8539, allocations: 14.25 MB / 0.706 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.8542, allocations: 60 kB / 0.7061 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003735/0.8546, allocations: 128 kB / 0.7062 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008757/0.8633, allocations: 2.688 MB / 0.7088 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007877/0.8713, allocations: 1.782 MB / 0.7105 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02269/0.894, allocations: 15.23 MB / 0.7254 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005651/0.8997, allocations: 491.6 kB / 0.7259 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/0.901, allocations: 431.9 kB / 0.7263 GB, free: 4.02 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.005254/0.9063, allocations: 2.916 MB / 0.7292 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.9074, allocations: 469.9 kB / 0.7296 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2318/1.139, allocations: 10.57 MB / 0.7399 GB, free: 175 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-05/1.139, allocations: 64.28 kB / 0.74 GB, free: 175 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.569e-05/1.139, allocations: 9.312 kB / 0.74 GB, free: 175 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.172e-05/1.139, allocations: 18.89 kB / 0.74 GB, free: 175 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03456/1.174, allocations: 21.44 MB / 0.7609 GB, free: 168 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-05/1.174, allocations: 11.62 kB / 0.761 GB, free: 168 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003262/1.177, allocations: 0.6806 MB / 0.7616 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006728/1.184, allocations: 2.49 MB / 0.764 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007724/1.185, allocations: 83.88 kB / 0.7641 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.2, allocations: 13.83 MB / 0.7776 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/1.2, allocations: 15.94 kB / 0.7776 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0218/1.222, allocations: 15.12 MB / 0.7924 GB, free: 140.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003027/1.225, allocations: 1.168 MB / 0.7936 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/1.226, allocations: 72 kB / 0.7936 GB, free: 139.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.228, allocations: 311.4 kB / 0.7939 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007037/1.229, allocations: 265.5 kB / 0.7942 GB, free: 138.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002682/1.229, allocations: 112 kB / 0.7943 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003227/1.233, allocations: 2.779 MB / 0.797 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.81e-07/1.233, allocations: 0 / 0.797 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005431/1.238, allocations: 1.647 MB / 0.7986 GB, free: 134.1 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.02052/1.259, allocations: 15.83 MB / 0.8141 GB, free: 118.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02699/1.286, allocations: 19.74 MB / 0.8333 GB, free: 98.47 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/1.286, allocations: 4 kB / 0.8333 GB, free: 98.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005452/1.291, allocations: 4.315 MB / 0.8376 GB, free: 94.13 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004707/1.296, allocations: 0.7298 MB / 0.8383 GB, free: 93.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1079/1.404, allocations: 81.27 MB / 0.9176 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2175/1.621, allocations: 4.62 MB / 0.9221 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007483/1.629, allocations: 2.735 MB / 0.9248 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004419/1.633, allocations: 2.912 MB / 0.9277 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/1.633, allocations: 0 / 0.9277 GB, free: 172.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1492/1.783, allocations: 118.1 MB / 1.043 GB, free: 74.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/14.51, allocations: 7.75 kB / 1.043 GB, free: 74.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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