Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009817/0.0009817, allocations: 169.6 kB / 24.91 MB, free: 8.73 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.967/0.967, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2677/0.2677, allocations: 34.26 MB / 296.1 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 325.3 MB, free: 7.645 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.157e-05/3.358e-05, allocations: 2.312 kB / 325.3 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0127/0.01273, allocations: 14.07 MB / 339.4 MB, free: 9.496 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007844/0.02058, allocations: 4.492 MB / 343.9 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.02182, allocations: 91.69 kB / 343.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.02421, allocations: 2.347 MB / 346.3 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002763/0.02697, allocations: 2.104 MB / 348.4 MB, free: 440 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.0279, allocations: 0.6626 MB / 349.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003536/0.03144, allocations: 4.698 MB / 353.8 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002427/0.03387, allocations: 2.997 MB / 356.8 MB, free: 7.996 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.03607, allocations: 2.522 MB / 359.3 MB, free: 5.469 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.03819, allocations: 2.194 MB / 361.5 MB, free: 3.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003585/0.03855, allocations: 332 kB / 361.8 MB, free: 2.945 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.03973, allocations: 1.01 MB / 362.8 MB, free: 1.934 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.04088, allocations: 2.08 MB / 364.9 MB, free: 15.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.04198, allocations: 1.292 MB / 366.2 MB, free: 14.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003493/0.04547, allocations: 4.887 MB / 371.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.04547, allocations: 0 / 371.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.04547, allocations: 0 / 371.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.871e-05/0.04554, allocations: 0 / 371.1 MB, free: 9.645 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.004428/0.04997, allocations: 4.722 MB / 375.8 MB, free: 4.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.05001, allocations: 16.03 kB / 375.8 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003804/0.05381, allocations: 1.526 MB / 377.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.05573, allocations: 1.755 MB / 379.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.05586, allocations: 250.6 kB / 379.3 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003813/0.05624, allocations: 328.1 kB / 379.7 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00536/0.06161, allocations: 5.35 MB / 385 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.232e-05/0.06168, allocations: 39.67 kB / 385 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002681/0.06195, allocations: 151.8 kB / 385.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/0.06414, allocations: 2.454 MB / 387.6 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004709/0.06885, allocations: 2.982 MB / 390.6 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02436/0.09321, allocations: 30.14 MB / 420.8 MB, free: 6.195 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.09619, allocations: 1.57 MB / 422.3 MB, free: 4.613 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004875/0.09667, allocations: 379.4 kB / 422.7 MB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005415/0.1021, allocations: 3.939 MB / 426.6 MB, free: 284 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1021, allocations: 47.86 kB / 426.7 MB, free: 228 kB / 394.7 MB Notification: Performance of pre-optimization done (n=185): time 3.106e-06/0.1021, allocations: 0 / 426.7 MB, free: 228 kB / 394.7 MB Notification: Performance of matching and sorting (n=198): time 0.01094/0.1131, allocations: 5.743 MB / 432.4 MB, free: 10.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.1131, allocations: 68.72 kB / 432.5 MB, free: 10.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002035/0.1151, allocations: 2.81 MB / 435.3 MB, free: 7.531 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.301e-05/0.1152, allocations: 49.7 kB / 435.4 MB, free: 7.477 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.1165, allocations: 3.329 MB / 438.7 MB, free: 4.113 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003768/0.1169, allocations: 0.7673 MB / 439.5 MB, free: 3.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008514/0.1178, allocations: 1.116 MB / 440.6 MB, free: 2.211 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.685e-05/0.1178, allocations: 301.1 kB / 440.9 MB, free: 1.914 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.1189, allocations: 0.7385 MB / 441.6 MB, free: 1.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1803/0.2992, allocations: 4.086 MB / 445.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004537/0.3038, allocations: 5.32 MB / 451 MB, free: 102.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-05/0.3038, allocations: 36.78 kB / 451.1 MB, free: 102.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.004709/0.3086, allocations: 3.915 MB / 455 MB, free: 101.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.3086, allocations: 60.12 kB / 455 MB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.752e-05/0.3087, allocations: 122 kB / 455.1 MB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.3089, allocations: 218.3 kB / 455.4 MB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/0.311, allocations: 1.35 MB / 456.7 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001007/0.3111, allocations: 245 kB / 456.9 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.3129, allocations: 232.3 kB / 457.2 MB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002705/0.3132, allocations: 304.7 kB / 457.5 MB, free: 101.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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 (736): * Single equations (assignments): 728 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001261/0.3145, allocations: 0.6001 MB / 458.1 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.3147, allocations: 205.1 kB / 458.3 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.3157, allocations: 0.9778 MB / 459.2 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/0.3157, allocations: 22.77 kB / 459.3 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.3157, allocations: 3.656 kB / 459.3 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3158, allocations: 3.797 kB / 459.3 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004971/0.3207, allocations: 4.667 MB / 463.9 MB, free: 99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.3207, allocations: 8 kB / 464 MB, free: 98.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000793/0.3215, allocations: 272 kB / 464.2 MB, free: 98.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002966/0.3218, allocations: 221.5 kB / 464.4 MB, free: 98.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.3219, allocations: 45.31 kB / 464.5 MB, free: 98.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.3219, allocations: 19.94 kB / 464.5 MB, free: 98.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.3219, allocations: 11.94 kB / 464.5 MB, free: 98.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.3234, allocations: 1.625 MB / 466.1 MB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.3236, allocations: 270 kB / 466.4 MB, free: 97.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.3238, allocations: 46.61 kB / 466.4 MB, free: 97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.3242, allocations: 27.38 kB / 466.5 MB, free: 96.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3244, allocations: 130 kB / 466.6 MB, free: 96.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.421e-05/0.3245, allocations: 51.75 kB / 466.6 MB, free: 96.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006631/0.3251, allocations: 0.9899 MB / 467.6 MB, free: 96.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3251, allocations: 7.828 kB / 467.6 MB, free: 96.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002619/0.3277, allocations: 0.9944 MB / 468.6 MB, free: 95.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (152): * Single equations (assignments): 144 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002971/0.328, allocations: 170.3 kB / 468.8 MB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.3303, allocations: 2.361 MB / 471.2 MB, free: 93.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000142/0.3305, allocations: 92.16 kB / 471.3 MB, free: 93.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005065/0.331, allocations: 0.4999 MB / 471.8 MB, free: 92.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.3323, allocations: 0.7013 MB / 472.5 MB, free: 92.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008286/0.3406, allocations: 8.421 MB / 480.9 MB, free: 84.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009462/0.3415, allocations: 1.388 MB / 482.3 MB, free: 82.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009934/0.3425, allocations: 483.9 kB / 482.7 MB, free: 82.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006624/0.3432, allocations: 0.5168 MB / 483.3 MB, free: 81.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.904e-06/0.3432, allocations: 0 / 483.3 MB, free: 81.71 MB / 410.7 MB Notification: Performance of Templates: time 0.03714/0.3803, allocations: 26.26 MB / 0.4976 GB, free: 55.94 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.871154815889895]