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.001029/0.001029, allocations: 81.95 kB / 21.44 MB, free: 3.062 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.001005/0.001005, allocations: 163.1 kB / 24.84 MB, free: 9.301 MB / 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.8832/0.8832, allocations: 158.6 MB / 186.7 MB, free: 2.805 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.1368/0.1368, allocations: 32.38 MB / 271.5 MB, free: 14.53 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 8.12e-07/8.12e-07, allocations: 0 / 348.9 MB, free: 9.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.06e-05/1.141e-05, allocations: 8.281 kB / 348.9 MB, free: 9.168 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.008659/0.00867, allocations: 14.75 MB / 363.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006581/0.01525, allocations: 4.389 MB / 368.1 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.0169, allocations: 95.62 kB / 368.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.01977, allocations: 2.378 MB / 370.5 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003421/0.02319, allocations: 2.236 MB / 372.8 MB, free: 1.223 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000986/0.02418, allocations: 0.6898 MB / 373.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003912/0.02809, allocations: 4.802 MB / 378.3 MB, free: 11.72 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002841/0.03093, allocations: 3.106 MB / 381.4 MB, free: 8.559 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.03346, allocations: 2.674 MB / 384 MB, free: 5.879 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.03557, allocations: 2.361 MB / 386.4 MB, free: 3.512 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006794/0.03625, allocations: 340 kB / 386.7 MB, free: 3.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.0375, allocations: 1.014 MB / 387.7 MB, free: 2.164 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.03865, allocations: 2.181 MB / 389.9 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009508/0.0396, allocations: 1.355 MB / 391.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003803/0.0434, allocations: 5.101 MB / 396.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.04341, allocations: 4 kB / 396.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.04341, allocations: 0 / 396.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.037e-05/0.04347, allocations: 0 / 396.4 MB, free: 9.492 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.005121/0.04859, allocations: 5.641 MB / 402 MB, free: 3.781 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.04863, allocations: 12.03 kB / 402 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004778/0.05341, allocations: 2.061 MB / 404.1 MB, free: 1.703 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.05564, allocations: 2.044 MB / 406.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.05578, allocations: 258.9 kB / 406.4 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/0.05615, allocations: 348.1 kB / 406.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006272/0.06243, allocations: 5.935 MB / 412.7 MB, free: 8.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-05/0.06249, allocations: 35.77 kB / 412.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002753/0.06277, allocations: 159.7 kB / 412.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002713/0.06548, allocations: 2.591 MB / 415.5 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004467/0.06995, allocations: 3.007 MB / 418.5 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2036/0.2735, allocations: 41.64 MB / 460.1 MB, free: 68.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/0.2771, allocations: 1.57 MB / 461.7 MB, free: 68.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.2778, allocations: 471.5 kB / 462.1 MB, free: 68.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006025/0.2838, allocations: 4.406 MB / 466.5 MB, free: 68.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.2839, allocations: 56.42 kB / 466.6 MB, free: 68.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=185): time 3.246e-06/0.2839, allocations: 0 / 466.6 MB, free: 68.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.01132/0.2952, allocations: 6.316 MB / 472.9 MB, free: 67.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.2952, allocations: 66.62 kB / 473 MB, free: 67.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/0.298, allocations: 3.226 MB / 476.2 MB, free: 66.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.298, allocations: 51.36 kB / 476.2 MB, free: 66.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.2992, allocations: 3.796 MB / 480 MB, free: 64.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003724/0.2996, allocations: 0.8212 MB / 480.9 MB, free: 63.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.3007, allocations: 1.342 MB / 482.2 MB, free: 63.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.455e-05/0.3008, allocations: 476.8 kB / 482.7 MB, free: 63.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.3017, allocations: 0.5772 MB / 483.2 MB, free: 63.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.3039, allocations: 5.982 MB / 489.2 MB, free: 55.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003579/0.3075, allocations: 7.204 MB / 496.4 MB, free: 46.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.991e-05/0.3075, allocations: 36 kB / 496.5 MB, free: 46.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=808) (initialization): time 0.00437/0.3119, allocations: 4.781 MB / 0.4895 GB, free: 41.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.3119, allocations: 64.22 kB / 0.4896 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.334e-05/0.312, allocations: 128 kB / 0.4897 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.3122, allocations: 231.2 kB / 0.4899 GB, free: 41.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.3141, allocations: 1.327 MB / 0.4912 GB, free: 39.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.503e-05/0.3142, allocations: 258.2 kB / 0.4914 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.316, allocations: 251.9 kB / 0.4917 GB, free: 39.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/0.3162, allocations: 316 kB / 0.492 GB, free: 39.15 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.001104/0.3173, allocations: 0.6535 MB / 0.4926 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.3176, allocations: 356.7 kB / 0.493 GB, free: 38.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.3188, allocations: 1.188 MB / 0.4941 GB, free: 36.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.3188, allocations: 20 kB / 0.4941 GB, free: 36.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3188, allocations: 4 kB / 0.4941 GB, free: 36.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3188, allocations: 7.969 kB / 0.4942 GB, free: 36.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005858/0.3246, allocations: 5.765 MB / 0.4998 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.3247, allocations: 15.97 kB / 0.4998 GB, free: 30.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.3252, allocations: 251.6 kB / 0.5 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.3254, allocations: 75.25 kB / 0.5001 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.618e-05/0.3254, allocations: 40 kB / 0.5002 GB, free: 30.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.271e-05/0.3254, allocations: 23.92 kB / 0.5002 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.3254, allocations: 15.88 kB / 0.5002 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.3271, allocations: 2.02 MB / 0.5022 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.3275, allocations: 428.4 kB / 0.5026 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.3277, allocations: 43.98 kB / 0.5026 GB, free: 27.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.3282, allocations: 43.98 kB / 0.5027 GB, free: 27.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.3283, allocations: 124.6 kB / 0.5028 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.22e-05/0.3284, allocations: 55.98 kB / 0.5028 GB, free: 27.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008612/0.3293, allocations: 1.265 MB / 0.5041 GB, free: 26.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3293, allocations: 0 / 0.5041 GB, free: 26.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002815/0.3321, allocations: 1.058 MB / 0.5051 GB, free: 25.24 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.0003394/0.3324, allocations: 194.8 kB / 0.5053 GB, free: 25.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.3347, allocations: 2.634 MB / 0.5079 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3347, allocations: 0 / 0.5079 GB, free: 22.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005778/0.3353, allocations: 0.5886 MB / 0.5084 GB, free: 21.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.3363, allocations: 333.8 kB / 0.5087 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008064/0.3444, allocations: 8.994 MB / 0.5175 GB, free: 12.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009297/0.3453, allocations: 1.464 MB / 0.519 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009603/0.3463, allocations: 0.4921 MB / 0.5194 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006189/0.3469, allocations: 0.545 MB / 0.52 GB, free: 9.754 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3469, allocations: 4 kB / 0.52 GB, free: 9.75 MB / 378.7 MB Notification: Performance of Templates: time 0.04692/0.3938, allocations: 27.21 MB / 0.5465 GB, free: 14.69 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.275889346841723]