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.001225/0.001225, allocations: 102.2 kB / 17.03 MB, free: 5.66 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.0012/0.0012, allocations: 192.1 kB / 17.96 MB, free: 5.066 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.494/1.494, allocations: 205.1 MB / 223.8 MB, free: 12.24 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.2323/0.2323, allocations: 43.53 MB / 314.7 MB, free: 476 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.001554/0.001554, allocations: 65.34 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 57.8 MB / 442 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01592/0.1286, allocations: 15.74 MB / 457.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.1393, allocations: 4.49 MB / 462.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003434/0.1428, allocations: 87.81 kB / 462.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004983/0.1478, allocations: 2.25 MB / 464.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006884/0.1548, allocations: 2.07 MB / 466.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002149/0.1569, allocations: 0.6239 MB / 467.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007537/0.1645, allocations: 4.458 MB / 471.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005189/0.1697, allocations: 3.213 MB / 474.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00326/0.173, allocations: 1.647 MB / 476.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005237/0.1783, allocations: 2.27 MB / 478.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001767/0.1801, allocations: 352 kB / 479.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002933/0.183, allocations: 1.049 MB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003486/0.1865, allocations: 2.061 MB / 482.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005853/0.1924, allocations: 2.485 MB / 484.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.2044, allocations: 8.041 MB / 492.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.2045, allocations: 0 / 492.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2045, allocations: 4 kB / 492.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003794/0.2049, 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.01412/0.219, allocations: 5.269 MB / 498.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.2191, allocations: 11.89 kB / 498.1 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.2299, allocations: 3.188 MB / 0.4895 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007607/0.2376, allocations: 2.483 MB / 0.4919 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/0.2379, allocations: 266.9 kB / 0.4922 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/0.239, allocations: 343.6 kB / 0.4925 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02287/0.2619, allocations: 12.66 MB / 0.5049 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/0.2621, allocations: 35.75 kB / 0.5049 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005113/0.2626, allocations: 159.8 kB / 0.5051 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005544/0.2682, allocations: 3.024 MB / 0.508 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02464/0.2928, allocations: 11.34 MB / 0.5191 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3888/0.6817, allocations: 42.08 MB / 0.5602 GB, free: 57.87 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009241/0.691, allocations: 4.709 MB / 0.5648 GB, free: 55.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/0.6942, allocations: 2.437 MB / 0.5672 GB, free: 54.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/0.6952, allocations: 1.319 MB / 0.5685 GB, free: 53.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.6953, allocations: 62.59 kB / 0.5685 GB, free: 53.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 3.078e-05/0.6953, allocations: 0 / 0.5685 GB, free: 53.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.045/0.7403, allocations: 19.52 MB / 0.5876 GB, free: 40.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.7404, allocations: 103 kB / 0.5877 GB, free: 40.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004687/0.7451, allocations: 3.262 MB / 0.5909 GB, free: 36.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006329/0.7458, allocations: 61.7 kB / 0.5909 GB, free: 36.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/0.7483, allocations: 3.274 MB / 0.5941 GB, free: 33.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001821/0.7501, allocations: 0.9844 MB / 0.5951 GB, free: 32.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001963/0.7521, allocations: 1.218 MB / 0.5963 GB, free: 31.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.7522, allocations: 301.1 kB / 0.5965 GB, free: 30.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003677/0.7559, allocations: 2.499 MB / 0.599 GB, free: 28.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006176/0.7621, allocations: 5.888 MB / 0.6047 GB, free: 20.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/0.7728, allocations: 9.191 MB / 0.6137 GB, free: 9.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/0.7729, allocations: 36 kB / 0.6137 GB, free: 9.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01608/0.789, allocations: 9.176 MB / 0.6227 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.628e-05/0.7891, allocations: 56 kB / 0.6228 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.7893, allocations: 123.8 kB / 0.6229 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002981/0.7922, allocations: 1.056 MB / 0.6239 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005205/0.7975, allocations: 1.403 MB / 0.6253 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007717/0.8052, allocations: 5.547 MB / 0.6307 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005574/0.8108, allocations: 323.8 kB / 0.631 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001605/0.8124, allocations: 359.3 kB / 0.6314 GB, free: 7.789 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.006999/0.8194, allocations: 2.489 MB / 0.6338 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008983/0.8204, allocations: 319.8 kB / 0.6341 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009364/0.8297, allocations: 5.376 MB / 0.6393 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-05/0.8299, allocations: 51.92 kB / 0.6394 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.8299, allocations: 4 kB / 0.6394 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.8299, allocations: 7.969 kB / 0.6394 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02908/0.859, allocations: 13.32 MB / 0.6524 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.387e-05/0.8591, allocations: 12 kB / 0.6524 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/0.861, allocations: 419.3 kB / 0.6528 GB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002928/0.864, allocations: 0.8985 MB / 0.6537 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003819/0.8644, allocations: 61.98 kB / 0.6538 GB, free: 0.582 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006683/0.8711, allocations: 4.829 MB / 0.6585 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/0.8712, allocations: 16.88 kB / 0.6585 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01335/0.8845, allocations: 8.032 MB / 0.6663 GB, free: 3.344 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003093/0.8877, allocations: 0.7313 MB / 0.667 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/0.8888, allocations: 55.98 kB / 0.6671 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/0.8909, allocations: 150.8 kB / 0.6672 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005133/0.8914, allocations: 173.7 kB / 0.6674 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002407/0.8917, allocations: 79.98 kB / 0.6675 GB, free: 2.145 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005491/0.8972, allocations: 2.014 MB / 0.6695 GB, free: 140 kB / 462.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8972, allocations: 0 / 0.6695 GB, free: 140 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.008681/0.9059, allocations: 1.116 MB / 0.6705 GB, free: 15.02 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.0006681/0.9066, allocations: 200.9 kB / 0.6707 GB, free: 14.83 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01022/0.9168, allocations: 6.119 MB / 0.6767 GB, free: 8.719 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.882e-05/0.9169, allocations: 4 kB / 0.6767 GB, free: 8.715 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003507/0.9204, allocations: 2.261 MB / 0.6789 GB, free: 6.449 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/0.9237, allocations: 446.4 kB / 0.6793 GB, free: 6.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/0.9508, allocations: 11.62 MB / 0.6907 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006863/0.9577, allocations: 3.834 MB / 0.6944 GB, free: 6.383 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005647/0.9634, allocations: 2.181 MB / 0.6966 GB, free: 4.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/0.9643, allocations: 243.4 kB / 0.6968 GB, free: 3.949 MB / 494.1 MB Notification: Performance of SimCode: time 1.733e-06/0.9644, allocations: 4 kB / 0.6968 GB, free: 3.945 MB / 494.1 MB Notification: Performance of Templates: time 0.3898/1.354, allocations: 32.86 MB / 0.7289 GB, free: 162.3 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 cvode -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