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.002435/0.002435, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002847/0.002847, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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.588/1.588, allocations: 177.2 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.3492/0.3492, allocations: 34.27 MB / 295.3 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 179] 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.064e-06/2.064e-06, allocations: 0 / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.125e-05/3.331e-05, allocations: 2.312 kB / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02098/0.02101, allocations: 14.32 MB / 391.6 MB, free: 4.574 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.03299, allocations: 4.329 MB / 396 MB, free: 236 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.03606, allocations: 87.69 kB / 396 MB, free: 148 kB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005846/0.04191, allocations: 2.371 MB / 398.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.04892, allocations: 2.135 MB / 400.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.05121, allocations: 0.6665 MB / 401.2 MB, free: 10.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008313/0.05952, allocations: 4.698 MB / 405.9 MB, free: 6.246 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005983/0.0655, allocations: 3.016 MB / 408.9 MB, free: 3.176 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005428/0.07093, allocations: 2.436 MB / 411.4 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004964/0.07589, allocations: 2.42 MB / 413.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001509/0.0774, allocations: 348 kB / 414.1 MB, free: 13.96 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003079/0.08048, allocations: 1.014 MB / 415.1 MB, free: 12.95 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002874/0.08336, allocations: 2.092 MB / 417.2 MB, free: 10.86 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.08621, allocations: 1.316 MB / 418.5 MB, free: 9.535 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.09949, allocations: 7.763 MB / 426.3 MB, free: 1.746 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.337e-05/0.0995, allocations: 4 kB / 426.3 MB, free: 1.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.0995, allocations: 0 / 426.3 MB, free: 1.742 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003731/0.09988, allocations: 0 / 426.3 MB, free: 1.742 MB / 394.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.01615/0.116, allocations: 6.078 MB / 432.4 MB, free: 11.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.1161, allocations: 12.03 kB / 432.4 MB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01342/0.1295, allocations: 3.82 MB / 436.2 MB, free: 7.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007719/0.1372, allocations: 2.187 MB / 438.4 MB, free: 5.527 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002851/0.1375, allocations: 246.6 kB / 438.6 MB, free: 5.285 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/0.1387, allocations: 332.1 kB / 439 MB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2159/0.3547, allocations: 6.891 MB / 445.9 MB, free: 91.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.3548, allocations: 32.69 kB / 445.9 MB, free: 91.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004636/0.3552, allocations: 155.9 kB / 446 MB, free: 91.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004185/0.3594, allocations: 2.844 MB / 448.9 MB, free: 91.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/0.3737, allocations: 4.361 MB / 453.2 MB, free: 91.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06025/0.434, allocations: 49.88 MB / 0.4913 GB, free: 56.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009823/0.4438, allocations: 1.956 MB / 0.4933 GB, free: 56.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002407/0.4462, allocations: 0.7379 MB / 0.494 GB, free: 56.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009769/0.4472, allocations: 412.9 kB / 0.4944 GB, free: 55.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.4472, allocations: 61.95 kB / 0.4944 GB, free: 55.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=249): time 7.534e-06/0.4472, allocations: 0 / 0.4944 GB, free: 55.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=267): time 0.04875/0.496, allocations: 11.24 MB / 0.5054 GB, free: 48.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.4961, allocations: 73.41 kB / 0.5055 GB, free: 48.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007344/0.5034, allocations: 3.575 MB / 0.509 GB, free: 45.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005774/0.504, allocations: 57.7 kB / 0.509 GB, free: 45.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002777/0.5068, allocations: 3.56 MB / 0.5125 GB, free: 42.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001781/0.5085, allocations: 1.133 MB / 0.5136 GB, free: 41.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003451/0.512, allocations: 1.47 MB / 0.515 GB, free: 39.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7e-05/0.5121, allocations: 481.7 kB / 0.5155 GB, free: 39.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00244/0.5145, allocations: 0.8129 MB / 0.5163 GB, free: 38.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004368/0.5189, allocations: 5.825 MB / 0.522 GB, free: 30.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/0.5254, allocations: 7.362 MB / 0.5292 GB, free: 21.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/0.5255, allocations: 32 kB / 0.5292 GB, free: 21.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01175/0.5373, allocations: 5.811 MB / 0.5349 GB, free: 16.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.5374, allocations: 52 kB / 0.5349 GB, free: 16.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001784/0.5376, allocations: 117.9 kB / 0.535 GB, free: 16.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/0.5404, allocations: 0.768 MB / 0.5358 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004111/0.5445, allocations: 1.349 MB / 0.5371 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004623/0.5491, allocations: 3.414 MB / 0.5404 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/0.5532, allocations: 351.7 kB / 0.5408 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/0.5543, allocations: 342.2 kB / 0.5411 GB, free: 10.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * 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 (729): * Single equations (assignments): 722 * 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.003047/0.5573, allocations: 0.7667 MB / 0.5418 GB, free: 9.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009263/0.5583, allocations: 370 kB / 0.5422 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007099/0.5654, allocations: 2.987 MB / 0.5451 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.359e-05/0.5654, allocations: 43.98 kB / 0.5452 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/0.5655, allocations: 4 kB / 0.5452 GB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.858e-05/0.5655, allocations: 11.95 kB / 0.5452 GB, free: 5.758 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02421/0.5897, allocations: 8.917 MB / 0.5539 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-05/0.5897, allocations: 12 kB / 0.5539 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/0.5919, allocations: 422.3 kB / 0.5543 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/0.5948, allocations: 0.6187 MB / 0.5549 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004401/0.5952, allocations: 55.92 kB / 0.5549 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005367/0.6006, allocations: 2.778 MB / 0.5577 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.959e-05/0.6006, allocations: 16.05 kB / 0.5577 GB, free: 8.555 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009489/0.6101, allocations: 3.733 MB / 0.5613 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.6111, allocations: 285.9 kB / 0.5616 GB, free: 4.258 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004131/0.6115, allocations: 52 kB / 0.5616 GB, free: 4.207 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.6131, allocations: 175.7 kB / 0.5618 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004443/0.6135, allocations: 185.3 kB / 0.562 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.6137, allocations: 83.97 kB / 0.5621 GB, free: 3.773 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0027/0.6164, allocations: 1.457 MB / 0.5635 GB, free: 2.309 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.6164, allocations: 0 / 0.5635 GB, free: 2.309 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005291/0.6217, allocations: 1.137 MB / 0.5646 GB, free: 1.172 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (208): * Single equations (assignments): 201 * 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.0006007/0.6223, allocations: 206.7 kB / 0.5648 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008004/0.6303, allocations: 3.57 MB / 0.5683 GB, free: 13.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.576e-05/0.6303, allocations: 4 kB / 0.5683 GB, free: 13.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002533/0.6328, allocations: 1.193 MB / 0.5695 GB, free: 12.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002403/0.6352, allocations: 358.9 kB / 0.5698 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01903/0.6543, allocations: 9.394 MB / 0.579 GB, free: 2.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004368/0.6586, allocations: 2.802 MB / 0.5817 GB, free: 15.33 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004477/0.6631, allocations: 1.745 MB / 0.5834 GB, free: 13.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008622/0.664, allocations: 228.5 kB / 0.5836 GB, free: 13.36 MB / 458.7 MB Notification: Performance of SimCode: time 2.094e-06/0.664, allocations: 0 / 0.5836 GB, free: 13.36 MB / 458.7 MB Notification: Performance of Templates: time 0.2836/0.9476, allocations: 30.31 MB / 0.6132 GB, free: 137.3 MB / 474.7 MB " [Timeout remaining time 659] 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.164868175052106]