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.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.001501/0.001501, allocations: 81.08 kB / 20.65 MB, free: 3.84 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.001761/0.001761, allocations: 173.4 kB / 24.05 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9877/0.9877, allocations: 158.6 MB / 185.9 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1516/0.1516, allocations: 32.38 MB / 270.7 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] 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.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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.006e-06/3.006e-06, allocations: 0 / 348.1 MB, free: 9.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.943e-05/3.243e-05, allocations: 6.25 kB / 348.1 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01072/0.01075, allocations: 14.76 MB / 362.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008489/0.01924, allocations: 4.377 MB / 367.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002439/0.02168, allocations: 95.62 kB / 367.4 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.02464, allocations: 2.386 MB / 369.7 MB, free: 3.465 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004235/0.02888, allocations: 2.24 MB / 372 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.03008, allocations: 0.6782 MB / 372.7 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.035, allocations: 4.802 MB / 377.5 MB, free: 11.72 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/0.03849, allocations: 3.11 MB / 380.6 MB, free: 8.555 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004259/0.04275, allocations: 2.67 MB / 383.2 MB, free: 5.879 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003089/0.04584, allocations: 2.361 MB / 385.6 MB, free: 3.512 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006729/0.04651, allocations: 340 kB / 385.9 MB, free: 3.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.04842, allocations: 1.014 MB / 387 MB, free: 2.164 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001603/0.05002, allocations: 2.189 MB / 389.1 MB, free: 15.97 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.05181, allocations: 1.355 MB / 390.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007001/0.05881, allocations: 5.101 MB / 395.6 MB, free: 9.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.05882, allocations: 4 kB / 395.6 MB, free: 9.484 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.05882, allocations: 0 / 395.6 MB, free: 9.484 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003081/0.05913, allocations: 0 / 395.6 MB, free: 9.484 MB / 330.7 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.00781/0.06694, allocations: 5.629 MB / 401.2 MB, free: 3.785 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.06699, allocations: 8.031 kB / 401.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005263/0.07225, allocations: 2.065 MB / 403.3 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003065/0.07532, allocations: 2.048 MB / 405.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.07546, allocations: 258.9 kB / 405.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004604/0.07592, allocations: 344.1 kB / 405.9 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009049/0.08497, allocations: 5.947 MB / 411.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/0.08506, allocations: 31.7 kB / 411.9 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/0.08537, allocations: 159.8 kB / 412.1 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/0.0877, allocations: 2.591 MB / 414.7 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007649/0.09535, allocations: 3.003 MB / 417.7 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2121/0.3074, allocations: 41.64 MB / 459.3 MB, free: 68.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.3115, allocations: 1.566 MB / 460.9 MB, free: 68.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007909/0.3123, allocations: 471.2 kB / 461.3 MB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006818/0.3191, allocations: 4.415 MB / 465.8 MB, free: 68.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.3192, allocations: 50.77 kB / 465.8 MB, free: 68.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=185): time 5.079e-06/0.3192, allocations: 3.391 kB / 465.8 MB, free: 68.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.01301/0.3322, allocations: 6.319 MB / 472.1 MB, free: 67.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.3322, allocations: 68.78 kB / 472.2 MB, free: 67.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002889/0.3351, allocations: 3.225 MB / 475.4 MB, free: 66.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.502e-05/0.3352, allocations: 50.64 kB / 475.5 MB, free: 66.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.3365, allocations: 3.796 MB / 479.3 MB, free: 64.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000473/0.337, allocations: 0.8176 MB / 480.1 MB, free: 64.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.338, allocations: 1.343 MB / 481.4 MB, free: 63.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.3381, allocations: 478 kB / 481.9 MB, free: 63.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009265/0.339, allocations: 0.5782 MB / 482.5 MB, free: 63.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/0.3412, allocations: 5.984 MB / 488.5 MB, free: 55.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/0.3447, allocations: 7.192 MB / 495.6 MB, free: 46.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.096e-05/0.3448, allocations: 36 kB / 495.7 MB, free: 46.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=808) (initialization): time 0.005441/0.3503, allocations: 4.791 MB / 0.4887 GB, free: 41.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.823e-05/0.3503, allocations: 60 kB / 0.4888 GB, free: 41.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/0.3505, allocations: 128.9 kB / 0.4889 GB, free: 41.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.3508, allocations: 227.3 kB / 0.4891 GB, free: 41.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.3529, allocations: 1.337 MB / 0.4904 GB, free: 39.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001235/0.353, allocations: 256.5 kB / 0.4907 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/0.3557, allocations: 243.7 kB / 0.4909 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.3559, allocations: 316 kB / 0.4912 GB, free: 39.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (758): * Single equations (assignments): 750 * 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.001516/0.3575, allocations: 0.6602 MB / 0.4919 GB, free: 38.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004864/0.3579, allocations: 357.9 kB / 0.4922 GB, free: 38.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.3592, allocations: 1.18 MB / 0.4934 GB, free: 36.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.3593, allocations: 20 kB / 0.4934 GB, free: 36.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3593, allocations: 3.938 kB / 0.4934 GB, free: 36.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.3593, allocations: 11.97 kB / 0.4934 GB, free: 36.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00716/0.3664, allocations: 5.764 MB / 0.499 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.3664, allocations: 8.969 kB / 0.499 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.367, allocations: 251.6 kB / 0.4993 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.3671, allocations: 75.31 kB / 0.4993 GB, free: 30.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.3672, allocations: 44 kB / 0.4994 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.02e-05/0.3672, allocations: 19.92 kB / 0.4994 GB, free: 30.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.3672, allocations: 19.88 kB / 0.4994 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.369, allocations: 2.019 MB / 0.5014 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005917/0.3696, allocations: 429.7 kB / 0.5018 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.3697, allocations: 46.72 kB / 0.5019 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.3702, allocations: 28 kB / 0.5019 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.3703, allocations: 128.6 kB / 0.502 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.3704, allocations: 55.98 kB / 0.5021 GB, free: 27.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008692/0.3713, allocations: 1.273 MB / 0.5033 GB, free: 26.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3713, allocations: 0 / 0.5033 GB, free: 26.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002963/0.3742, allocations: 1.058 MB / 0.5043 GB, free: 25.26 MB / 378.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.0003005/0.3745, allocations: 194.7 kB / 0.5045 GB, free: 25.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00261/0.3771, allocations: 2.623 MB / 0.5071 GB, free: 22.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3771, allocations: 4 kB / 0.5071 GB, free: 22.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004926/0.3776, allocations: 0.5925 MB / 0.5077 GB, free: 21.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009744/0.3786, allocations: 332.3 kB / 0.508 GB, free: 21.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009612/0.3882, allocations: 8.997 MB / 0.5168 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.3894, allocations: 1.464 MB / 0.5182 GB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001294/0.3906, allocations: 0.4892 MB / 0.5187 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006555/0.3913, allocations: 0.5411 MB / 0.5192 GB, free: 9.773 MB / 378.7 MB Notification: Performance of SimCode: time 2.365e-06/0.3913, allocations: 4 kB / 0.5192 GB, free: 9.77 MB / 378.7 MB Notification: Performance of Templates: time 0.04632/0.4376, allocations: 26.6 MB / 0.5452 GB, free: 15.32 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.241678188089281]