Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.0009796/0.0009796, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009947/0.0009947, allocations: 170.4 kB / 24.91 MB, free: 8.723 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 0.933/0.933, allocations: 177.1 MB / 205.3 MB, free: 5.121 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.2471/0.2471, allocations: 32.81 MB / 294.6 MB, free: 1.121 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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|sphericalSpherical.frame_b.r_0.[0-9,]+.|sphericalSpherical.frame_b.f.[0-9,]+.|sphericalSpherical.frame_b.t.[0-9,]+.|Prismatic1.frame_b.r_0.[0-9,]+.|Prismatic1.frame_b.f.[0-9,]+.|Prismatic1.frame_b.t.[0-9,]+.|Fixed1.frame_b.r_0.[0-9,]+.|Fixed1.frame_b.f.[0-9,]+.|Fixed1.frame_b.t.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical") translateModel(ModelicaTest.MultiBody.Joints.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|sphericalSpherical.frame_b.r_0.[0-9,]+.|sphericalSpherical.frame_b.f.[0-9,]+.|sphericalSpherical.frame_b.t.[0-9,]+.|Prismatic1.frame_b.r_0.[0-9,]+.|Prismatic1.frame_b.f.[0-9,]+.|Prismatic1.frame_b.t.[0-9,]+.|Fixed1.frame_b.r_0.[0-9,]+.|Fixed1.frame_b.f.[0-9,]+.|Fixed1.frame_b.t.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 323.2 MB, free: 9.691 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.236e-05/2.418e-05, allocations: 5.5 kB / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.007307/0.007331, allocations: 7.202 MB / 330.4 MB, free: 2.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004286/0.01162, allocations: 2.613 MB / 333.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004973/0.01211, allocations: 39.88 kB / 333.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.0132, allocations: 0.9459 MB / 334 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000505/0.0137, allocations: 329.9 kB / 334.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.01425, allocations: 355 kB / 334.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000625/0.01487, allocations: 0.7434 MB / 335.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005032/0.01538, allocations: 0.6891 MB / 336.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.01608, allocations: 0.5377 MB / 336.7 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004778/0.01656, allocations: 0.5611 MB / 337.2 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.845e-05/0.01665, allocations: 104 kB / 337.3 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004294/0.01708, allocations: 0.4952 MB / 337.8 MB, free: 11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000299/0.01737, allocations: 0.5103 MB / 338.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.0176, allocations: 362.9 kB / 338.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008642/0.01847, allocations: 1.265 MB / 340 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.01847, allocations: 0 / 340 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.01847, allocations: 0 / 340 MB, free: 8.867 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.01848, allocations: 0 / 340 MB, free: 8.867 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.00134/0.01982, allocations: 1.338 MB / 341.3 MB, free: 7.504 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.01985, allocations: 12.03 kB / 341.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000395/0.02025, allocations: 172.7 kB / 341.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.0207, allocations: 486.7 kB / 342 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.02073, allocations: 58.36 kB / 342 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.02085, allocations: 88.5 kB / 342.1 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.02255, allocations: 1.259 MB / 343.4 MB, free: 5.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.02257, allocations: 11.94 kB / 343.4 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/0.02263, allocations: 35.95 kB / 343.4 MB, free: 5.223 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003437/0.02297, allocations: 389.7 kB / 343.8 MB, free: 4.844 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.02416, allocations: 0.776 MB / 344.6 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004331/0.02849, allocations: 6.307 MB / 350.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.0297, allocations: 0.6146 MB / 351.5 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.901e-05/0.0298, allocations: 93.53 kB / 351.6 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005232/0.03032, allocations: 0.5813 MB / 352.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.03035, allocations: 38.56 kB / 352.2 MB, free: 12.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 1.904e-06/0.03035, allocations: 0 / 352.2 MB, free: 12.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.003985/0.03433, allocations: 1.918 MB / 354.1 MB, free: 10.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.03437, allocations: 59.91 kB / 354.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003923/0.03476, allocations: 0.6707 MB / 354.8 MB, free: 9.488 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.03479, allocations: 33.7 kB / 354.9 MB, free: 9.449 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.03503, allocations: 0.6594 MB / 355.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.03513, allocations: 222.1 kB / 355.8 MB, free: 8.562 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.03531, allocations: 250.6 kB / 356 MB, free: 8.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.03541, allocations: 394.6 kB / 356.4 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.03555, allocations: 133.4 kB / 356.5 MB, free: 7.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004003/0.03595, allocations: 0.7863 MB / 357.3 MB, free: 6.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009045/0.03685, allocations: 1.068 MB / 358.4 MB, free: 5.266 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.03686, allocations: 8 kB / 358.4 MB, free: 5.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.0006831/0.03754, allocations: 0.8141 MB / 359.2 MB, free: 4.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.03756, allocations: 20.25 kB / 359.2 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.03758, allocations: 24 kB / 359.2 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.0376, allocations: 32 kB / 359.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.03816, allocations: 319.5 kB / 359.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005635/0.03873, allocations: 1.296 MB / 360.9 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.03901, allocations: 59.89 kB / 360.9 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.03906, allocations: 60 kB / 361 MB, free: 2.543 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (164): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.03926, allocations: 224.1 kB / 361.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.03932, allocations: 63.94 kB / 361.3 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.0394, allocations: 107.7 kB / 361.4 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.0394, allocations: 4 kB / 361.4 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.0394, allocations: 0 / 361.4 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.03941, allocations: 3.984 kB / 361.4 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.04066, allocations: 1.257 MB / 362.6 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.04066, allocations: 4 kB / 362.6 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.04089, allocations: 123.8 kB / 362.8 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.04089, allocations: 8 kB / 362.8 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.04091, allocations: 23.94 kB / 362.8 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004542/0.04137, allocations: 1.26 MB / 364.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.04137, allocations: 7.938 kB / 364.1 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.04198, allocations: 0.6259 MB / 364.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-05/0.04204, allocations: 71.61 kB / 364.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.503e-05/0.04208, allocations: 24 kB / 364.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.04222, allocations: 19.92 kB / 364.8 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.04227, allocations: 59.75 kB / 364.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002808/0.04255, allocations: 16 kB / 364.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001795/0.04273, allocations: 264.5 kB / 365.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04273, allocations: 0 / 365.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005039/0.04323, allocations: 216 kB / 365.4 MB, free: 13.81 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001274/0.04336, allocations: 108.2 kB / 365.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.04384, allocations: 0.5159 MB / 366 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.368e-05/0.04386, allocations: 17.81 kB / 366 MB, free: 13.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.044, allocations: 155.7 kB / 366.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.04439, allocations: 113.2 kB / 366.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.04615, allocations: 1.935 MB / 368.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.04635, allocations: 303.5 kB / 368.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.04658, allocations: 123.3 kB / 368.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.04679, allocations: 179.3 kB / 368.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.04679, allocations: 0 / 368.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of Templates: time 0.01301/0.0598, allocations: 7.565 MB / 376.3 MB, free: 2.812 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/SphericalSpherical/SphericalSpherical.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.0910974428988993]