Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.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: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001516/0.001516, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.964/1.964, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001059/0.001059, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2814/0.2814, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.423e-05/5.432e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1301, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5475/0.6777, allocations: 106.1 MB / 0.5764 GB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.678, allocations: 78.86 kB / 0.5765 GB, free: 13.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5425/1.221, allocations: 117.8 MB / 0.6915 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.366e-06/1.221, allocations: 0 / 0.6915 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004036/1.221, allocations: 88 kB / 0.6916 GB, free: 15.4 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.02622/1.247, allocations: 4.456 MB / 0.6959 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.475e-05/1.247, allocations: 15.97 kB / 0.6959 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04595/1.293, allocations: 3.655 MB / 0.6995 GB, free: 7.199 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/1.315, allocations: 4.823 MB / 0.7042 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005517/1.316, allocations: 381.8 kB / 0.7046 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003149/1.319, allocations: 0.4958 MB / 0.7051 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.385/1.704, allocations: 12.09 MB / 0.7169 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003451/1.704, allocations: 36.27 kB / 0.7169 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002782/1.707, allocations: 227.3 kB / 0.7171 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003998/1.711, allocations: 1.4 MB / 0.7185 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0338/1.745, allocations: 11.15 MB / 0.7294 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08771/1.833, allocations: 42.85 MB / 0.7712 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01474/1.848, allocations: 4.695 MB / 0.7758 GB, free: 87.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005122/1.853, allocations: 2.422 MB / 0.7782 GB, free: 87 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001525/1.854, allocations: 1.309 MB / 0.7795 GB, free: 85.82 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.854, allocations: 59.58 kB / 0.7795 GB, free: 85.77 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=250): time 7.695e-06/1.854, allocations: 3.094 kB / 0.7795 GB, free: 85.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=268): time 0.06103/1.915, allocations: 16.36 MB / 0.7955 GB, free: 80.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/1.916, allocations: 113.1 kB / 0.7956 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005999/1.922, allocations: 2.88 MB / 0.7984 GB, free: 79.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005936/1.922, allocations: 61.64 kB / 0.7985 GB, free: 79.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002393/1.925, allocations: 3.236 MB / 0.8016 GB, free: 76.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001497/1.926, allocations: 0.983 MB / 0.8026 GB, free: 76.22 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006498/1.927, allocations: 115.8 kB / 0.8027 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000406/1.927, allocations: 0.5786 MB / 0.8033 GB, free: 75.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005714/1.933, allocations: 2.408 MB / 0.8056 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007973/1.941, allocations: 5.787 MB / 0.8113 GB, free: 67.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008111/1.949, allocations: 3.762 MB / 0.815 GB, free: 64.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.949, allocations: 36 kB / 0.815 GB, free: 64.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=808) (initialization): time 0.02517/1.975, allocations: 8.908 MB / 0.8237 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.975, allocations: 63.23 kB / 0.8237 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/1.975, allocations: 120 kB / 0.8239 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00597/1.981, allocations: 1.059 MB / 0.8249 GB, free: 55.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009586/1.991, allocations: 1.392 MB / 0.8263 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/2.002, allocations: 5.078 MB / 0.8312 GB, free: 49.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006741/2.009, allocations: 320.9 kB / 0.8315 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/2.011, allocations: 359 kB / 0.8319 GB, free: 49.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 42 (axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 739 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001906/2.013, allocations: 0.5717 MB / 0.8324 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007828/2.013, allocations: 319.8 kB / 0.8327 GB, free: 48.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/2.029, allocations: 5.302 MB / 0.8379 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/2.029, allocations: 47.28 kB / 0.8379 GB, free: 44.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/2.029, allocations: 4 kB / 0.8379 GB, free: 44.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.436e-05/2.029, allocations: 14.92 kB / 0.838 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03705/2.066, allocations: 13.29 MB / 0.8509 GB, free: 32.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.04e-05/2.066, allocations: 8 kB / 0.851 GB, free: 32.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/2.07, allocations: 429.2 kB / 0.8514 GB, free: 32.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005024/2.075, allocations: 0.887 MB / 0.8522 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005957/2.076, allocations: 59.31 kB / 0.8523 GB, free: 31.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009124/2.085, allocations: 4.416 MB / 0.8566 GB, free: 28.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.54e-05/2.085, allocations: 19.89 kB / 0.8566 GB, free: 28.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0192/2.104, allocations: 9.039 MB / 0.8654 GB, free: 19.53 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002632/2.107, allocations: 0.731 MB / 0.8662 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009699/2.108, allocations: 51.84 kB / 0.8662 GB, free: 18.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/2.111, allocations: 153.9 kB / 0.8664 GB, free: 18.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006976/2.111, allocations: 169.7 kB / 0.8665 GB, free: 18.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/2.112, allocations: 75.7 kB / 0.8666 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004588/2.116, allocations: 1.965 MB / 0.8685 GB, free: 16.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/2.116, allocations: 0 / 0.8685 GB, free: 16.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007114/2.123, allocations: 1.12 MB / 0.8696 GB, free: 15.67 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009507/2.124, allocations: 202.4 kB / 0.8698 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01295/2.137, allocations: 5.941 MB / 0.8756 GB, free: 9.641 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.137, allocations: 0 / 0.8756 GB, free: 9.641 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005008/2.143, allocations: 2.23 MB / 0.8778 GB, free: 7.398 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/2.146, allocations: 398.1 kB / 0.8782 GB, free: 7.023 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02772/2.173, allocations: 10.33 MB / 0.8882 GB, free: 12.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009472/2.183, allocations: 3.948 MB / 0.8921 GB, free: 8.566 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/2.185, allocations: 287.4 kB / 0.8924 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/2.185, allocations: 0 / 0.8924 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of Templates: time 0.5177/2.703, allocations: 83.19 MB / 0.9736 GB, free: 95.86 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches