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.000943/0.000943, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009868/0.0009868, allocations: 166.2 kB / 24.82 MB, free: 9.266 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.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.287/0.287, allocations: 34.26 MB / 296.1 MB, free: 0.7227 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.214e-06/2.214e-06, allocations: 0 / 378.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.086e-05, allocations: 9.484 kB / 378.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01373/0.01376, allocations: 14.01 MB / 392.5 MB, free: 4.301 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009925/0.02369, allocations: 4.314 MB / 396.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002959/0.02665, allocations: 91.62 kB / 396.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003705/0.03035, allocations: 2.347 MB / 399.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005171/0.03552, allocations: 2.131 MB / 401.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001913/0.03744, allocations: 0.6781 MB / 402.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005995/0.04343, allocations: 4.68 MB / 406.8 MB, free: 6.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003988/0.04742, allocations: 3.024 MB / 409.8 MB, free: 2.941 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004531/0.05195, allocations: 2.569 MB / 412.4 MB, free: 376 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003326/0.05528, allocations: 2.291 MB / 414.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001093/0.05637, allocations: 332 kB / 415 MB, free: 13.75 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.05888, allocations: 1.002 MB / 416 MB, free: 12.74 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002233/0.06111, allocations: 2.08 MB / 418.1 MB, free: 10.66 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00243/0.06354, allocations: 1.289 MB / 419.3 MB, free: 9.363 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.07126, allocations: 4.88 MB / 424.2 MB, free: 4.465 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.07127, allocations: 0 / 424.2 MB, free: 4.465 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.07127, allocations: 0 / 424.2 MB, free: 4.465 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003096/0.07158, allocations: 3.938 kB / 424.2 MB, free: 4.461 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.009011/0.08059, allocations: 5.413 MB / 429.6 MB, free: 14.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.08064, allocations: 12.03 kB / 429.7 MB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005062/0.08571, allocations: 2.019 MB / 431.7 MB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003688/0.08939, allocations: 1.966 MB / 433.6 MB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.08958, allocations: 246.6 kB / 433.9 MB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006587/0.09024, allocations: 332.1 kB / 434.2 MB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009882/0.1001, allocations: 5.757 MB / 440 MB, free: 3.898 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.1002, allocations: 27.77 kB / 440 MB, free: 3.871 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004479/0.1007, allocations: 151.8 kB / 440.1 MB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002308/0.103, allocations: 2.458 MB / 442.6 MB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.19/0.2929, allocations: 2.916 MB / 445.5 MB, free: 88.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04358/0.3365, allocations: 40.08 MB / 485.6 MB, free: 60.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003894/0.3404, allocations: 1.538 MB / 487.1 MB, free: 60.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.3411, allocations: 462.7 kB / 487.6 MB, free: 60.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006503/0.3476, allocations: 4.138 MB / 491.7 MB, free: 59.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.3477, allocations: 51.39 kB / 491.8 MB, free: 59.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=185): time 5.09e-06/0.3477, allocations: 0 / 491.8 MB, free: 59.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.01379/0.3614, allocations: 6.265 MB / 498 MB, free: 57.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.3615, allocations: 74.5 kB / 498.1 MB, free: 57.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.3657, allocations: 3.137 MB / 0.4895 GB, free: 56.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.3659, allocations: 50.73 kB / 0.4895 GB, free: 56.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002712/0.3686, allocations: 3.624 MB / 0.4931 GB, free: 53.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008873/0.3695, allocations: 0.822 MB / 0.4939 GB, free: 52.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001424/0.3709, allocations: 1.308 MB / 0.4952 GB, free: 51.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.64e-05/0.371, allocations: 480.8 kB / 0.4956 GB, free: 51.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3721, allocations: 0.5658 MB / 0.4962 GB, free: 51.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003271/0.3754, allocations: 5.767 MB / 0.5018 GB, free: 44.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004751/0.3802, allocations: 6.953 MB / 0.5086 GB, free: 36.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.3803, allocations: 41.09 kB / 0.5086 GB, free: 36.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.006762/0.387, allocations: 4.654 MB / 0.5132 GB, free: 34.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.638e-05/0.3871, allocations: 58.75 kB / 0.5132 GB, free: 34.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/0.3872, allocations: 123.5 kB / 0.5134 GB, free: 34.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.3876, allocations: 217.2 kB / 0.5136 GB, free: 34.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/0.39, allocations: 1.292 MB / 0.5148 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001311/0.3902, allocations: 245.8 kB / 0.5151 GB, free: 34.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003012/0.3932, allocations: 224 kB / 0.5153 GB, free: 33.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003331/0.3935, allocations: 315.3 kB / 0.5156 GB, free: 33.5 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.001631/0.3951, allocations: 0.6397 MB / 0.5162 GB, free: 32.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004584/0.3956, allocations: 349.9 kB / 0.5165 GB, free: 32.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.397, allocations: 1.176 MB / 0.5177 GB, free: 31.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.397, allocations: 20 kB / 0.5177 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.397, allocations: 3.719 kB / 0.5177 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.397, allocations: 7.359 kB / 0.5177 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008566/0.4056, allocations: 5.65 MB / 0.5232 GB, free: 26.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.4056, allocations: 8 kB / 0.5232 GB, free: 26.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006268/0.4062, allocations: 250.5 kB / 0.5235 GB, free: 26.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.4065, allocations: 67.03 kB / 0.5235 GB, free: 26.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.377e-05/0.4065, allocations: 49.97 kB / 0.5236 GB, free: 26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.376e-05/0.4065, allocations: 22.19 kB / 0.5236 GB, free: 25.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.4066, allocations: 18.88 kB / 0.5236 GB, free: 25.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.4089, allocations: 2.025 MB / 0.5256 GB, free: 23.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008205/0.4097, allocations: 273.3 kB / 0.5259 GB, free: 23.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002457/0.4099, allocations: 48.16 kB / 0.5259 GB, free: 23.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.4105, allocations: 28.7 kB / 0.5259 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.4107, allocations: 133.5 kB / 0.5261 GB, free: 23.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.339e-05/0.4108, allocations: 53.88 kB / 0.5261 GB, free: 23.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.4121, allocations: 1.228 MB / 0.5273 GB, free: 22.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4121, allocations: 0 / 0.5273 GB, free: 22.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00407/0.4162, allocations: 0.9991 MB / 0.5283 GB, free: 21.41 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.0004009/0.4166, allocations: 192.5 kB / 0.5285 GB, free: 21.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004977/0.4216, allocations: 2.571 MB / 0.531 GB, free: 18.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/0.4216, allocations: 0 / 0.531 GB, free: 18.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4227, allocations: 0.5832 MB / 0.5315 GB, free: 18.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.4245, allocations: 342.8 kB / 0.5319 GB, free: 18.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/0.4381, allocations: 8.663 MB / 0.5403 GB, free: 9.926 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.4394, allocations: 1.408 MB / 0.5417 GB, free: 8.906 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001387/0.4408, allocations: 483.1 kB / 0.5422 GB, free: 8.535 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006784/0.4415, allocations: 0.545 MB / 0.5427 GB, free: 7.988 MB / 410.7 MB Notification: Performance of SimCode: time 2.214e-06/0.4415, allocations: 0 / 0.5427 GB, free: 7.988 MB / 410.7 MB Notification: Performance of Templates: time 0.05001/0.4915, allocations: 26.33 MB / 0.5684 GB, free: 14.02 MB / 442.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 -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: 4.420184115413576]