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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 110 kB / 17.03 MB, free: 6.102 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.001809/0.001809, allocations: 194.9 kB / 17.96 MB, free: 5.195 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.418/1.418, allocations: 205.1 MB / 223.8 MB, free: 12.23 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.2132/0.2132, allocations: 43.54 MB / 314.7 MB, free: 468 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.001535/0.001535, allocations: 71.06 kB / 384.2 MB, free: 56.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01488/0.1181, allocations: 15.74 MB / 457.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.1276, allocations: 4.49 MB / 462.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002392/0.13, allocations: 87.81 kB / 462.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004405/0.1344, allocations: 2.254 MB / 464.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005204/0.1397, allocations: 2.07 MB / 466.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001708/0.1414, allocations: 0.6239 MB / 467.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006361/0.1478, allocations: 4.462 MB / 471.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00547/0.1533, allocations: 3.224 MB / 474.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003641/0.1569, allocations: 1.639 MB / 476.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005707/0.1627, allocations: 2.278 MB / 478.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001715/0.1644, allocations: 348 kB / 479.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0029/0.1674, allocations: 1.045 MB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002441/0.1698, allocations: 2.061 MB / 482.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003175/0.173, allocations: 2.489 MB / 484.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007952/0.181, allocations: 8.045 MB / 492.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.181, allocations: 0 / 492.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.181, allocations: 0 / 492.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001537/0.1812, allocations: 0 / 492.8 MB, free: 3.07 MB / 366.1 MB 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.008599/0.1898, allocations: 5.265 MB / 498.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1898, allocations: 15.89 kB / 498.1 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/0.2001, allocations: 3.184 MB / 0.4895 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005418/0.2055, allocations: 2.483 MB / 0.4919 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.2057, allocations: 262.9 kB / 0.4922 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006524/0.2064, allocations: 351.6 kB / 0.4925 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0188/0.2252, allocations: 12.65 MB / 0.5049 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.2253, allocations: 31.75 kB / 0.5049 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004367/0.2258, allocations: 167.8 kB / 0.5051 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00512/0.2309, allocations: 3.028 MB / 0.508 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/0.2535, allocations: 11.33 MB / 0.5191 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2768/0.5303, allocations: 42.08 MB / 0.5602 GB, free: 58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008243/0.5386, allocations: 4.716 MB / 0.5648 GB, free: 55.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.5418, allocations: 2.429 MB / 0.5672 GB, free: 54.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009884/0.5428, allocations: 1.321 MB / 0.5685 GB, free: 53.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.5428, allocations: 54.22 kB / 0.5685 GB, free: 53.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 5.26e-06/0.5429, allocations: 3.469 kB / 0.5685 GB, free: 53.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.04081/0.5837, allocations: 19.52 MB / 0.5876 GB, free: 40.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.5838, allocations: 103 kB / 0.5877 GB, free: 40.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003281/0.587, allocations: 3.262 MB / 0.5909 GB, free: 36.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.5872, allocations: 61.7 kB / 0.5909 GB, free: 36.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.5885, allocations: 3.278 MB / 0.5941 GB, free: 33.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005064/0.589, allocations: 0.9861 MB / 0.5951 GB, free: 32.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.5902, allocations: 1.204 MB / 0.5963 GB, free: 31.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.076e-05/0.5902, allocations: 309.1 kB / 0.5966 GB, free: 31.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/0.5927, allocations: 2.499 MB / 0.599 GB, free: 28.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003489/0.5962, allocations: 5.888 MB / 0.6047 GB, free: 20.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006856/0.6031, allocations: 9.193 MB / 0.6137 GB, free: 10.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.74e-05/0.6031, allocations: 36 kB / 0.6138 GB, free: 10.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01157/0.6147, allocations: 9.175 MB / 0.6227 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.6148, allocations: 56 kB / 0.6228 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.353e-05/0.6149, allocations: 124 kB / 0.6229 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00283/0.6177, allocations: 1.051 MB / 0.6239 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.6217, allocations: 1.4 MB / 0.6253 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0069/0.6286, allocations: 5.55 MB / 0.6307 GB, free: 8.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.6322, allocations: 323.8 kB / 0.631 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004665/0.6327, allocations: 355 kB / 0.6313 GB, free: 7.906 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (751): * Single equations (assignments): 744 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003875/0.6366, allocations: 2.491 MB / 0.6338 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005222/0.6371, allocations: 320.4 kB / 0.6341 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008654/0.6457, allocations: 5.374 MB / 0.6393 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.137e-05/0.6458, allocations: 51.92 kB / 0.6394 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6458, allocations: 4 kB / 0.6394 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.6459, allocations: 11.95 kB / 0.6394 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/0.6665, allocations: 13.32 MB / 0.6524 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.6666, allocations: 16.03 kB / 0.6524 GB, free: 2.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/0.6682, allocations: 423.3 kB / 0.6528 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002582/0.6708, allocations: 0.8907 MB / 0.6537 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001564/0.671, allocations: 67.36 kB / 0.6538 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005929/0.6769, allocations: 4.822 MB / 0.6585 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/0.6769, allocations: 15.94 kB / 0.6585 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/0.6881, allocations: 8.036 MB / 0.6663 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/0.6901, allocations: 0.7352 MB / 0.667 GB, free: 2.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004106/0.6905, allocations: 44 kB / 0.6671 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.6918, allocations: 155.7 kB / 0.6672 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003419/0.6922, allocations: 169.5 kB / 0.6674 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/0.6923, allocations: 83.5 kB / 0.6675 GB, free: 2.258 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002845/0.6952, allocations: 2.01 MB / 0.6694 GB, free: 260 kB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6952, allocations: 4 kB / 0.6694 GB, free: 256 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.004913/0.7001, allocations: 1.116 MB / 0.6705 GB, free: 15.13 MB / 478.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004936/0.7006, allocations: 199.4 kB / 0.6707 GB, free: 14.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01075/0.7114, allocations: 6.12 MB / 0.6767 GB, free: 8.836 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.577e-05/0.7115, allocations: 4 kB / 0.6767 GB, free: 8.832 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/0.7151, allocations: 2.262 MB / 0.6789 GB, free: 6.566 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/0.7179, allocations: 450.4 kB / 0.6793 GB, free: 6.137 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01843/0.7364, allocations: 11.61 MB / 0.6907 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004165/0.7406, allocations: 3.83 MB / 0.6944 GB, free: 6.508 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004569/0.7451, allocations: 2.185 MB / 0.6966 GB, free: 4.312 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007176/0.7459, allocations: 247.4 kB / 0.6968 GB, free: 4.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7459, allocations: 0 / 0.6968 GB, free: 4.07 MB / 494.1 MB Notification: Performance of Templates: time 0.2598/1.006, allocations: 32.87 MB / 0.7289 GB, free: 162.9 MB / 0.4981 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches