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: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 109.2 kB / 17.03 MB, free: 5.707 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.001719/0.001719, allocations: 196.1 kB / 17.96 MB, free: 5.082 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.439/1.439, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2237/0.2237, allocations: 43.53 MB / 314.7 MB, free: 480 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.001509/0.001509, allocations: 66.55 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.115, allocations: 57.8 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01809/0.1331, allocations: 18.59 MB / 460.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.1464, allocations: 5.358 MB / 465.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004713/0.1512, allocations: 111.7 kB / 466 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006397/0.1576, allocations: 3.067 MB / 469.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00763/0.1653, allocations: 2.618 MB / 471.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002607/0.168, allocations: 1.03 MB / 472.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.1787, allocations: 7.406 MB / 480.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00613/0.1849, allocations: 4.25 MB / 484.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004844/0.1897, allocations: 2.285 MB / 486.7 MB, free: 9.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005524/0.1953, allocations: 3.283 MB / 490 MB, free: 5.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00195/0.1973, allocations: 456 kB / 490.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004132/0.2014, allocations: 1.299 MB / 491.7 MB, free: 4.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003899/0.2053, allocations: 2.879 MB / 494.6 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005657/0.211, allocations: 3.262 MB / 497.9 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.223, allocations: 10.14 MB / 0.4961 GB, free: 3.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.223, allocations: 0 / 0.4961 GB, free: 3.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.223, allocations: 0 / 0.4961 GB, free: 3.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003406/0.2234, allocations: 0 / 0.4961 GB, free: 3.832 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.01865/0.2421, allocations: 7.306 MB / 0.5032 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.2421, allocations: 8.031 kB / 0.5032 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01429/0.2564, allocations: 3.841 MB / 0.507 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009752/0.2662, allocations: 4.335 MB / 0.5112 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002688/0.2665, allocations: 328.5 kB / 0.5115 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00162/0.2681, allocations: 435.7 kB / 0.5119 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03017/0.2983, allocations: 15.8 MB / 0.5274 GB, free: 2.898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001724/0.2985, allocations: 63.48 kB / 0.5274 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005831/0.2991, allocations: 195.8 kB / 0.5276 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2646/0.5637, allocations: 3.469 MB / 0.531 GB, free: 80.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03505/0.5988, allocations: 14.92 MB / 0.5456 GB, free: 77.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07111/0.6699, allocations: 55.79 MB / 0.6001 GB, free: 26.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0156/0.6856, allocations: 8.195 MB / 0.6081 GB, free: 18.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005129/0.6908, allocations: 4.836 MB / 0.6128 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00147/0.6923, allocations: 2.209 MB / 0.615 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.6923, allocations: 69.02 kB / 0.615 GB, free: 10.92 MB / 414.1 MB Notification: Performance of pre-optimization done (n=367): time 8.105e-06/0.6923, allocations: 0 / 0.615 GB, free: 10.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=419): time 0.1019/0.7942, allocations: 40.27 MB / 0.6543 GB, free: 2.645 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.7943, allocations: 116 kB / 0.6545 GB, free: 2.512 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006833/0.8012, allocations: 4.361 MB / 0.6587 GB, free: 14.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001049/0.8022, allocations: 85.7 kB / 0.6588 GB, free: 14.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003294/0.8055, allocations: 3.866 MB / 0.6626 GB, free: 10.17 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002635/0.8082, allocations: 1.502 MB / 0.664 GB, free: 8.68 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002554/0.8108, allocations: 1.574 MB / 0.6656 GB, free: 7.098 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.8109, allocations: 301.1 kB / 0.6659 GB, free: 6.801 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005907/0.8168, allocations: 4.09 MB / 0.6699 GB, free: 2.707 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008301/0.8251, allocations: 7.913 MB / 0.6776 GB, free: 8.957 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01586/0.841, allocations: 12.97 MB / 0.6902 GB, free: 10.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.359e-05/0.8411, allocations: 36 kB / 0.6903 GB, free: 10.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.02639/0.8675, allocations: 14.81 MB / 0.7047 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.542e-05/0.8677, allocations: 60 kB / 0.7048 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/0.8678, allocations: 128 kB / 0.7049 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008258/0.8761, allocations: 2.941 MB / 0.7078 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007058/0.8832, allocations: 1.829 MB / 0.7096 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/0.9049, allocations: 15.95 MB / 0.7252 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006111/0.911, allocations: 0.501 MB / 0.7256 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001165/0.9122, allocations: 429.6 kB / 0.7261 GB, free: 5.145 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 (951): * Single equations (assignments): 943 * 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.005226/0.9175, allocations: 2.929 MB / 0.7289 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009426/0.9184, allocations: 458.1 kB / 0.7294 GB, free: 1.746 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2414/1.16, allocations: 10.93 MB / 0.74 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.509e-05/1.16, allocations: 67.2 kB / 0.7401 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.303e-05/1.16, allocations: 9.969 kB / 0.7401 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.977e-05/1.16, allocations: 17.67 kB / 0.7401 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03806/1.198, allocations: 21.66 MB / 0.7613 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.231e-05/1.198, allocations: 15.47 kB / 0.7613 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003378/1.202, allocations: 0.6859 MB / 0.762 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006986/1.209, allocations: 2.734 MB / 0.7646 GB, free: 167 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000819/1.21, allocations: 74.11 kB / 0.7647 GB, free: 167 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01609/1.226, allocations: 14.55 MB / 0.7789 GB, free: 155 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/1.226, allocations: 15.94 kB / 0.7789 GB, free: 154.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02179/1.247, allocations: 15.57 MB / 0.7941 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005319/1.253, allocations: 1.176 MB / 0.7953 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/1.255, allocations: 83.53 kB / 0.7954 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002786/1.257, allocations: 311.5 kB / 0.7957 GB, free: 138.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007105/1.258, allocations: 269.5 kB / 0.7959 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.258, allocations: 113.6 kB / 0.796 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00363/1.262, allocations: 2.741 MB / 0.7987 GB, free: 134.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.262, allocations: 3.781 kB / 0.7987 GB, free: 134.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006538/1.269, allocations: 1.695 MB / 0.8004 GB, free: 133.2 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.0007084/1.269, allocations: 230.5 kB / 0.8006 GB, free: 133 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01246/1.282, allocations: 10.13 MB / 0.8105 GB, free: 123 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.282, allocations: 0 / 0.8105 GB, free: 123 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005255/1.287, allocations: 4.375 MB / 0.8147 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.291, allocations: 0.7194 MB / 0.8154 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02212/1.313, allocations: 15.87 MB / 0.8309 GB, free: 101.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004436/1.318, allocations: 4.623 MB / 0.8355 GB, free: 97.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005707/1.323, allocations: 2.736 MB / 0.8381 GB, free: 94.55 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/1.325, allocations: 355.3 kB / 0.8385 GB, free: 94.21 MB / 0.5137 GB Notification: Performance of SimCode: time 1.343e-06/1.325, allocations: 7.938 kB / 0.8385 GB, free: 94.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.1018/1.426, allocations: 66.46 MB / 0.9034 GB, free: 27.95 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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