Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001012/0.001012, allocations: 183.4 kB / 13.19 MB, free: 2.129 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.237/1.237, allocations: 205.2 MB / 218.9 MB, free: 9.195 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.0008321/0.0008322, allocations: 90.55 kB / 267.1 MB, free: 9.273 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.3224/0.3224, allocations: 43.46 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.565e-05, allocations: 4 kB / 425.3 MB, free: 8.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.09971, allocations: 58.84 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3526/0.4524, allocations: 106.1 MB / 0.5764 GB, free: 15.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.4527, allocations: 76.28 kB / 0.5765 GB, free: 15.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2825/0.7352, allocations: 117.8 MB / 0.6915 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.905e-06/0.7353, allocations: 0 / 0.6915 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000208/0.7355, allocations: 88 kB / 0.6916 GB, free: 2.336 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.278/1.013, allocations: 4.454 MB / 0.696 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/1.014, allocations: 8.844 kB / 0.696 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01558/1.029, allocations: 3.66 MB / 0.6995 GB, free: 94.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/1.041, allocations: 4.822 MB / 0.7042 GB, free: 93.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/1.042, allocations: 381.1 kB / 0.7046 GB, free: 93.82 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002683/1.044, allocations: 495.7 kB / 0.7051 GB, free: 93.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/1.067, allocations: 12.1 MB / 0.7169 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/1.067, allocations: 34.78 kB / 0.7169 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000618/1.068, allocations: 225.6 kB / 0.7171 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001597/1.069, allocations: 1.408 MB / 0.7185 GB, free: 92.26 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02062/1.09, allocations: 11.16 MB / 0.7294 GB, free: 92.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06072/1.151, allocations: 42.85 MB / 0.7713 GB, free: 69.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00751/1.158, allocations: 4.699 MB / 0.7759 GB, free: 67.66 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002591/1.161, allocations: 2.411 MB / 0.7782 GB, free: 66.72 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009363/1.162, allocations: 1.32 MB / 0.7795 GB, free: 65.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/1.162, allocations: 59.39 kB / 0.7796 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=250): time 5.901e-06/1.162, allocations: 0 / 0.7796 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=268): time 0.03301/1.195, allocations: 16.37 MB / 0.7955 GB, free: 59.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/1.195, allocations: 97.86 kB / 0.7956 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/1.2, allocations: 2.879 MB / 0.7984 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002072/1.2, allocations: 62.67 kB / 0.7985 GB, free: 58.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00172/1.202, allocations: 3.272 MB / 0.8017 GB, free: 56.21 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008758/1.203, allocations: 0.9803 MB / 0.8027 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004509/1.203, allocations: 116.9 kB / 0.8028 GB, free: 55.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004476/1.204, allocations: 0.5731 MB / 0.8033 GB, free: 54.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003393/1.207, allocations: 2.411 MB / 0.8057 GB, free: 54.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004543/1.212, allocations: 5.788 MB / 0.8113 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004958/1.217, allocations: 3.767 MB / 0.815 GB, free: 47.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/1.217, allocations: 36.69 kB / 0.815 GB, free: 47.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=808) (initialization): time 0.0142/1.231, allocations: 8.992 MB / 0.8238 GB, free: 41.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.231, allocations: 56 kB / 0.8239 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/1.231, allocations: 116.8 kB / 0.824 GB, free: 41.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002761/1.234, allocations: 1.067 MB / 0.825 GB, free: 40.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003914/1.238, allocations: 1.388 MB / 0.8264 GB, free: 39.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005852/1.244, allocations: 5.084 MB / 0.8314 GB, free: 35.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004724/1.249, allocations: 323.8 kB / 0.8317 GB, free: 34.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.25, allocations: 349.3 kB / 0.832 GB, free: 34.42 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.001657/1.251, allocations: 0.5603 MB / 0.8325 GB, free: 33.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008308/1.252, allocations: 323.7 kB / 0.8329 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009123/1.261, allocations: 5.31 MB / 0.838 GB, free: 29.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-05/1.261, allocations: 47.19 kB / 0.8381 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/1.261, allocations: 4 kB / 0.8381 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/1.261, allocations: 12.94 kB / 0.8381 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02273/1.284, allocations: 13.29 MB / 0.8511 GB, free: 17.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/1.284, allocations: 12.94 kB / 0.8511 GB, free: 17.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/1.286, allocations: 430 kB / 0.8515 GB, free: 17.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002462/1.288, allocations: 0.891 MB / 0.8524 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/1.288, allocations: 59.61 kB / 0.8524 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004868/1.293, allocations: 4.407 MB / 0.8567 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.258e-06/1.293, allocations: 19.94 kB / 0.8568 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00953/1.303, allocations: 9.045 MB / 0.8656 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/1.304, allocations: 0.7313 MB / 0.8663 GB, free: 3.883 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003332/1.305, allocations: 55.56 kB / 0.8664 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/1.306, allocations: 145.6 kB / 0.8665 GB, free: 3.738 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/1.306, allocations: 169.3 kB / 0.8667 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/1.307, allocations: 75.89 kB / 0.8667 GB, free: 3.551 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002646/1.309, allocations: 1.973 MB / 0.8687 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.309, allocations: 3.469 kB / 0.8687 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004573/1.314, allocations: 1.116 MB / 0.8697 GB, free: 0.7109 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.0004733/1.314, allocations: 197.7 kB / 0.8699 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01328/1.328, allocations: 6.316 MB / 0.8761 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/1.328, allocations: 4 kB / 0.8761 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003292/1.331, allocations: 2.223 MB / 0.8783 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/1.333, allocations: 392.8 kB / 0.8786 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.351, allocations: 9.792 MB / 0.8882 GB, free: 232 kB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2685/1.62, allocations: 3.932 MB / 0.8921 GB, free: 97.41 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005477/1.626, allocations: 2.183 MB / 0.8942 GB, free: 97.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000749/1.626, allocations: 240.2 kB / 0.8944 GB, free: 97.36 MB / 0.5105 GB Notification: Performance of SimCode: time 9.72e-07/1.626, allocations: 0 / 0.8944 GB, free: 97.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.05914/1.685, allocations: 35.08 MB / 0.9287 GB, free: 96.12 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches