Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 174.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008293/0.0008294, allocations: 85.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3107/0.3107, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12 kB / 432.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2606/0.3766, allocations: 57.98 MB / 0.536 GB, free: 9.172 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02739/0.404, allocations: 12.19 MB / 0.5479 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01317/0.4172, allocations: 272.8 kB / 0.5482 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01017/0.4275, allocations: 2.889 MB / 0.551 GB, free: 15.82 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0256/0.4531, allocations: 8.658 MB / 0.5595 GB, free: 12.22 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005102/0.4582, allocations: 0.9528 MB / 0.5604 GB, free: 11.86 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03132/0.4896, allocations: 22.15 MB / 0.582 GB, free: 12.97 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009601/0.4993, allocations: 5.267 MB / 0.5872 GB, free: 7.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004507/0.5038, allocations: 1.899 MB / 0.589 GB, free: 5.754 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00518/0.509, allocations: 3.139 MB / 0.5921 GB, free: 2.605 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001575/0.5106, allocations: 223.9 kB / 0.5923 GB, free: 2.387 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.5142, allocations: 1.119 MB / 0.5934 GB, free: 1.266 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00381/0.518, allocations: 2.606 MB / 0.5959 GB, free: 14.65 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005061/0.5231, allocations: 2.844 MB / 0.5987 GB, free: 11.79 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008713/0.5318, allocations: 7.817 MB / 0.6064 GB, free: 3.949 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.5319, allocations: 0 / 0.6064 GB, free: 3.949 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5319, allocations: 0 / 0.6064 GB, free: 3.949 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003609/0.5322, allocations: 0 / 0.6064 GB, free: 3.949 MB / 426.7 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.01438/0.5466, allocations: 6.151 MB / 0.6124 GB, free: 13.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5467, allocations: 8.031 kB / 0.6124 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003316/0.55, allocations: 1.03 MB / 0.6134 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02903/0.5791, allocations: 5.733 MB / 0.619 GB, free: 6.918 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/0.5897, allocations: 5.862 MB / 0.6247 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.59, allocations: 320.8 kB / 0.625 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/0.5918, allocations: 451.5 kB / 0.6254 GB, free: 244 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/0.6209, allocations: 15.73 MB / 0.6408 GB, free: 15.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002693/0.6212, allocations: 67.44 kB / 0.6409 GB, free: 15.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001559/0.6228, allocations: 199.8 kB / 0.6411 GB, free: 15.52 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006958/0.6298, allocations: 3.474 MB / 0.6444 GB, free: 12.04 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02864/0.6585, allocations: 14.77 MB / 0.6589 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2796/0.9381, allocations: 55.9 MB / 0.7135 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01625/0.9544, allocations: 8.131 MB / 0.7214 GB, free: 99.51 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006454/0.9609, allocations: 4.757 MB / 0.7261 GB, free: 97.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/0.9628, allocations: 2.207 MB / 0.7282 GB, free: 95.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.9629, allocations: 72.02 kB / 0.7283 GB, free: 95.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 7.053e-06/0.9629, allocations: 0 / 0.7283 GB, free: 95.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.102/1.065, allocations: 39.75 MB / 0.7671 GB, free: 75.03 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/1.065, allocations: 116 kB / 0.7672 GB, free: 74.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005957/1.071, allocations: 4.385 MB / 0.7715 GB, free: 70.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009913/1.072, allocations: 84.2 kB / 0.7716 GB, free: 70.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002391/1.074, allocations: 3.9 MB / 0.7754 GB, free: 66.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001694/1.076, allocations: 1.486 MB / 0.7768 GB, free: 65.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009158/1.077, allocations: 155.4 kB / 0.777 GB, free: 64.88 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005471/1.078, allocations: 0.6444 MB / 0.7776 GB, free: 64.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00519/1.083, allocations: 3.923 MB / 0.7814 GB, free: 60.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006836/1.09, allocations: 7.73 MB / 0.789 GB, free: 50.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/1.102, allocations: 12.69 MB / 0.8014 GB, free: 36.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/1.103, allocations: 36 kB / 0.8014 GB, free: 36.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.02484/1.127, allocations: 14.18 MB / 0.8153 GB, free: 21.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/1.128, allocations: 64.03 kB / 0.8153 GB, free: 21.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/1.128, allocations: 132 kB / 0.8154 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007114/1.135, allocations: 2.686 MB / 0.8181 GB, free: 19.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005795/1.141, allocations: 1.782 MB / 0.8198 GB, free: 17.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/1.157, allocations: 14.11 MB / 0.8336 GB, free: 2.914 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006565/1.164, allocations: 0.4917 MB / 0.8341 GB, free: 2.422 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.165, allocations: 431.4 kB / 0.8345 GB, free: 2.004 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006196/1.172, allocations: 2.908 MB / 0.8373 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001307/1.173, allocations: 470 kB / 0.8378 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/1.194, allocations: 10.55 MB / 0.8481 GB, free: 4.012 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.569e-05/1.194, allocations: 67.92 kB / 0.8481 GB, free: 3.945 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.448e-05/1.194, allocations: 12 kB / 0.8481 GB, free: 3.934 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.484e-05/1.194, allocations: 19.94 kB / 0.8482 GB, free: 3.914 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2359/1.43, allocations: 21.39 MB / 0.869 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.521e-05/1.43, allocations: 12.41 kB / 0.8691 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003534/1.434, allocations: 0.6792 MB / 0.8697 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007571/1.441, allocations: 2.483 MB / 0.8721 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008789/1.442, allocations: 80.45 kB / 0.8722 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/1.458, allocations: 12.89 MB / 0.8848 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/1.458, allocations: 17.19 kB / 0.8848 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02186/1.479, allocations: 15.07 MB / 0.8995 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003061/1.483, allocations: 1.167 MB / 0.9007 GB, free: 142.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001103/1.484, allocations: 71.2 kB / 0.9008 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003183/1.487, allocations: 315 kB / 0.9011 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/1.488, allocations: 265.6 kB / 0.9013 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/1.488, allocations: 111.8 kB / 0.9014 GB, free: 142 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004475/1.493, allocations: 2.734 MB / 0.9041 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.61e-07/1.493, allocations: 2.406 kB / 0.9041 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007843/1.501, allocations: 1.654 MB / 0.9057 GB, free: 140.9 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02463/1.525, allocations: 15.79 MB / 0.9211 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01446/1.54, allocations: 9.806 MB / 0.9307 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/1.54, allocations: 11.06 kB / 0.9307 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006717/1.547, allocations: 4.291 MB / 0.9349 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/1.559, allocations: 0.6931 MB / 0.9356 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08147/1.64, allocations: 56.49 MB / 0.9907 GB, free: 69.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004895/1.645, allocations: 4.628 MB / 0.9953 GB, free: 64.81 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003788/1.649, allocations: 2.979 MB / 0.9982 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/1.649, allocations: 0 / 0.9982 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.697/11.35, allocations: 162.4 MB / 1.157 GB, free: 88.87 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches