Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001452/0.001452, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001573/0.001573, allocations: 168.7 kB / 24.91 MB, free: 9.199 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 1.001/1.001, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.254/0.254, allocations: 32.81 MB / 294.6 MB, free: 1.176 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.386e-05, allocations: 3.188 kB / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01128/0.01131, allocations: 14.03 MB / 337.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.01748, allocations: 4.496 MB / 341.8 MB, free: 7.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006534/0.01814, allocations: 91.62 kB / 341.9 MB, free: 6.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002072/0.02021, allocations: 2.367 MB / 344.2 MB, free: 4.605 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.02227, allocations: 2.131 MB / 346.3 MB, free: 2.465 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006563/0.02293, allocations: 0.6821 MB / 347 MB, free: 1.781 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002622/0.02555, allocations: 4.694 MB / 351.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.0275, allocations: 3.098 MB / 354.8 MB, free: 9.91 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.02932, allocations: 2.549 MB / 357.4 MB, free: 7.355 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.03103, allocations: 2.19 MB / 359.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.03134, allocations: 332 kB / 359.9 MB, free: 4.836 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009052/0.03224, allocations: 0.9868 MB / 360.9 MB, free: 3.848 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.03329, allocations: 2.084 MB / 363 MB, free: 1.758 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008633/0.03415, allocations: 1.289 MB / 364.2 MB, free: 476 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003055/0.0372, allocations: 4.883 MB / 369.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.03721, allocations: 0 / 369.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.03721, allocations: 0 / 369.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.29e-05/0.03725, allocations: 0 / 369.1 MB, free: 11.56 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.003902/0.04115, allocations: 4.726 MB / 373.9 MB, free: 6.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.673e-05/0.04118, allocations: 15.97 kB / 373.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003406/0.04459, allocations: 1.53 MB / 375.4 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/0.04626, allocations: 1.759 MB / 377.2 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.04637, allocations: 254.6 kB / 377.4 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.04673, allocations: 328.1 kB / 377.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005425/0.05216, allocations: 5.354 MB / 383.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.378e-05/0.05222, allocations: 31.7 kB / 383.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002884/0.05251, allocations: 155.8 kB / 383.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002008/0.05452, allocations: 2.45 MB / 385.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00424/0.05876, allocations: 2.98 MB / 388.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02129/0.08005, allocations: 30.14 MB / 418.8 MB, free: 8.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.0829, allocations: 1.572 MB / 420.4 MB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000455/0.08335, allocations: 371.4 kB / 420.8 MB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005448/0.0888, allocations: 3.935 MB / 424.7 MB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.08883, allocations: 51.8 kB / 424.8 MB, free: 2.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=185): time 2.886e-06/0.08883, allocations: 0 / 424.8 MB, free: 2.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=198): time 0.01118/0.1, allocations: 5.735 MB / 430.5 MB, free: 12.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.1001, allocations: 72.66 kB / 430.6 MB, free: 12.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.1024, allocations: 2.806 MB / 433.4 MB, free: 9.453 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.399e-05/0.1025, allocations: 53.69 kB / 433.4 MB, free: 9.395 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.104, allocations: 3.325 MB / 436.7 MB, free: 6.035 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005032/0.1045, allocations: 0.7712 MB / 437.5 MB, free: 5.258 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009014/0.1054, allocations: 1.116 MB / 438.6 MB, free: 4.129 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.1055, allocations: 301.1 kB / 438.9 MB, free: 3.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.1067, allocations: 0.7385 MB / 439.7 MB, free: 3.086 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/0.1093, allocations: 4.088 MB / 443.8 MB, free: 13.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004111/0.1134, allocations: 5.325 MB / 449.1 MB, free: 6.207 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.668e-05/0.1135, allocations: 36 kB / 449.1 MB, free: 6.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.004889/0.1184, allocations: 3.917 MB / 453 MB, free: 2.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.805e-05/0.1184, allocations: 62.34 kB / 453.1 MB, free: 2.172 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.1185, allocations: 124 kB / 453.2 MB, free: 2.051 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003246/0.1189, allocations: 219.3 kB / 453.4 MB, free: 1.828 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.1211, allocations: 1.287 MB / 454.7 MB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001294/0.1212, allocations: 243.1 kB / 455 MB, free: 308 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.1236, allocations: 236.1 kB / 455.2 MB, free: 72 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1715/0.295, allocations: 303.4 kB / 455.5 MB, free: 123.5 MB / 426.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.002/0.297, allocations: 0.5934 MB / 456.1 MB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004522/0.2975, allocations: 201.9 kB / 456.3 MB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.2988, allocations: 0.9873 MB / 457.3 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.2988, allocations: 24.94 kB / 457.3 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2988, allocations: 3.75 kB / 457.3 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.2988, allocations: 10.25 kB / 457.3 MB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00553/0.3044, allocations: 4.648 MB / 461.9 MB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.3044, allocations: 9.562 kB / 462 MB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005619/0.3049, allocations: 256 kB / 462.2 MB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.3052, allocations: 219 kB / 462.4 MB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.873e-05/0.3053, allocations: 43.14 kB / 462.5 MB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.698e-05/0.3054, allocations: 18.19 kB / 462.5 MB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.3054, allocations: 20.69 kB / 462.5 MB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3069, allocations: 1.618 MB / 464.1 MB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.3072, allocations: 275.5 kB / 464.4 MB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.3074, allocations: 41.95 kB / 464.4 MB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.3078, allocations: 33.19 kB / 464.5 MB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.3079, allocations: 125.6 kB / 464.6 MB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-05/0.308, allocations: 59.06 kB / 464.6 MB, free: 121.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007506/0.3088, allocations: 0.9872 MB / 465.6 MB, free: 121.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3088, allocations: 0.75 kB / 465.6 MB, free: 121.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002774/0.3115, allocations: 0.9925 MB / 466.6 MB, free: 121.6 MB / 426.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.0003269/0.3119, allocations: 177.8 kB / 466.8 MB, free: 121.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.3146, allocations: 2.359 MB / 469.2 MB, free: 121.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001685/0.3148, allocations: 91.69 kB / 469.2 MB, free: 121.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.3154, allocations: 0.5022 MB / 469.7 MB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.3175, allocations: 0.6918 MB / 470.4 MB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.3281, allocations: 8.412 MB / 478.8 MB, free: 113.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.3295, allocations: 1.392 MB / 480.2 MB, free: 112.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001519/0.331, allocations: 488.1 kB / 480.7 MB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008375/0.3319, allocations: 0.5143 MB / 481.2 MB, free: 112 MB / 426.7 MB Notification: Performance of SimCode: time 1.914e-06/0.3319, allocations: 0 / 481.2 MB, free: 112 MB / 426.7 MB Notification: Performance of Templates: time 0.04665/0.3785, allocations: 26.23 MB / 0.4956 GB, free: 86.71 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.909934130962938]